THPDFCopyStructItem Record
One hash-map entry recording that an object from a source document was already copied, so shared resources are copied once
Declaration
THPDFCopyStructItem= record
SourceDocument: Pointer;
ObjectNumber: THPDFObjectNumber;
ObjectBody: THPDFObject;
end;
Unit
HPDFObjs
Fields
| Field | Purpose |
|---|---|
SourceDocument | Pointer to the source THotPDF document owning the object; an empty hash bucket is recognized by a nil value |
ObjectNumber | Object number and generation of the source object, matching part of the hash key |
ObjectBody | The already-created copy that a lookup returns when the entry hits |
Usage notes
- Managed internally through
RegisterCopiedObjectand the matching lookup, so callers never fill this record by hand - The hash keys on the source document pointer plus object and generation numbers, so equal object numbers from different documents never collide
THPDFCopyStructArrayis the dynamic array form backing the growing open-addressing map