![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cStream.h>
Public Member Functions | |
virtual | ~cStreamBase () |
virtual STREAM_SEEKRET_t | Seek (STREAM_OFFSET_t iOffset, SEEK_ORIGIN_TYPE eSeekOrigin=SEEK_Set) |
void | SeekToBegin () |
STREAM_POS_t | SeekToEnd () |
virtual STREAM_POS_t | GetPosition () const |
virtual STREAM_POS_t | GetLength () const |
Static Public Attributes | |
static const BYTE | k_SIZE_MASK = 0x80 |
Used for WriteSize() More... | |
static const size_t | k_FILE_BLOCK_SIZE = (32 * 1024) |
default arbitrary transfer block size. more than this is NOT more efficient. More... | |
base class for cStreamOutput or cStreamInput.
|
inlinevirtual |
|
virtual |
default implementation. override this for better implementation.
Reimplemented in GraySSL::cSSLCommon, GrayLib::cFileMem, Gray::cStreamStatic, Gray::cStreamQueue, Gray::cStream, and Gray::cFile.
|
virtual |
Get current read position. default implementation. If Seek() is not overridden.
Reimplemented in GrayLib::cFileMem, Gray::cStream, Gray::cFileText, and Gray::cFile.
|
inlinevirtual |
Try to change position in a stream. TODO MOVE THIS TO RX ONLY ?? Maybe try to 'unread' to a previous position in the stream. This may not be possible if the data has been lost!
Reimplemented in Gray::cFileText, Gray::cStreamStatic, Gray::cStreamQueue, GrayLib::cFileMem, Gray::cFile, GraySSL::cSSLCommon, Gray::cStream, Gray::cStreamTextReader, and GrayLib::cNetStream.
|
inline |
ala MFC. Seek to start of file/stream.
|
inline |
ala MFC. Seek to end of file/stream.
|
static |
default arbitrary transfer block size. more than this is NOT more efficient.
|
static |
Used for WriteSize()