Skip to content

ByteSpanExtensions.GetUInt24 Method

Overloads

Name Description
GetUInt24(Span<Byte>) Reads a little-endian UInt24 from a span of bytes.
GetUInt24(Span<Byte>, Endian) Reads a UInt24 from a span of bytes using the specified endianness.

GetUInt24(Span<Byte>)

Reads a little-endian UInt24 from a span of bytes.

public static UInt24 GetUInt24(this Span<Byte> bytes);

View source

Parameters

Name Type Description
bytes Span<Byte>

Returns

UInt24

The UInt24 value.

GetUInt24(Span<Byte>, Endian)

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

public static UInt24 GetUInt24(this Span<Byte> bytes, Endian endian);

View source

Parameters

Name Type Description
bytes Span<Byte>
endian Endian The endianness to use.

Returns

UInt24

The UInt24 value.