Skip to content

ReadOnlyMemoryExtensions.GetUInt24 Method

Overloads

Name Description
GetUInt24(ReadOnlyMemory<Byte>, Int32) Reads a little-endian UInt24 from read-only memory at the specified index.
GetUInt24(ReadOnlyMemory<Byte>, Int32, Endian) Reads a UInt24 from read-only memory at the specified index using the specified endianness.

GetUInt24(ReadOnlyMemory<Byte>, Int32)

Reads a little-endian UInt24 from read-only memory at the specified index.

public static UInt24 GetUInt24(this ReadOnlyMemory<Byte> bytes, int index);

View source

Parameters

Name Type Description
bytes ReadOnlyMemory<Byte>
index Int32 The zero-based index to read from.

Returns

UInt24

The UInt24 value.

GetUInt24(ReadOnlyMemory<Byte>, Int32, Endian)

Reads a UInt24 from read-only memory at the specified index using the specified endianness.

public static UInt24 GetUInt24(this ReadOnlyMemory<Byte> bytes, int index, Endian endian);

View source

Parameters

Name Type Description
bytes ReadOnlyMemory<Byte>
index Int32 The zero-based index to read from.
endian Endian The endianness to use.

Returns

UInt24

The UInt24 value.