Class tmsefilestream
Unit
Declaration
type tmsefilestream = class(thandlestream)
Description
Hierarchy
- TObject
- TStream
- thandlestream
- tmsefilestream
Overview
Fields
fmemorystream: tmemorystream; |
Methods
procedure setcapacity(const avalue: ptrint); virtual; |
|
procedure sethandle(value: integer); virtual; |
|
procedure closehandle(const ahandle: integer); virtual; |
|
constructor internalcreate(const afilename: filenamety; const aopenmode: fileopenmodety; const accessmode: fileaccessmodesty; const rights: filerightsty; out error: syserrorty); overload; |
|
function getsize: int64; override; |
|
function inheritedgetsize: int64; |
|
function inheritedread(var buffer; count: longint): longint; |
|
function inheritedwrite(const buffer; count: longint): longint; |
|
function inheritedseek(const offset: int64; origin: tseekorigin): int64; |
|
function getmemory: pointer; override; |
|
constructor create(const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights); overload; |
|
constructor createtransaction(const afilename: filenamety; rights: filerightsty = defaultfilerights); overload; |
|
constructor createtempfile(const prefix: filenamety; out afilename: filenamety); |
|
constructor create(ahandle: integer); overload; virtual; |
|
constructor create; overload; |
|
constructor create(const aopenmode: fileopenmodety); overload; |
|
constructor createstringcopy(const adata: string); |
|
destructor destroy; override; |
|
class function trycreate(out ainstance: tmsefilestream; const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights): syserrorty; |
|
function releasehandle(): filehandlety override; |
|
function read(var buffer; count: longint): longint; override; |
|
function write(const buffer; count: longint): longint; override; |
|
function seek(const offset: int64; origin: tseekorigin): int64; override; |
|
function readdatastring: string; override; |
|
procedure writedatastring(const value: rawbytestring); override; |
|
function isopen: boolean; |
|
function close: boolean; |
|
procedure cancel; |
|
procedure flushbuffer; virtual; |
|
procedure flush; virtual; |
|
procedure setsize(const newsize: int64); override; |
|
procedure clear; virtual; |
Properties
property filename: filenamety read ffilename; |
|
property openmode: fileopenmodety read fopenmode; |
|
property transactionname: filenamety read ftransactionname; |
|
property ismemorystream: boolean read fismemorystream; |
|
property capacity: ptrint read getcapacity write setcapacity; |
|
property filerights: filerightsty read getfilerights write setfilerights; |
|
property cryptohandler: tcustomcryptohandler read fcryptohandler
write setcryptohandler; |
Description
Fields
fmemorystream: tmemorystream; |
|
Methods
procedure setcapacity(const avalue: ptrint); virtual; |
|
procedure sethandle(value: integer); virtual; |
|
procedure closehandle(const ahandle: integer); virtual; |
|
constructor internalcreate(const afilename: filenamety; const aopenmode: fileopenmodety; const accessmode: fileaccessmodesty; const rights: filerightsty; out error: syserrorty); overload; |
|
function getsize: int64; override; |
|
function inheritedgetsize: int64; |
|
function inheritedread(var buffer; count: longint): longint; |
|
function inheritedwrite(const buffer; count: longint): longint; |
|
function inheritedseek(const offset: int64; origin: tseekorigin): int64; |
|
function getmemory: pointer; override; |
|
constructor create(const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights); overload; |
|
constructor createtransaction(const afilename: filenamety; rights: filerightsty = defaultfilerights); overload; |
|
constructor createtempfile(const prefix: filenamety; out afilename: filenamety); |
|
constructor create(ahandle: integer); overload; virtual; |
|
constructor create; overload; |
|
constructor create(const aopenmode: fileopenmodety); overload; |
|
constructor createstringcopy(const adata: string); |
|
destructor destroy; override; |
|
class function trycreate(out ainstance: tmsefilestream; const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights): syserrorty; |
|
function releasehandle(): filehandlety override; |
|
function read(var buffer; count: longint): longint; override; |
|
function write(const buffer; count: longint): longint; override; |
|
function seek(const offset: int64; origin: tseekorigin): int64; override; |
|
function readdatastring: string; override; |
|
procedure writedatastring(const value: rawbytestring); override; |
|
function isopen: boolean; |
|
function close: boolean; |
|
procedure cancel; |
|
procedure flushbuffer; virtual; |
|
procedure flush; virtual; |
|
procedure setsize(const newsize: int64); override; |
|
procedure clear; virtual; |
|
Properties
property filename: filenamety read ffilename; |
|
property openmode: fileopenmodety read fopenmode; |
|
property transactionname: filenamety read ftransactionname; |
|
property ismemorystream: boolean read fismemorystream; |
|
property capacity: ptrint read getcapacity write setcapacity; |
|
property filerights: filerightsty read getfilerights write setfilerights; |
|
property cryptohandler: tcustomcryptohandler read fcryptohandler
write setcryptohandler; |
|
Generated by PasDoc 0.16.0.