DAClearRangeSourceCache

Direct access functionality, Performance, Memory management

Description

Releases every retained source window and resets cache statistics for a direct-access handle backed by TByteRangeStream

Syntax

Delphi

Function TPDFlib.DAClearRangeSourceCache(FileHandle: Integer): Integer;

Parameters

FileHandleA direct-access handle opened from a byte-range stream or URL

Return values

0The handle is invalid or is not byte-range backed
1The cache and counters were cleared

Remarks

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