sprint 1-alpha
|
#include <mem.h>
Public Member Functions | |
mem () | |
empty costructor | |
mem (const char *src, int size) | |
copy form memory costructor | |
void | resize (int size) |
int | write (const char *buf, unsigned int size) |
insert data inside buffer | |
int | read (char *buf, unsigned int size) |
read data from buffer | |
int | seek (int offset, int type) |
is seekable | |
int | length () const |
Stream Lenght (or -1 if is undefined size) | |
state_t | state () const |
char * | data () |
to access to inner buffer | |
const char * | data () const |
a policy IO to read/write to a memory buffer
buffer_mode | become read-only and works like a buffer |