PREFIX
PREFIX = 'dicts'
Key prefix dictionaries are stored under.
Names one version of one realm's dictionary.
Every frame compressed against a dictionary records this id, and a frame that cannot name its dictionary cannot be decoded - which makes a dictionary the one kind of object a prune must never collect while any live frame references it.
Versioned rather than mutable. Retraining produces a new version and leaves the old one in place, because the frames written against it are still there and still have to open.
__construct(string $realm, int $version, string $address, int $bytes = 0, string $source = \self::RAW, float $ratio = 1.0, int $samples = 0, int $trainedAt = 0) : mixed
Constructs a reference.
| string | $realm | Realm value the dictionary was trained for. |
| int | $version | Version, counting from one. |
| string | $address | Content address of the dictionary bytes. |
| int | $bytes | How large the dictionary is. |
| string | $source | Either RAW or TRAINED. |
| float | $ratio | The compression ratio measured on the samples it was scored against, so the UI can show what the dictionary is worth rather than asserting that it helps. |
| int | $samples | How many samples it was built from. |
| int | $trainedAt | Unix seconds. |
When the realm is empty, the version is below one, or the address is not a digest.