DASetRangeSourceCacheLimit

Direct access functionality, Performance, Memory management

Description

Changes the retained-byte budget for a direct-access handle backed by TByteRangeStream

Syntax

Delphi

Function TPDFlib.DASetRangeSourceCacheLimit(FileHandle: Integer; CacheLimitBytes: Int64): Integer;

Parameters

FileHandleA direct-access handle opened from a byte-range stream or URL
CacheLimitBytesThe maximum retained source bytes; zero selects the 4 MiB default and values below the active chunk size are raised to one chunk

Return values

0The value or handle is invalid, or the handle is not byte-range backed
1The budget was applied