ByteSpanExtensions.SetUInt32 Method ​
Overloads ​
| Name | Description |
|---|---|
SetUInt32(Span<Byte>, UInt32) | Writes a little-endian UInt32 to a span of bytes. |
SetUInt32(Span<Byte>, UInt32, Endian) | Writes a UInt32 to a span of bytes using the specified endianness. |
SetUInt32(Span<Byte>, UInt32) ​
Writes a little-endian UInt32 to a span of bytes.
c#
public static void SetUInt32(this Span<Byte> bytes, uint value);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | Span<Byte> | |
value | UInt32 | The value to write. |
SetUInt32(Span<Byte>, UInt32, Endian) ​
Writes a UInt32 to a span of bytes using the specified endianness.
c#
public static void SetUInt32(this Span<Byte> bytes, uint value, Endian endian);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | Span<Byte> | |
value | UInt32 | The value to write. |
endian | Endian | The endianness to use. |