Unit AdBuffer

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Contains various classes that are usefull for buffering data. A simple buffered filestream class that speeds up byte access on file streams is also included.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TAdBufferBucket TAdBufferBucket represents a single buffer bucket in the buffer bucket list.
Class TAdBufferBucketList TAdBufferBucketList is a list class that contains serveral TAdBufferBucket elements.
Class TAdBuffer TAdBuffer is class that allows you to buffer data by writing data to the end of the buffer and reading it from the beginning.
Class TAdBufferStreamAdapter TAdBufferedFileStram is a class that provides high speed read access on streams, by buffering parts of the stream.
Class TAdBufferedFileStream TAdBufferedFileStream is a class, that descends from TAdBufferStreamAdapter to provide high speed access on a file stream.

Functions and Procedures

procedure QueryBufferedStream(var AStream: TStream);
procedure FreeBufferedStream(var AStream: TStream);

Constants

AdBufferSize = 4096;

Description

Functions and Procedures

procedure QueryBufferedStream(var AStream: TStream);

Speeds up the given stream using the TAdBufferStreamAdapter class. Simply call this method and use the stream you want to accelerate as parameter. Calls of QueryBufferedStream and FreeBufferedStream may be cascading.

procedure FreeBufferedStream(var AStream: TStream);

Frees a buffered stream and returns the original stream. Calls of QueryBufferedStream and FreeBufferedStream may be cascading.

Constants

AdBufferSize = 4096;
 

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:58