Class tmsefilestream

Unit

Declaration

type tmsefilestream = class(thandlestream)

Description

Hierarchy

Overview

Fields

Protected fmemorystream: tmemorystream;

Methods

Protected procedure setcapacity(const avalue: ptrint); virtual;
Protected procedure sethandle(value: integer); virtual;
Protected procedure closehandle(const ahandle: integer); virtual;
Protected constructor internalcreate(const afilename: filenamety; const aopenmode: fileopenmodety; const accessmode: fileaccessmodesty; const rights: filerightsty; out error: syserrorty); overload;
Protected function getsize: int64; override;
Protected function inheritedgetsize: int64;
Protected function inheritedread(var buffer; count: longint): longint;
Protected function inheritedwrite(const buffer; count: longint): longint;
Protected function inheritedseek(const offset: int64; origin: tseekorigin): int64;
Protected function getmemory: pointer; override;
Public constructor create(const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights); overload;
Public constructor createtransaction(const afilename: filenamety; rights: filerightsty = defaultfilerights); overload;
Public constructor createtempfile(const prefix: filenamety; out afilename: filenamety);
Public constructor create(ahandle: integer); overload; virtual;
Public constructor create; overload;
Public constructor create(const aopenmode: fileopenmodety); overload;
Public constructor createstringcopy(const adata: string);
Public destructor destroy; override;
Public class function trycreate(out ainstance: tmsefilestream; const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights): syserrorty;
Public function releasehandle(): filehandlety override;
Public function read(var buffer; count: longint): longint; override;
Public function write(const buffer; count: longint): longint; override;
Public function seek(const offset: int64; origin: tseekorigin): int64; override;
Public function readdatastring: string; override;
Public procedure writedatastring(const value: rawbytestring); override;
Public function isopen: boolean;
Public function close: boolean;
Public procedure cancel;
Public procedure flushbuffer; virtual;
Public procedure flush; virtual;
Public procedure setsize(const newsize: int64); override;
Public procedure clear; virtual;

Properties

Public property filename: filenamety read ffilename;
Public property openmode: fileopenmodety read fopenmode;
Public property transactionname: filenamety read ftransactionname;
Public property ismemorystream: boolean read fismemorystream;
Public property capacity: ptrint read getcapacity write setcapacity;
Public property filerights: filerightsty read getfilerights write setfilerights;
Public property cryptohandler: tcustomcryptohandler read fcryptohandler write setcryptohandler;

Description

Fields

Protected fmemorystream: tmemorystream;
 

Methods

Protected procedure setcapacity(const avalue: ptrint); virtual;
 
Protected procedure sethandle(value: integer); virtual;
 
Protected procedure closehandle(const ahandle: integer); virtual;
 
Protected constructor internalcreate(const afilename: filenamety; const aopenmode: fileopenmodety; const accessmode: fileaccessmodesty; const rights: filerightsty; out error: syserrorty); overload;
 
Protected function getsize: int64; override;
 
Protected function inheritedgetsize: int64;
 
Protected function inheritedread(var buffer; count: longint): longint;
 
Protected function inheritedwrite(const buffer; count: longint): longint;
 
Protected function inheritedseek(const offset: int64; origin: tseekorigin): int64;
 
Protected function getmemory: pointer; override;
 
Public constructor create(const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights); overload;
 
Public constructor createtransaction(const afilename: filenamety; rights: filerightsty = defaultfilerights); overload;
 
Public constructor createtempfile(const prefix: filenamety; out afilename: filenamety);
 
Public constructor create(ahandle: integer); overload; virtual;
 
Public constructor create; overload;
 
Public constructor create(const aopenmode: fileopenmodety); overload;
 
Public constructor createstringcopy(const adata: string);
 
Public destructor destroy; override;
 
Public class function trycreate(out ainstance: tmsefilestream; const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights): syserrorty;
 
Public function releasehandle(): filehandlety override;
 
Public function read(var buffer; count: longint): longint; override;
 
Public function write(const buffer; count: longint): longint; override;
 
Public function seek(const offset: int64; origin: tseekorigin): int64; override;
 
Public function readdatastring: string; override;
 
Public procedure writedatastring(const value: rawbytestring); override;
 
Public function isopen: boolean;
 
Public function close: boolean;
 
Public procedure cancel;
 
Public procedure flushbuffer; virtual;
 
Public procedure flush; virtual;
 
Public procedure setsize(const newsize: int64); override;
 
Public procedure clear; virtual;
 

Properties

Public property filename: filenamety read ffilename;
 
Public property openmode: fileopenmodety read fopenmode;
 
Public property transactionname: filenamety read ftransactionname;
 
Public property ismemorystream: boolean read fismemorystream;
 
Public property capacity: ptrint read getcapacity write setcapacity;
 
Public property filerights: filerightsty read getfilerights write setfilerights;
 
Public property cryptohandler: tcustomcryptohandler read fcryptohandler write setcryptohandler;
 

Generated by PasDoc 0.16.0.