Functionsยง
- bit_
and_ 8 - Bitwise AND (8-bit) โ direct translation of
bitAnd8. - bit_
lshift_ 8 - Bitwise left shift (8-bit) โ bounds restricted to 0..=8 like original.
- bit_
not_ 8 - Bitwise NOT (8-bit) โ direct translation of
bitNot8. - bit_
rshift_ 8 - Bitwise logical right shift (8-bit).
- byte_
array_ from_ int_ bit_ array - Convert a flat bit array (length multiple of 8) into bytes.
- byte_
array_ to_ int_ bit_ array - Flatten a byte slice into a vector of 0/1 bits (MSB first per byte).
- byte_
from_ int_ bit_ array - Convert exactly 8 bits (0/1) into a single byte.
- byte_
to_ int_ bit_ array - Convert a single byte to an 8-length vector of bits (MSB first).
- least_
significant_ byte - Return least significant byte from a 32-bit int (matches original intent).
- mask_
byte ๐ - Equivalent to JS internal bitwise mask (force into 0..=255).