THotPDF.GetDocumentStringInternStatistics

Returns storage and reuse diagnostics for the string pool associated with the current PDF load

Declaration

function GetDocumentStringInternStatistics(
  out Statistics: THPDFDocumentStringInternStatistics): boolean;

Return value

Returns True while the document string pool is available, including before the first load when all traffic counters are zero

Admission limits

Empty values, longer values, and new values that would exceed either capacity limit bypass the pool and retain their original bytes

Statistics

Lifetime and matching

The pool is cleared at the start of each load, matches values by exact case-sensitive bytes, and never shares entries between THotPDF instances

Pooled AnsiString values use normal reference counting and copy-on-write behavior, so later assignment or mutation does not alter another PDF object

See also: Scalable Loading, GetLastParserArenaStatistics, LoadFromStream, LoadFromRandomAccessSource