ByteReadOnlySpanExtensions.GetUInt24 Method
Overloads
| Name | Description |
|---|---|
| GetUInt24(ReadOnlySpan<Byte>) | Reads a little-endian UInt24 from a read-only span of bytes. |
| GetUInt24(ReadOnlySpan<Byte>, Endian) | Reads a UInt24 from a read-only span of bytes using the specified endianness. |
GetUInt24(ReadOnlySpan<Byte>)
Reads a little-endian UInt24 from a read-only span of bytes.
public static UInt24 GetUInt24(this ReadOnlySpan<Byte> bytes);
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | ReadOnlySpan<Byte> |
Returns
The UInt24 value.
GetUInt24(ReadOnlySpan<Byte>, Endian)
Reads a UInt24 from a read-only span of bytes using the specified endianness.
public static UInt24 GetUInt24(this ReadOnlySpan<Byte> bytes, Endian endian);
Parameters
| Name | Type | Description |
|---|---|---|
| bytes | ReadOnlySpan<Byte> | |
| endian | Endian | The endianness to use. |
Returns
The UInt24 value.