How ciubotaru/bitfield works
bitfield is a C library for creating, converting, inspecting, and manipulating bit arrays stored as arrays of unsigned long values. The principal workflow is that a client uses the public API to create a bitfield from input data, perform bit-level or whole-array operations, then inspect, print, or convert the result. The implementation and internal representation are concentrated in bitfield.c and bitfield-internals.h. README capabilities are represented as implementation responsibilities; the excerpts do not expose every function body, so no internal call sequence is inferred.
Main entry points: bitfield.h Public API · bitfield.c Core implementation · bitfield-internals.h Bit storage layout
Components 10
Public interface
- Public API
bitfield.h
Bitfield runtime
- Core implementation
bitfield.c - Bit storage layout
bitfield-internals.h
Bitfield capabilities
- Create and destroy
bitfield.c - Type conversions
bitfield.c - Bit operations
bitfield.c - Array operations
bitfield.c - Compare and count
bitfield.c - Print and inspect
bitfield.c
Other components
- C client
Connections 9
- C client → Public API: uses
README - Public API → Core implementation: implemented by
README - Core implementation → Bit storage layout: includes
bitfield.c - Public API → Create and destroy: declares
bitfield.h - Public API → Type conversions: declares
bitfield.h - Public API → Bit operations: declares
bitfield.h - Public API → Array operations: declares
bitfield.h - Public API → Compare and count: declares
bitfield.h - Public API → Print and inspect: declares
bitfield.h