22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DLI</strong> <strong>Reference</strong> <strong>Guide</strong> A.93<br />

dlpdfinstancesetgrcachelimits<br />

(DLPDFINSTANCE *dliInst, ASUns32 highLimit, ASUns32<br />

deleteLimit)<br />

Return Value: void<br />

Description<br />

Parameters<br />

Return Value<br />

This call supports a control on the amount of<br />

filesystem storage used for the <strong>DLI</strong> graphics<br />

cache. It accepts a low-water <strong>and</strong> a high-water<br />

mark, in bytes. At document-destroy time (i.e.<br />

when a call to dlpdfdocdestroy is made),<br />

the graphics cache size is evaluated, <strong>and</strong> if it<br />

exceeds the high-water mark in size, graphics<br />

will be removed from the cache in least recently<br />

used (LRU) order until the cache falls to or<br />

below the low-water mark.<br />

• DLPDFINSTANCE *dliInst: The<br />

DLPDFINSTANCE for which the cache will be<br />

reviewed<br />

• ASUns32 highLimit: The high-water<br />

mark level, in bytes. Exceeding this level will<br />

trigger a purge of graphics in LRU order at<br />

document-destroy time.<br />

• ASUns32 deleteLimit: The low-water<br />

mark level, in bytes, above which graphics<br />

will be purged at document-destroy-time.<br />

Graphics will be removed in LRU order until<br />

the total storage is at or below this figure.<br />

void<br />

Exceptions<br />

Header<br />

Related Methods<br />

Availability<br />

dli.h<br />

dlpdfdocdestroy<br />

All <strong>DLI</strong>-supported platforms.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!