Skip to content

byteSwap32

byteSwap32(value): number

Defined in: packages/core/src/number/bit/byte-swap32.ts:10

Reverses the byte order within the low 32 bits of value — an endian swap of a value already in hand, distinct from getUint32Le/setUint32Le, which convert between a Uint8Array and a number at a chosen endianness rather than flipping one already-extracted value.

number

The value to byte-swap; only its low 32 bits are considered.

number

The byte-swapped value as an unsigned 32-bit integer.