Skip to main content

Module schema

Module schema 

Source
Expand description

Shared schema for the .dmap archive file format.

Layout on disk (all little-endian):

+---------------------------------------+
| FileHeader (fixed, 32 bytes)          |
+---------------------------------------+
| rkyv-archived Dictionary              |
|   .index  : Vec<IndexEntry>  sorted   |
|   .records: Vec<TagRecord>            |
|   .strings: Vec<u8> pool              |
+---------------------------------------+

The index is sorted by (group, element, creator_hash) so lookup is a plain binary search. String fields inside TagRecord are stored as (offset, len) into strings; the reader slices without copying.

Structs§

ArchivedDictionary
An archived Dictionary
ArchivedIndexEntry
An archived IndexEntry
ArchivedTagRecord
An archived TagRecord
Dictionary
Root archived object in the .dmap file body.
DictionaryResolver
The resolver for an archived Dictionary
FileHeader
32-byte file prefix. Kept outside rkyv so we can sanity-check before attempting to deserialize the body.
IndexEntry
One entry in the sorted lookup index.
IndexEntryResolver
The resolver for an archived IndexEntry
TagRecord
One fully resolved tag record.
TagRecordResolver
The resolver for an archived TagRecord

Enums§

ArchivedVrCode
An archived VrCode
VrCode
DICOM value representation, 2-byte ASCII packed into one byte via a fixed enum so records stay small.
VrCodeResolver
The resolver for an archived VrCode

Constants§

MAGIC
VERSION

Functions§

canonicalize_creator
Canonicalize a private creator string the same way the Python normalize stage does: uppercase, collapse internal whitespace.
creator_hash
Compute the index key hash for a creator (0 for public tags).
fnv1a32
FNV-1a 32-bit. Used for creator-hash in the index key.