Skip to content

getUint32ArrayLe

getUint32ArrayLe(data, offset, byteLength): Uint32Array

Defined in: packages/core/src/buffer/codec/get-uint32-array-le.ts:18

Reads byteLength little-endian bytes from data at offset into a fresh Uint32Array.

The inverse of setUint32ArrayLe. byteLength need not be a multiple of four — a partial final word reads only its leading bytes, which for little-endian is equivalent to zero-padding the missing high bytes, so a value narrower than a word never reads past its own span.

Uint8Array

The bytes to read from. The caller is responsible for ensuring that byteLength bytes are available at offset.

number

The index of the first byte to read.

number

How many bytes to read.

Uint32Array

⌈byteLength / 4⌉ words.