SetRangeSourceCacheLimit
Document management, Performance, Memory management
Description
Changes the retained-byte budget of the selected callback-backed document and immediately evicts least-recently-used windows when necessary
Syntax
Delphi
Function TPDFlib.SetRangeSourceCacheLimit(CacheLimitBytes: Int64): Integer;Parameters
| CacheLimitBytes | The maximum retained source bytes; zero selects the 4 MiB default and values below the active chunk size are raised to one chunk |
|---|
Return values
| 0 | The value was negative or no selected callback-backed document is available |
|---|---|
| 1 | The budget was applied |