getUInt64Le

Reads a UInt64 value from the byte array at the specified offset in little-endian order.

This function reads eight bytes (UInt64) from the byte array at the specified offset and interprets them as an unsigned 64-bit integer using little-endian byte order.

Return

The UInt64 value read from the byte array.

Parameters

offset

The offset (index) in the byte array from which the UInt64 value should be read. Must be within the valid range of the array's indices.

Throws

If the offset or offset + 7 is negative or greater than or equal to the array's size.


fun ByteString.getUInt64Le(offset: Int): ULong

Gets a 64-bit unsigned integer (UInt64) from this ByteString at the specified offset in Little-Endian order.

This function retrieves eight bytes from the ByteString at the given offset and the next seven bytes, and interprets them as a 64-bit unsigned integer in Little-Endian order.

Return

The 64-bit unsigned integer value at the specified offset.

Parameters

offset

The index from which to start reading the UInt64 value.

Throws

if the offset is out of bounds or if the size of this ByteString is less than Long.SIZE_BYTES.