mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 10:09:19 +02:00
* Add Flush method to TFileStream. Fix issue #39619
This commit is contained in:
parent
82ccc863ef
commit
5ca52bcab1
@ -1187,6 +1187,7 @@ type
|
|||||||
constructor Create(const AFileName: string; Mode: Word);
|
constructor Create(const AFileName: string; Mode: Word);
|
||||||
constructor Create(const AFileName: string; Mode: Word; Rights: Cardinal);
|
constructor Create(const AFileName: string; Mode: Word; Rights: Cardinal);
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
Function Flush : Boolean;
|
||||||
property FileName : String Read FFilename;
|
property FileName : String Read FFilename;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1336,6 +1336,11 @@ begin
|
|||||||
FileClose(FHandle);
|
FileClose(FHandle);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TFileStream.Flush : Boolean;
|
||||||
|
begin
|
||||||
|
Result:=FileFlush(Handle);
|
||||||
|
end;
|
||||||
|
|
||||||
{****************************************************************************}
|
{****************************************************************************}
|
||||||
{* TCustomMemoryStream *}
|
{* TCustomMemoryStream *}
|
||||||
{****************************************************************************}
|
{****************************************************************************}
|
||||||
|
Loading…
Reference in New Issue
Block a user