THPDFRandomAccessSource.GetSize Method
Returns the stable byte length of the backing store that a THPDFRandomAccessSource subclass exposes to the HotPDF parser
Declaration
function GetSize: Int64; virtual; abstract;
Unit
HPDFDoc
Return value
The total byte length of the source. Must be non-negative and stable for the lifetime of the load
Usage notes
- Override this method in a subclass to report the size of your backing store (HTTP entity length, BLOB length, archive member length, virtual volume length)
- The value must not change while HotPDF parses the document; the cross-reference tables and object streams are addressed by absolute offset against this size
- Returning a negative value is treated as an error by the loader