Public Member Functions | Protected Attributes

DataStructures::ByteQueue Class Reference

#include <DS_ByteQueue.h>

List of all members.

Public Member Functions

 ByteQueue ()
 ~ByteQueue ()
void WriteBytes (const char *in, unsigned length, const char *file, unsigned int line)
bool ReadBytes (char *out, unsigned maxLengthToRead, bool peek)
unsigned GetBytesWritten (void) const
char * PeekContiguousBytes (unsigned int *outLength) const
void IncrementReadOffset (unsigned length)
void DecrementReadOffset (unsigned length)
void Clear (const char *file, unsigned int line)
void Print (void)

Protected Attributes

char * data
unsigned readOffset
unsigned writeOffset
unsigned lengthAllocated

Detailed Description

Definition at line 20 of file DS_ByteQueue.h.


Constructor & Destructor Documentation

ByteQueue::ByteQueue (  ) 

Definition at line 9 of file DS_ByteQueue.cpp.

ByteQueue::~ByteQueue (  ) 

Definition at line 14 of file DS_ByteQueue.cpp.

Here is the call graph for this function:


Member Function Documentation

void ByteQueue::Clear ( const char *  file,
unsigned int  line 
)

Definition at line 96 of file DS_ByteQueue.cpp.

Here is the caller graph for this function:

void ByteQueue::DecrementReadOffset ( unsigned  length  ) 

Definition at line 114 of file DS_ByteQueue.cpp.

Here is the caller graph for this function:

unsigned ByteQueue::GetBytesWritten ( void   )  const

Definition at line 103 of file DS_ByteQueue.cpp.

Here is the caller graph for this function:

void ByteQueue::IncrementReadOffset ( unsigned  length  ) 

Definition at line 110 of file DS_ByteQueue.cpp.

Here is the caller graph for this function:

char * ByteQueue::PeekContiguousBytes ( unsigned int *  outLength  )  const

Definition at line 88 of file DS_ByteQueue.cpp.

Here is the caller graph for this function:

void ByteQueue::Print ( void   ) 

Definition at line 121 of file DS_ByteQueue.cpp.

bool ByteQueue::ReadBytes ( char *  out,
unsigned  maxLengthToRead,
bool  peek 
)

Definition at line 59 of file DS_ByteQueue.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ByteQueue::WriteBytes ( const char *  in,
unsigned  length,
const char *  file,
unsigned int  line 
)

Definition at line 20 of file DS_ByteQueue.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 35 of file DS_ByteQueue.h.

Definition at line 36 of file DS_ByteQueue.h.

Definition at line 36 of file DS_ByteQueue.h.

Definition at line 36 of file DS_ByteQueue.h.


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