Encodes a Char and copies it into a ByteArray at a given offset in UTF-16 using the given ByteOrder.
Return
the ByteArray representing the Char in UTF-16.
the offset at which to copy the encoded data.
if array is not is not large enough to hold 2 bytes at the offset.