ByteListExtensions.SetInt16 Method
Overloads
SetInt16(List<Byte>, Int32, Int16)
Writes a little-endian Int16 to a List<T> of bytes at the specified index.
public static void SetInt16(this List<Byte> bytes, int index, Int16 value);
View source
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.
public static void SetInt16(this List<Byte> bytes, int index, Int16 value, Endian endian);
View source
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. |