|
CoreComponents 4.0.0
A Modern C++ Toolkit
|
Read from a ByteSource bit-vise. More...
#include <cc/BitSource>
Public Types | |
| using | Item = bool |
| Item type. | |
Public Member Functions | |
| BitSource (const ByteSource &source) | |
| Create a new bit source. | |
| BitSource (const Bytes &bytes) | |
| Create a new bit source. | |
| bool | readBit () |
| Read a single bit. | |
| template<int n, class T > | |
| T | readBits () |
| Read n bits and return as word of type T. | |
| bool | read (Out< bool > bit) |
| Read a single bit. | |
| template<int n, class T > | |
| bool | read (Out< T > bits) |
| Read n bits and return as word of type T. | |
| SourceIterator< BitSource > | begin () |
| Iteration start. | |
| SourceIterator< BitSource > | end () |
| Iteration end. | |
Read from a ByteSource bit-vise.
| using Item = bool |
Item type.
| BitSource | ( | const ByteSource & | source | ) |
Create a new bit source.
| bool readBit | ( | ) |
Read a single bit.
| InputExhaustion |
| T readBits | ( | ) |
Read n bits and return as word of type T.
| InputExhaustion |
| bool read | ( | Out< bool > | bit | ) |
Read a single bit.
| bit | Returns the bit |
| bool read | ( | Out< T > | bits | ) |
Read n bits and return as word of type T.
| InputExhaustion |
| SourceIterator< BitSource > begin | ( | ) |
Iteration start.
| SourceIterator< BitSource > end | ( | ) |
Iteration end.