Expand description
Store archive: a whole links store in binary links notation.
An archive is two LinksPackets, one after the other:
- Links, without external references: the store link
(a: s t)is the doublets tat addressa. Addresses the store does not use are holes, so every link keeps its address. - Names, with external references: one link per named store link,
in address order, holding the external values
address code-point….
Both packets use packed widths, so a store of small addresses costs about
two bytes per link. import_store writes every link back at its own
address and restores the names, so exporting the imported store gives
the same bytes again.
Functions§
- export_
store - Writes every link and name of
storagetowriter. - export_
store_ file - Writes the archive of
storageto the file atpath. - import_
store - Reads an archive from
readerintostorage: each link is written at its own address, then every name is set. - import_
store_ file - Reads the archive in the file at
pathintostorage.