Skip to content

ByteIListExtensions.SetUInt16 Method

Overloads

Name Description
SetUInt16(IList<Byte>, Int32, UInt16) Writes a little-endian UInt16 to a list of bytes at the specified index.
SetUInt16(IList<Byte>, Int32, UInt16, Endian) Writes a UInt16 to a list of bytes at the specified index using the specified endianness.

SetUInt16(IList<Byte>, Int32, UInt16)

Writes a little-endian UInt16 to a list of bytes at the specified index.

public static void SetUInt16(this IList<Byte> bytes, int index, ushort value);

View source

Parameters

Name Type Description
bytes IList<Byte>
index Int32 The zero-based index to write to.
value UInt16 The UInt16 value to write.

SetUInt16(IList<Byte>, Int32, UInt16, Endian)

Writes a UInt16 to a list of bytes at the specified index using the specified endianness.

public static void SetUInt16(this IList<Byte> bytes, int index, ushort value, Endian endian);

View source

Parameters

Name Type Description
bytes IList<Byte>
index Int32 The zero-based index to write to.
value UInt16 The UInt16 value to write.
endian Endian The endianness to use.