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
| Parameter | Type |
|---|---|
bytes | Uint8Array |
size | 1 | 2 | 4 | 8 |
littleEndian | boolean |
Returns
(bigint | null)[]