I have the following:
unsigned short *name = new unsigned short[name_size]; memcpy_s(name, name_size*2, &byteArray[offset], name_size*2);