encodeUInt16

Writes the given UShort/UInt16 to the array's current position, and then increments the position.