mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 01:39:27 +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; Rights: Cardinal);
|
||||
destructor Destroy; override;
|
||||
Function Flush : Boolean;
|
||||
property FileName : String Read FFilename;
|
||||
end;
|
||||
|
||||
|
@ -1336,6 +1336,11 @@ begin
|
||||
FileClose(FHandle);
|
||||
end;
|
||||
|
||||
function TFileStream.Flush : Boolean;
|
||||
begin
|
||||
Result:=FileFlush(Handle);
|
||||
end;
|
||||
|
||||
{****************************************************************************}
|
||||
{* TCustomMemoryStream *}
|
||||
{****************************************************************************}
|
||||
|
Loading…
Reference in New Issue
Block a user