ByteSpanExtensions.GetUInt32 Method
Overloads
| Name | Description |
|---|---|
| GetUInt32(Span<Byte>) | Reads a little-endian UInt32 from a span of bytes. |
| GetUInt32(Span<Byte>, Endian) | Reads a UInt32 from a span of bytes using the specified endianness. |
GetUInt32(Span<Byte>)
Reads a little-endian UInt32 from a span of bytes.
public static uint GetUInt32(this Span<Byte> bytes);
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | Span<Byte> |
Returns
The UInt32 value.
GetUInt32(Span<Byte>, Endian)
Reads a UInt32 from a span of bytes using the specified endianness.
public static uint GetUInt32(this Span<Byte> bytes, Endian endian);
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | Span<Byte> | |
| endian | Endian | The endianness to use. |
Returns
The UInt32 value.