LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::BitReader Class Reference

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.
 

The documentation for this class was generated from the following file: