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