$hash
$hash : string
What the index knows about one stored frame.
Enough to fetch and decode the frame without reading anything else: which object holds it, where inside that object it starts, which codec and cipher wrote it, and which dictionary it needs. A frame whose dictionary is unknown cannot be decoded at all, so the reference is part of the record rather than something inferred from the store's current settings, which may have changed since the frame was written.
__construct(string $hash, int $rawSize, int $storedSize, string $codec, string $cipher, string|null $dictionary = null, string|null $pack = null, int $offset = 0, int $references = 1, int $created = 0, string|null $deltaParent = null, int $deltaDepth = 0) : mixed
Constructs a record.
| string | $hash | Content address of the decoded frame. |
| int | $rawSize | Decoded size in bytes. |
| int | $storedSize | Encoded size in bytes, after compression and sealing. |
| string | $codec | Codec id the frame was compressed with. |
| string | $cipher | Cipher id the frame was sealed with. |
| string|null | $dictionary | Dictionary id the codec needs, or NULL when none was used. |
| string|null | $pack | Pack object id the frame lives inside, or NULL when it is its own object. |
| int | $offset | Byte offset within the pack; zero for a standalone frame. |
| int | $references | How many segments, trees or file maps point at this frame. A frame at zero is collectable. |
| int | $created | Unix timestamp the frame was first stored. |
| string|null | $deltaParent | Content address of the frame this one is a delta against, or NULL when it stands alone. A prune must keep the whole chain: a frame whose parent has been collected decodes to nothing, so this is the third thing reachability protects, alongside commits and dictionaries. |
| int | $deltaDepth | Position in the delta chain; zero for an anchor. |
When the hash is not a valid digest, a size or offset is negative, the reference count is negative, an offset is given without a pack, or a delta depth is given without a parent.