|
MongoDB
2.4.4-pre-
|
helper to read and parse a block of memory methods throw the eof exception if the operation would pass the end of the buffer with which we are working. More...
#include <bufreader.h>
Classes | |
| class | eof |
Public Member Functions | |
| BufReader (const void *p, unsigned len) | |
| bool | atEof () const |
| template<typename T > | |
| void | read (T &t) |
| read in the object specified, and advance buffer pointer | |
| template<typename T > | |
| void | peek (T &t) |
| verify we can look at t, but do not advance | |
| unsigned | offset () const |
| return current offset into buffer | |
| unsigned | remaining () const |
| return remaining bytes | |
| void | rewind (unsigned nbytes) |
| back up by nbytes | |
| const void * | skip (unsigned len) |
| return current position pointer, and advance by len | |
| void | readStr (string &s) |
| const void * | pos () |
| const void * | start () |
helper to read and parse a block of memory methods throw the eof exception if the operation would pass the end of the buffer with which we are working.
1.8.3.1