Description | Hierarchy | Fields | Methods | Properties |
type TAdBufferStreamAdapter = class(TStream)
TAdBufferedFileStram is a class that provides high speed read access on streams, by buffering parts of the stream. Instead of using this class directly, you may also use the QueryBufferedStream and the FreeBufferedStream classes.
![]() |
constructor Create(AStream: TStream); |
![]() |
destructor Destroy; override; |
![]() |
function Read(var Buffer; Count: Longint): Longint; override; |
![]() |
function Write(const Buffer; Count: Longint): Longint; override; |
![]() |
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; override; |
![]() |
property InstanceCount: integer read FInstanceCount write FInstanceCount; |
![]() |
property AdaptedStream: TStream read FStream; |
![]() |
constructor Create(AStream: TStream); |
Creates a new instance of TAdBufferStreamAdapter. Parameters
|
![]() |
destructor Destroy; override; |
Destroys the instance of TAdBufferStreamAdapter. |
![]() |
function Read(var Buffer; Count: Longint): Longint; override; |
Reads "Count" bytes to the specified buffer and returns the count of bytes that were actually read. |
![]() |
function Write(const Buffer; Count: Longint): Longint; override; |
Writes "Count" bytes from the specified buffer and returns the count of bytes that were actually written. |
![]() |
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; override; |
Seeks to the specified position in the stream. |
![]() |
property InstanceCount: integer read FInstanceCount write FInstanceCount; |
Property that is used by the QueryBufferedStream and FreeBufferedStream functions. InstanceCount gets incremented with every call of QueryBufferedStream and decremented with every call of FreeBufferedStream. If InstanceCount reaches zero, the instance of TAdBufferStreamAdapter is freed. |
![]() |
property AdaptedStream: TStream read FStream; |
The source stream the TAdBufferStreamAdapter uses. |