System.Classes.TBufferedFileStream
Delphi
TBufferedFileStream = class(TFileStream)
C++
class PASCALIMPLEMENTATION TBufferedFileStream : public TFileStream
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
TBufferedFileStream adds buffering support to TFileStream.
TBufferedFileStream optimizes multiple consecutive small reads or writes. However, TBufferedFileStream can be used as a drop-in replacement for TFileStream, enabling applications to read from and write to a file on a disk.
- Note: TBufferedFileStream will not give performance gain for random position reads or writes, or large reads or writes.