Class TBufferedInputStream (unit SuperStream)

Inherits from

TStreamAdapter

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


constructor Create(targetStream : TStream; bufSize : Integer; Owned : Boolean);



Functions

destructor Destroy;


function Read(var Buffer; Count: Longint): Longint;


function Seek(Offset: Longint; Origin: Word): Longint;


function Write(const Buffer; Count: Longint): Longint;


Properties

property BufferSize : Integer


Events

Variables


Constructors


constructor Create(targetStream : TStream; bufSize : Integer; Owned : Boolean);


Functions


destructor Destroy;


function Read(var Buffer; Count: Longint): Longint;


function Seek(Offset: Longint; Origin: Word): Longint;


function Write(const Buffer; Count: Longint): Longint;


Properties


property BufferSize : Integer


Events


Variables