TROBlockFileStream is designed for reading a file on disk or writing a file to disk by large chunks. This gives better performance for disk operations.
Usage: the same as TFileStream.
TROBlockFileStream is used in TDADataTable|SaveToFile methods.
- Unit: uROBlockFileStream.pas
- Ancestry: TFileStream | TROBlockFileStream
Specified size that will be use for caching.
property BlockSize: Cardinal read write
Creates a new instance.
constructor Create(const FileName: string; Mode: Word)
- FileName: name of file.
- Mode: see description of TFileStream for details.
Writes the buffer to the file.
Reads up to Count bytes of data from the file into Buffer.
function Read(var Buffer: ; Count: LongInt): LongInt
- Buffer: buffer
- Count: count