Create a new TBufStream instance.
Source position: bufstream.pp line 57
public constructor TBufStream.Create( |
ASource: TStream; |
ACapacity: Integer |
); |
ASource: TStream |
); |
ASource |
|
Source stream to buffer data from. |
ACapacity |
|
Buffer capacity. |
ASource |
|
Source stream to buffer data from. |
Create creates a new TBufStream instance. A buffer of size ACapacity is allocated, and the ASource source (or destination) stream is stored. If no capacity is specified, then DefaultBufferCapacity is used as the capacity.
An instance of TBufStream should never be instantiated directly. Instead, an instance of TReadBufStream or TWriteBufStream should be created.
If not enough memory is available for the buffer, then an exception may be raised.
|
Destroys the TBufStream instance. |
|
|
Read-only buffered stream. |
|
|
Write-only buffered stream. |