Class TBufferedInputStream (unit SuperStream) |
The buffered input stream adapter can accelerate the use of underlying streams. Delphi's TFileStream performs no buffering, so its performance when reading and writing large numbers of small objects is not very good. Wrapping a TFileStream with a TBufferedStream results in much better performance. Note that you can only read from these streams. Writing will throw an exception.
Constructors |
Functions |
Properties |
Events |
Variables |
Constructors |
Functions |
Destroy a stream adapter. Will also destroy the target stream if the owned flag is set true.
Parameter | Description |
---|---|
buffer | Variable to read bytes into. |
count | Number of bytes to read. |
Read count bytes into buffer. This is an override of the standard stream function.
Parameter | Description |
---|---|
offset | The position to move to. |
origin | Where to move: Can be soFromBeginning, soFromCurrent, or soFromEnd. |
Move to a given position in the stream.
Parameter | Description |
---|---|
buffer | Variable to write to the stream. |
count | Number of bytes to write. |
write count bytes to the stream. This is an override of the standard stream function.
Properties |
Events |
Variables |