Created by the British Broadcasting Corporation.
Input Stream Buffer Class.
#include <dirac_cppparser.h>
Public Member Functions | |
InputStreamBuffer () | |
Constructor. More... | |
~InputStreamBuffer () | |
Destructor. More... | |
std::ios::pos_type | Rewind () |
Rewind buffer to start of data. More... | |
std::ios::pos_type | Seek (std::ios::pos_type bytes, std::ios::seekdir pos=std::ios::cur) |
Seek to position specified by bytes offset from pos. More... | |
std::ios::pos_type | Tell () |
Return the current read position in the buffer. More... | |
void | Copy (char *start, int bytes) |
Copy data into buffer. More... | |
void | PurgeProcessedData () |
Delete all processed data from buffer. More... | |
Private Member Functions | |
InputStreamBuffer (const InputStreamBuffer &inbuf) | |
Private body-less copy constructor. More... | |
InputStreamBuffer & | operator= (const InputStreamBuffer &inbuf) |
Private body-less assignment operator. More... | |
Private Attributes | |
char * | m_chunk_buffer |
Buffere. More... | |
Static Private Attributes | |
static const int | m_buffer_size = 1232896 |
Buffer size. More... | |
dirac::InputStreamBuffer::InputStreamBuffer | ( | ) |
dirac::InputStreamBuffer::~InputStreamBuffer | ( | ) |
|
private |
void dirac::InputStreamBuffer::Copy | ( | char * | start, |
int | bytes | ||
) |
Copy take
start | memory area start |
bytes | number of bytes to copy starting from start |
|
private |
void dirac::InputStreamBuffer::PurgeProcessedData | ( | ) |
std::ios::pos_type dirac::InputStreamBuffer::Rewind | ( | ) |
std::ios::pos_type dirac::InputStreamBuffer::Seek | ( | std::ios::pos_type | bytes, |
std::ios::seekdir | pos = std::ios::cur |
||
) |
Seek takes
bytes | offset in bytes |
pos | the position from which the offset is applied |
std::ios::pos_type dirac::InputStreamBuffer::Tell | ( | ) |
|
staticprivate |
|
private |
© 2004 British Broadcasting Corporation.
Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's
excellent Doxygen tool.