public static void EncodeUInt16(ushort value, byte[] buffer, int offset = 0) { EncodeInt16(unchecked((short)value), buffer, offset); }