internal static int PutInt16(int value, byte[] array, int offset) { array[offset + 0] = unchecked((byte)((int)(((uint)value) >> 8))); array[offset + 1] = unchecked((byte)value); return offset + 2; }