Class TOffsetFilter (unit Filters)

Inherits from

TFilter

Constructors


constructor Create(AStream: TStream; AOffset, ARange: LongInt);

************************************* TOffsetFilter *************************************


Functions

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


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


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


function GetLimitedRange: Boolean;


procedure RangeError;


procedure SetBaseOffset(Value: LongInt);


procedure SetRange(Value: LongInt);


procedure SetStream(Value: TStream);


procedure Validate;


Properties

property BaseOffset : LongInt


property LimitedRange : Boolean


property Range : LongInt


Events

Variables

FBaseOffset : LongInt;


FCurPos : LongInt;


FRange : LongInt;



Constructors


constructor Create(AStream: TStream; AOffset, ARange: LongInt);

************************************* TOffsetFilter *************************************


Functions


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


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


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


function GetLimitedRange: Boolean;


procedure RangeError;


procedure SetBaseOffset(Value: LongInt);


procedure SetRange(Value: LongInt);


procedure SetStream(Value: TStream);


procedure Validate;


Properties


property BaseOffset : LongInt


property LimitedRange : Boolean


property Range : LongInt


Events


Variables


FBaseOffset : LongInt;


FCurPos : LongInt;


FRange : LongInt;