Declaration¶
Source position: bufstream.pp line 42
type
TBufStream = class(TOwnerStream)
public
constructor Create(ASource: TStream; ACapacity: Integer);
constructor Create(ASource: TStream);
destructor Destroy;
property Buffer: Pointer; {r}
property Capacity: Integer; {rw}
property BufferPos: Integer; {r}
property BufferSize: Integer; {r}
end;
Inheritance¶
Description¶
TBufStream is the common ancestor for the TReadBufStream and TWriteBufStream streams. It completely handles the buffer memory management and position management. An instance of TBufStream should never be created directly. It also keeps the instance of the source stream.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| Buffer read only | public | The current buffer. |
| BufferPos read only | public | Current buffer position. |
| BufferSize read only | public | Amount of data in the buffer. |
| Capacity | public | Current buffer capacity. |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Create | public | Create a new TBufStream instance. |
| Destroy | public | Destroys the TBufStream instance. |
See also¶
| Name | Description |
|---|---|
| TReadBufStream | Read-only buffered stream. |
| TWriteBufStream | Write-only buffered stream. |