Inheritance diagram for CP_PtrBlockInStream:
Public Member Functions | |
Positioning | |
virtual bool | IsEOF () const |
Positioning | |
virtual bool | IsEOF () const |
Constructor / Destructor | |
CP_PtrBlockInStream (const CP_PtrBlock *inBlock, bool inHasHeader=true) | |
Constructor. | |
CP_PtrBlockInStream (const CP_PtrBlock *inBlock, UInt32 inBeginPosition, bool inHasHeader=true) | |
virtual | ~CP_PtrBlockInStream () throw () |
Destructor. | |
Getters | |
virtual UInt32 | GetLength () const |
PtrBlock | |
const CP_PtrBlock * | GetPtrBlock () const |
void | SetPtrBlock (const CP_PtrBlock *inPtrBlock) |
Positioners | |
virtual UInt32 | GetPosition () const |
virtual void | SetPosition (UInt32 inPosition) |
Positioning | |
virtual bool | IsEOF () const |
Protected Member Functions | |
Reading | |
virtual UInt32 | OnReadBytes (void *inDestBuffer, UInt32 inNumberBytes) |
Protected Attributes | |
const CP_PtrBlock * | fPtrBlock |
UInt32 | fCurrentPosition |
bool | fHasReadHeader |
bool | fNeedsByteSwap |
UInt16 | fCPLATStreamVersion |
bool | fHasTaggedData |
bool | fHasHeader |
char | fDesiredEdian |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Returns the length of the handle block used with this stream.
Implements CP_InStream. |
|
|
|
Sets the CP_PtrBlock associated with this stream. The CP_PtrBlock's lifetime must last until the stream is deallocated or until another block is attached to the stream through this call.
|
|
Returns the current position marker to indicate the current position we are writing to our stream.
Implements CP_InStream. |
|
Sets the current position marker to mark the current position in our output stream.
Implements CP_InStream. |
|
Reads data from our handle block, placing the data in the passed in buffer. The buffer should be at least as large as the passed in inBytesToRead. This method will return the actual number of bytes read.
Implements CP_InStream. |
|
Reads some data from the stream. Used by the >> operators to read the data, but can also be used in an application.
|
|
|
|
|
|
|
|
|
|
Returns true if the stream has reached the end.
Reimplemented in CP_SocketInStream. |
|
Returns true if the data type is written before each elemement. This is intended in debugging the stream data since it increases the size of the resulting stream.
|
|
Reads the tag before a data element if the streamed data has tagged data.
|
|
Reads the header portion of our stream.
|
|
|
|
The CP_PtrBlock object we are reading from. |
|
|
|
Flag to indicate if we have read the header. |
|
Flag to indicate if we need to byte swap the data. |
|
CPLAT stream version used to write this stream. |
|
Flag to indicate if the data has its type written out also. |
|
Flag to indicate if we are want to read data not created by this framework and therefore won't have a correct header. |