DAGetRangeSourcePrefetchInfo
Direct access functionality, Progressive loading, Diagnostics
Description
Returns the state, dependency progress, source-read budget and latest availability report for a direct-access prefetch job
Syntax
Delphi
Function TPDFlib.DAGetRangeSourcePrefetchInfo(FileHandle,
JobHandle: Integer; Out Info: WideString): Integer;Parameters
| FileHandle | Direct-access handle returned by DAOpenFile or DAOpenFromStream whose reader is backed by TByteRangeStream |
|---|---|
| JobHandle | Job handle returned by DAStartRangeSourcePrefetch for the same file handle |
| Info | Receives the JSON snapshot on success; set to an empty string when either handle is invalid |
Return values
Returns 1 and fills Info for valid handles, otherwise returns zero and sets LastErrorCode to 401
See GetRangeSourcePrefetchInfo for the JSON field definitions