sprint 1-alpha
Public Member Functions
sprint::io::mem< buffer_mode > Class Template Reference

#include <mem.h>

List of all members.

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

Detailed Description

template<bool buffer_mode>
class sprint::io::mem< buffer_mode >

a policy IO to read/write to a memory buffer

Parameters:
buffer_modebecome read-only and works like a buffer

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines