System.Classes.TBufferedFileStream.SyncBuffer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SyncBuffer(ReRead: Boolean);

C++

void __fastcall SyncBuffer(bool ReRead);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes TBufferedFileStream

Description

Writes the buffered data that have not yet been written to the file.

When using a buffered file stream, call SyncBuffer to empty the buffer and write to the file the buffered data that are still not written.

The ReRead parameter specifies whether the buffer is repopulated or not before the call to SyncBuffer. The possible ReRead values are:

  • True -- The buffer is refilled with the corresponding data from the file.
  • False -- The buffer will remain empty until the next read or write operation.

See Also