getBigUint64Le
getBigUint64Le(
data,offset,byteLength?):bigint
Defined in: packages/core/src/buffer/codec/get-big-uint64-le.ts:17
Reads a little-endian unsigned integer from data at offset.
The caller is responsible for ensuring that byteLength bytes are available
at offset.
Parameters
Section titled “Parameters”Uint8Array
The bytes to read from.
offset
Section titled “offset”number
The index of the first byte to read.
byteLength?
Section titled “byteLength?”number = 8
How many bytes to read, in the 0..8 range. Defaults to 8 (a full word); fewer bytes read a narrower little-endian integer formed from just those leading bytes, which for little-endian is equivalent to zero-padding the missing high bytes.
Returns
Section titled “Returns”bigint
The value as an unsigned 64-bit integer.