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