JCL Help:TJclSectoredStream

From Project JEDI Wiki
Jump to navigationJump to search

Class Hierarchy

TJclStream
|
TJclStreamDecorator
|
TJclBufferedStream
|
TJclSectoredStream
|
TJclCRC16Stream
|
TJclCRC32Stream


Summary

TJclSectoredStream organizes data and forces read and write operations to storage stream to have a fixed size.


Pascal

 public TJclSectoredStream = class(TJclBufferedStream);


Description

TJclSectoredStream organizes data and forces read and write operations to storage stream to have a fixed size. Every smaller accesses are stored into a buffer which is flushed when full.
Fixed size blocks are called "sector", each sector can contain a predefined number of bytes reserved to store a checksum or any other data (TJclCRC16Stream and TJclCRC32Stream classes use this feature). In order to set these bytes, this class has to be inherited and virtual methods TJclSectoredStream.BeforeBlockRead and TJclSectoredStream.AfterBlockWrite have to be overridden.


See Also

TJclBufferedStream


About

Unit

JclStreams


Navigation

Donator

Florent Ouchet


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page