Skip to content

ByteIReadOnlyListExtensions.GetUInt24 Method ​

Overloads ​

NameDescription
GetUInt24(IReadOnlyList<Byte>, Int32)Reads a little-endian UInt24 from a read-only list of bytes at the specified index.
GetUInt24(IReadOnlyList<Byte>, Int32, Endian)Reads a UInt24 from a read-only list of bytes at the specified index using the specified endianness.

GetUInt24(IReadOnlyList<Byte>, Int32) ​

Reads a little-endian UInt24 from a read-only list of bytes at the specified index.

c#
public static UInt24 GetUInt24(this IReadOnlyList<Byte> bytes, int index);

View source

Parameters ​

NameTypeDescription
bytesIReadOnlyList<Byte>
indexInt32The zero-based index to read from.

Returns ​

UInt24

The UInt24 value.

GetUInt24(IReadOnlyList<Byte>, Int32, Endian) ​

Reads a UInt24 from a read-only list of bytes at the specified index using the specified endianness.

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

View source

Parameters ​

NameTypeDescription
bytesIReadOnlyList<Byte>
indexInt32The zero-based index to read from.
endianEndianThe endianness to use.

Returns ​

UInt24

The UInt24 value.