Class TMemMapFile (unit MemMap)

Inherits from

TObject

Constructors


constructor Create(FileName: String; FileMode: integer; Size: integer; MakeNull, MapNow: Boolean);



Functions

destructor Destroy;

re-raise exception

procedure FreeMapping;


procedure AllocFileHandle;


procedure AllocFileMapping;

creates or opens disk file before creating memory mapped file

procedure AllocFileView;

attempt to create file mapping of disk file.

function GetSize: Longint;


Properties

property Data : PByte


property FileHandle : Integer


property FileName : String


property MapHandle : Integer


property Size : Longint


Events

Variables

FData : PByte;


FFileHandle : Integer;


FFileMode : Integer;


FFileName : String;


FFileSize : Longint;


FMakeNull : Boolean;


FMapHandle : Integer;


FMapNow : Boolean;


FSize : Longint;



Constructors


constructor Create(FileName: String; FileMode: integer; Size: integer; MakeNull, MapNow: Boolean);


Functions


destructor Destroy;

re-raise exception


procedure FreeMapping;


procedure AllocFileHandle;


procedure AllocFileMapping;

creates or opens disk file before creating memory mapped file


procedure AllocFileView;

attempt to create file mapping of disk file. Raise exception on error.


function GetSize: Longint;


Properties


property Data : PByte


property FileHandle : Integer


property FileName : String


property MapHandle : Integer


property Size : Longint


Events


Variables


FData : PByte;


FFileHandle : Integer;


FFileMode : Integer;


FFileName : String;


FFileSize : Longint;


FMakeNull : Boolean;


FMapHandle : Integer;


FMapNow : Boolean;


FSize : Longint;