Skip to content

probe-web / @probe-web/ui / groupBytes

Function: groupBytes()

ts
function groupBytes(
   bytes, 
   size, 
   littleEndian
): (bigint | null)[];

Defined in: packages/ui/src/intel-hex.ts:43

Group bytes into words of size bytes with the given endianness. A short tail that does not fill a word becomes null.

Parameters

ParameterType
bytesUint8Array
size1 | 2 | 4 | 8
littleEndianboolean

Returns

(bigint | null)[]