ClearRangeSourceCache

Document management, Performance, Memory management

Description

Releases every retained byte-range window and resets cache statistics for the selected callback-backed document

Syntax

Delphi

Function TPDFlib.ClearRangeSourceCache: Integer;

Return values

0No selected callback-backed document is available
1The cache and its counters were cleared

Remarks

The source callback remains attached and later document operations fetch required chunks again under the current byte budget

An in-flight read still returns its bytes to existing callers, but its stale completion cannot repopulate the cleared cache or counters