Inheritance diagram for CP_PtrBlockOutStream:
Public Member Functions | |
Constructor / Destructor | |
CP_PtrBlockOutStream (CP_PtrBlock *inOutBlock, bool inHasHeader=true) | |
Constructor. | |
CP_PtrBlockOutStream (CP_PtrBlock *inOutBlock, UInt32 inBeginPosition, bool inHasHeader=true) | |
virtual | ~CP_PtrBlockOutStream () throw () |
Destructor. | |
PtrBlock | |
CP_PtrBlock * | GetPtrBlock () const |
void | SetPtrBlock (CP_PtrBlock *inPtrBlock) |
Positioning | |
virtual UInt32 | GetPosition () const |
virtual void | SetPosition (UInt32 inPosition) |
Protected Member Functions | |
Positioning | |
virtual void | OnWriteBytes (const void *inDestBuffer, UInt32 inNumberBytes) |
virtual UInt32 | OnWriteData (const void *inBuffer, UInt32 inBytesToWrite) |
Protected Attributes | |
CP_PtrBlock * | fPtrBlock |
bool | fHeaderWasWritten |
bool | fNeedsByteSwap |
UInt32 | fCurrentPosition |
UInt16 | fCPLATStreamVersion |
bool | fHasTaggedData |
bool | fHasHeader |
Private Member Functions | |
PtrBlock | |
void | GrowPtrBlock (UInt32 inNewSizeNeeded) |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Returns the CP_PtrBlock object associated with this stream.
|
|
Sets the CP_PtrBlock object 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.
Reimplemented from CP_OutStream. |
|
Sets the current position marker to mark the current position in our output stream.
Reimplemented from CP_OutStream. |
|
Writes the passed in data to our handle block.
Reimplemented from CP_OutStream. |
|
Writes the passed in data to our handle block, returning the actual number of bytes written to the handle block.
|
|
Private routine to allocate more memory to the block we are writing to. This will double the size of the existing allocated block if it will be greater than the passed in amount to grow the block by. If we can't grow by double the current size, then we will try to grow by the passed in amount.
|
|
Writes a number of butes from the passed in buffer to the stream.
|
|
|
|
|
|
Returns the stream version used to write this data.
|
|
|
|
Returns a flag to indicate if the data in the stream is tagged with the type of data written before the actual data. Used in debugging streams.
|
|
Writes the passed in tag out to the stream. This is used when the user has indicated they want to write tags before each element in the streamed data.
|
|
Writes the header out to the stream.
|
|
|
|
|
|
Flag to indicate if the header has been written to the stream. |
|
Flag to indicate if we need to byte swap the data. |
|
The current position in the stream to write the next data to. |
|
Version of the stream data. |
|
|