TBufferedFileStream = class(TFileStream)
class PASCALIMPLEMENTATION TBufferedFileStream : public TFileStream
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.