Odamex
Setting the Standard in Multiplayer Doom
buf_t Class Reference

#include <i_net.h>

Public Member Functions

void WriteByte (byte b)
void WriteShort (short s)
void WriteLong (int l)
void WriteString (const char *c)
void WriteChunk (const char *c, unsigned l, int startpos=0)
int ReadByte ()
int NextByte ()
byteReadChunk (size_t size)
int ReadShort ()
int ReadLong ()
const char * ReadString ()
size_t BytesLeftToRead ()
size_t BytesRead ()
byteptr ()
size_t size ()
size_t maxsize ()
void setcursize (size_t len)
void clear ()
void resize (size_t len)
byteSZ_GetSpace (size_t length)
buf_toperator= (const buf_t &other)
 buf_t ()
 buf_t (size_t len)
 buf_t (const buf_t &other)
 ~buf_t ()
void WriteByte (byte b)
void WriteShort (short s)
void WriteLong (int l)
void WriteString (const char *c)
void WriteChunk (const char *c, unsigned l, int startpos=0)
int ReadByte ()
int NextByte ()
byteReadChunk (size_t size)
int ReadShort ()
int ReadLong ()
const char * ReadString ()
size_t BytesLeftToRead ()
size_t BytesRead ()
byteptr ()
size_t size ()
size_t maxsize ()
void setcursize (size_t len)
void clear ()
void resize (size_t len)
byteSZ_GetSpace (size_t length)
buf_toperator= (const buf_t &other)
 buf_t ()
 buf_t (size_t len)
 buf_t (const buf_t &other)
 ~buf_t ()

Data Fields

bytedata
size_t allocsize
size_t cursize
size_t readpos
bool overflowed

Constructor & Destructor Documentation

buf_t::buf_t ( ) [inline]
buf_t::buf_t ( size_t  len) [inline]
buf_t::buf_t ( const buf_t other) [inline]
buf_t::~buf_t ( ) [inline]
buf_t::buf_t ( ) [inline]
buf_t::buf_t ( size_t  len) [inline]
buf_t::buf_t ( const buf_t other) [inline]
buf_t::~buf_t ( ) [inline]

Member Function Documentation

size_t buf_t::BytesLeftToRead ( ) [inline]
size_t buf_t::BytesLeftToRead ( ) [inline]
size_t buf_t::BytesRead ( ) [inline]
size_t buf_t::BytesRead ( ) [inline]
void buf_t::clear ( ) [inline]
void buf_t::clear ( ) [inline]
size_t buf_t::maxsize ( ) [inline]
size_t buf_t::maxsize ( ) [inline]
int buf_t::NextByte ( ) [inline]
int buf_t::NextByte ( ) [inline]
buf_t& buf_t::operator= ( const buf_t other) [inline]
buf_t& buf_t::operator= ( const buf_t other) [inline]
byte* buf_t::ptr ( ) [inline]
byte* buf_t::ptr ( ) [inline]
int buf_t::ReadByte ( ) [inline]
int buf_t::ReadByte ( ) [inline]
byte* buf_t::ReadChunk ( size_t  size) [inline]
byte* buf_t::ReadChunk ( size_t  size) [inline]
int buf_t::ReadLong ( ) [inline]
int buf_t::ReadLong ( ) [inline]
int buf_t::ReadShort ( ) [inline]
int buf_t::ReadShort ( ) [inline]
const char* buf_t::ReadString ( ) [inline]
const char* buf_t::ReadString ( ) [inline]
void buf_t::resize ( size_t  len) [inline]
void buf_t::resize ( size_t  len) [inline]
void buf_t::setcursize ( size_t  len) [inline]
void buf_t::setcursize ( size_t  len) [inline]
size_t buf_t::size ( ) [inline]
size_t buf_t::size ( ) [inline]
byte* buf_t::SZ_GetSpace ( size_t  length) [inline]
byte* buf_t::SZ_GetSpace ( size_t  length) [inline]
void buf_t::WriteByte ( byte  b) [inline]
void buf_t::WriteByte ( byte  b) [inline]
void buf_t::WriteChunk ( const char *  c,
unsigned  l,
int  startpos = 0 
) [inline]
void buf_t::WriteChunk ( const char *  c,
unsigned  l,
int  startpos = 0 
) [inline]
void buf_t::WriteLong ( int  l) [inline]
void buf_t::WriteLong ( int  l) [inline]
void buf_t::WriteShort ( short  s) [inline]
void buf_t::WriteShort ( short  s) [inline]
void buf_t::WriteString ( const char *  c) [inline]
void buf_t::WriteString ( const char *  c) [inline]

Field Documentation


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends