Skip to content

ByteListExtensions.SetUInt16 Method

Overloads

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

SetUInt16(List<Byte>, Int32, UInt16)

Writes a little-endian UInt16 to a List<T> of bytes at the specified index.

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

View source

Parameters

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

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

Writes a UInt16 to a List<T> of bytes at the specified index using the specified endianness.

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

View source

Parameters

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