Table of Contents

Bits Namespace

The bits namespace contains functions that interact with bits and bytes data.

You can access these functions via:

ashita.bits.


ashita.bits.unpack_be

Unpacks bit data. (Big Endian)

number ashita.bits.unpack_be(data, offset, len);

number ashita.bits.unpack_be(data, byteOffset, bitOffset, len);


ashita.bits.unpack_le

Unpacks bit data. (Little Endian)

number ashita.bits.unpack_le(data, offset, len);

number ashita.bits.unpack_le(data, byteOffset, bitOffset, len);