Skip to content

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.

Uint8Array

The bytes to read from.

number

The index of the first byte to read.

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.

bigint

The value as an unsigned 64-bit integer.