setUint32ArrayBe
setUint32ArrayBe(
target,offset,words,byteLength?):void
Defined in: packages/core/src/buffer/codec/set-uint32-array-be.ts:16
Writes words into target at offset as big-endian bytes, in place.
Parameters
Section titled “Parameters”target
Section titled “target”Uint8Array
The bytes to write into. The caller is responsible for
ensuring that byteLength bytes are available at offset.
offset
Section titled “offset”number
The index of the first byte to write.
Uint32Array
The words to serialize.
byteLength?
Section titled “byteLength?”number = ...
How many leading bytes to write. Defaults to all of
words. Truncation is byte-granular, not word-granular — e.g. BLAKE2s
accepts any output length from 1 to 32 bytes, not just multiples of 4 — so
a truncated final word writes only its leading bytes, never spilling past
offset + byteLength into whatever follows in target.
Returns
Section titled “Returns”void