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