THPDFLazyFileStream.CreateReadOnlySlice Method
Creates an independent read-only stream over the original source-file range while the lazy stream remains source-backed
Declaration
function CreateReadOnlySlice: TStream;
Unit
HPDFObjs
Parameters
| Name | Purpose |
|---|---|
| This member does not expose explicit parameters | |
Return value
Returns a caller-owned read-only stream, or nil after the lazy stream has been materialized
Usage notes
- The returned stream has its own file handle and a position relative to the source range
- Write and SetSize operations raise a stream error
- The caller must free the returned stream