Reads a stream of bytes from a packet more easily.
#include <nrg_bit_io.h>
Public Member Functions | |
BitReader (Packet &p) | |
Constructs a BitReader that will read from the Packet p . | |
bool | read (void) |
Reads a bit from the internal state and returns a bool representation of it. | |
template<class T > | |
void | readFunc (int sz, const T &fn) |
Calls BitReader::read sz times, calling fn with each result. | |