Skip to content

ByteIListExtensions.SetInt16 Method

Overloads

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

SetInt16(IList<Byte>, Int32, Int16)

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

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

View source

Parameters

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

SetInt16(IList<Byte>, Int32, Int16, Endian)

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

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

View source

Parameters

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