Bits allows for packing and unpacking of both bytes and bits in relation to an array of bytes of arbitrary length. And SimpleBits is a simplified version of Bits which uses only one byte.
Bits
2.0.4
A library for dealing with bits and sequences of bits inside of bytes and sequences of bytes