Class TFifo (unit Fifo)

Inherits from

TComponent

Constructors



Functions

procedure Clear;


destructor Destroy;

always call the inherited Loaded first!

function GetData(P: PChar; offset, size: word): word;


function GetStr(offset: word; Len: Byte): string;


procedure Loaded;


function Read(P: PChar; size: word): word;


function ReadStr(Len: byte): string;


procedure Remove(size: word);


function Search(S: String): LongInt;


function Write(P: PChar; size: word): boolean;


function WriteStr(S: String): boolean;


function Find(S: String; pos: word): LongInt;


procedure SetSize(Value: word);


function TestBuff: Boolean;


Properties

property Size : Word


property Free : Word


property Used : Word


Events

event OnBufferFull : TNotifyEvent


event OnChange : TNotifyEvent


Variables

buffer : PChar;


FFree : Word;


finish : Word;


FOnBufferFull : TNotifyEvent;


FOnChange : TNotifyEvent;


FSize : Word;


FUsed : Word;


start : Word;



Constructors


Functions


procedure Clear;


destructor Destroy;

always call the inherited Loaded first!


function GetData(P: PChar; offset, size: word): word;


function GetStr(offset: word; Len: Byte): string;


procedure Loaded;


function Read(P: PChar; size: word): word;


function ReadStr(Len: byte): string;


procedure Remove(size: word);


function Search(S: String): LongInt;


function Write(P: PChar; size: word): boolean;


function WriteStr(S: String): boolean;


function Find(S: String; pos: word): LongInt;


procedure SetSize(Value: word);


function TestBuff: Boolean;


Properties


property Size : Word


property Free : Word


property Used : Word


Events


event OnBufferFull : TNotifyEvent


event OnChange : TNotifyEvent


Variables


buffer : PChar;


FFree : Word;


finish : Word;


FOnBufferFull : TNotifyEvent;


FOnChange : TNotifyEvent;


FSize : Word;


FUsed : Word;


start : Word;