PDFium Delphi Component Docs

PageObjectSnapshotCacheCount 속성

컴포넌트: TPdf  ·  유닛: PDFium
스냅샷 캐시가 현재 보관 중인 완전한 페이지 객체 스냅샷의 개수를 반환합니다

구문

property PageObjectSnapshotCacheCount: Integer; // read only

설명

이 값은 지금 페이지 객체 스냅샷이 유효한 페이지의 개수를 세므로 문서가 로드된 동안 Min(PageObjectSnapshotCacheCapacity, PageCount)를 넘지 않습니다

개수는 PageObjectsSnapshot이 새 스냅샷을 완성해 캐시할 때 늘어나고, 용량 압박, 페이지 편집, 문서 다시 적재로 항목이 무효화되면 줄어듭니다

읽기는 네이티브 PDFium 페이지 접근이 쓰는 렌더 락으로 보호되므로 이 값은 동시 렌더링과 일관됩니다

참고 사항

문서가 로드되지 않았거나 PageObjectSnapshotCacheCapacity가 0인 동안에는 개수가 0입니다

개수는 특정 시점의 점유율 수치입니다. 누적 조회 효율이 필요하면 PageObjectSnapshotCacheHitCount와 PageObjectSnapshotCacheMissCount를 사용하세요

예제

Snapshot := Pdf.PageObjectsSnapshot[1];
LogPageObjectSnapshotCache(Pdf.PageObjectSnapshotCacheCount,
  Pdf.PageObjectSnapshotCacheCapacity);

관련 항목

PageObjectSnapshotCacheCapacity, PageObjectSnapshotCacheHitCount, PageObjectSnapshotCacheMissCount, PageObjectsSnapshot