[Overview][Constants][Classes] |
Create a new TBufStreaminstance.
Source position: line 0
public constructor TBufStream.Create( |
ASource: TStream; |
ACapacity: Integer |
); |
ASource: TStream |
); |
Createcreates a new TBufStreaminstance. A buffer of size ACapacityis allocated, and the ASourcesource (or destination) stream is stored. If no capacity is specified, then DefaultBufferCapacityis used as the capacity.
An instance of TBufStreamshould never be instantiated directly. Instead, an instance of TReadBufStreamor TWriteBufStreamshould be created.
If not enough memory is available for the buffer, then an exception may be raised.
|
Destroys the TBufStreaminstance |
|
|
Read-only buffered stream. |
|
|
Write-only buffered stream. |