Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TChunkyStream
Inherited By:
None.
Purpose:
TGrowingChunkyStream is a concrete class (derived from TChunkyStream) that embodies a random access stream backed by chunks of memory, which can dynamically grow.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
None.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
No special requirements.
- TGrowingChunkyStream ()
- TGrowingChunkyStream (TChunkyMemory * adoptChunkyMemory)
- TGrowingChunkyStream (const TGrowingChunkyStream & aChunkyStream)
Interface Category:
API.
Purpose:
- Default constructor.
- Creates a TGrowingChunkyStream that obtains memory chunks from a specific TChunkyMemory object.
- Copy constructor.
Calling Context:
- Called by the stream-in operators.
- Called to create a TGrowingChunkyStream which uses specific TChunkyMemory.
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
The copy constructor performs a deep copy of the source object.
virtual TStream & operator <<= (TStream & fromWhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & fromWhere -The stream the object streams itself in from.
Return Value:
Returns a reference to the stream the object streams itself in from.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator >>=(TStream & toWhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & toWhere -The stream the object streams itself out to.
Return Value:
Returns a reference to the stream the object streams itself out to.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TGrowingChunkyStream & operator =(const TGrowingChunkyStream & aChunkyStream)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
- const TGrowingChunkyStream & aChunkyStream -The object that supplies the value for the right-hand side of the assignment statement.
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TGrowingChunkyStream ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void AllocateForWrite (StreamPosition desiredByteCount)
Interface Category:
API.
Purpose:
Completes stream-out operations that overflow the current stream buffer.
Calling Context:
Called by primitive streaming operators when there is not enough memory left in the current stream buffer to complete a stream-out operation.
Parameters:
- StreamPosition desiredByteCount -The number of bytes that must be written to the stream.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
If needed the stream may grow.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.