soggy.Documentation Back to Soggy ↗

bit.bswap

Swaps the bytes of its argument and returns it. This can be used to convert little-endian 32 bit numbers to big-endian 32 bit numbers or vice versa.

bit.bswap(x: number): number

Arguments

NameDescriptionType
xN/Anumber

Returns number

Type to search guides, functions and events.