Examples#

Some examples using the Tibs library. The code for these can be found in the examples/ directory of the repo. They are grouped by the view (see User Manual) each one leans on most, though several use more than one.

The bits as a sequence#

Searching a byte stream and slicing fields out of it.

Typed fields and views#

Reading and writing numeric fields, with byte order and bit labels handled by a view.

Sets of bits#

Treating the container as a set of bit positions for algebra and comparison.