Skip to content

ByteReadOnlySpanExtensions.GetUInt24 Method ​

Overloads ​

NameDescription
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.

c#
public static UInt24 GetUInt24(this ReadOnlySpan<Byte> bytes);

View source

Parameters ​

NameTypeDescription
bytesReadOnlySpan<Byte>

Returns ​

UInt24

The UInt24 value.

GetUInt24(ReadOnlySpan<Byte>, Endian) ​

Reads a UInt24 from a read-only span of bytes using the specified endianness.

c#
public static UInt24 GetUInt24(this ReadOnlySpan<Byte> bytes, Endian endian);

View source

Parameters ​

NameTypeDescription
bytesReadOnlySpan<Byte>
endianEndianThe endianness to use.

Returns ​

UInt24

The UInt24 value.