Class TMemoryMappedFileStream (unit dsstream)

Inherits from

TStream

Constructors


constructor Create(const FileName, MapName: string; Mode: Word);


constructor Open(const MapName:string; Mode:word);

Open existing file


Functions

destructor Destroy;


procedure Flush;


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


function Seek(Offset:longint;Origin:word):longint;

FFileHandle=0 for the open named mapping object

procedure SetSize(NewSize:longint);


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


procedure CloseHandles;


procedure SetCapacity(NewCapacity:longint);


Properties

property FileName : string


property MapName : string


property Memory : pointer


property MemoryDelta : longint


Events

Variables

FCapacity : longint;


FFileHandle : THandle;


FFileName : string;


FMapHandle : THandle;


FMapName : string;

Name of the file mapping object

FMemory : pointer;


FMemoryDelta : longint;

file size increment

FMode : integer;


FPosition : longint;


FSize : longint;



Constructors


constructor Create(const FileName, MapName: string; Mode: Word);


constructor Open(const MapName:string; Mode:word);

Open existing file


Functions


destructor Destroy;


procedure Flush;


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


function Seek(Offset:longint;Origin:word):longint;

FFileHandle=0 for the open named mapping object


procedure SetSize(NewSize:longint);


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


procedure CloseHandles;


procedure SetCapacity(NewCapacity:longint);


Properties


property FileName : string


property MapName : string


property Memory : pointer


property MemoryDelta : longint


Events


Variables


FCapacity : longint;


FFileHandle : THandle;


FFileName : string;


FMapHandle : THandle;


FMapName : string;

Name of the file mapping object


FMemory : pointer;


FMemoryDelta : longint;

file size increment


FMode : integer;


FPosition : longint;


FSize : longint;