Create a Sub-stream type, which takes a TStream, and a start/length.
Then have it perform operations offset on the real stream by start.
eg. Seek(0) would actually translate to Seek(start).
and Eof() is true when _pos = start+length...
etc.
:o)
Then have it perform operations offset on the real stream by start.
eg. Seek(0) would actually translate to Seek(start).
and Eof() is true when _pos = start+length...
etc.
:o)