ByteListExtensions.SetInt16 Method ​
Overloads ​
| Name | Description |
|---|---|
SetInt16(List<Byte>, Int32, Int16) | Writes a little-endian Int16 to a List<T> of bytes at the specified index. |
SetInt16(List<Byte>, Int32, Int16, Endian) | Writes a Int16 to a List<T> of bytes at the specified index using the specified endianness. |
SetInt16(List<Byte>, Int32, Int16) ​
Writes a little-endian Int16 to a List<T> of bytes at the specified index.
c#
public static void SetInt16(this List<Byte> bytes, int index, Int16 value);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | List<Byte> | |
index | Int32 | The zero-based index to write to. |
value | Int16 | The value to write. |
SetInt16(List<Byte>, Int32, Int16, Endian) ​
Writes a Int16 to a List<T> of bytes at the specified index using the specified endianness.
c#
public static void SetInt16(this List<Byte> bytes, int index, Int16 value, Endian endian);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | List<Byte> | |
index | Int32 | The zero-based index to write to. |
value | Int16 | The value to write. |
endian | Endian | The endianness to use. |