Quick Reference¶
This section gives a summary of the bitstring module’s classes, functions and attributes.
There are four classes that are bit containers, so that each element is a single bit. They differ based on whether they can be modified after creation and on whether they have the concept of a current bit position.
Class |
Mutable? |
Streaming methods? |
|
---|---|---|---|
|
✘ |
✘ |
An efficient, immutable container of bits. |
|
✔ |
✘ |
Like |
|
✘ |
✔ |
Immutable like |
|
✔ |
✔ |
Mutable like |
The final class is a flexible container whose elements are fixed-length bitstrings.
|
✔ |
✘ |
An efficient list-like container where each item has a fixed-length binary format. |