ByteArrayExtensions.SetInt32 Method
Overloads
SetInt32(Byte[], Int32, Int32)
Writes a little-endian Int32 to a byte array at the specified index.
public static void SetInt32(this Byte[] bytes, int index, int value);
View source
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.
public static void SetInt32(this Byte[] bytes, int index, int value, Endian endian);
View source
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. |