Packed Bitfield Type Library for Lua

$ luarocks install --server= bitfield

A bitfield is an add-in Lua type provided by the bitfield.dll / run-time loadable library. It is implemented as a subtype of
userdata which stores a vector of bits (or booleans) between 1 and 256
bits wide. The state of the bits in a bitfield is mutable, but the width
is not (it is established when the bitfield is created).

This library is offered as an alternative to the standard Lua bit32
library. The primary applications targeted are the implementation of
communications protocols and the representation of bit-mapped registers
in hardware devices.


scm-1dev10 years ago6 downloads


lua ~> 5.2