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
| FileHandle | A direct-access handle opened from a byte-range stream or URL |
|---|---|
| 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 or handle is invalid, or the handle is not byte-range backed |
|---|---|
| 1 | The budget was applied |