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