Skip to content

define a codec table format #18

Closed
Closed
@wanderer

Description

@wanderer

This is the first attempt creating a format for defining codec tables. Codec tables map single bytes to multiple bytes in this case ascii strings which represent a multicodec prefix.

Table definition

Field Type Description
count varuint32 count of type entries to follow
entries type_entry* repeated type entries as described below

Entry definition

Field Type Description
count varuint32 the length of the string of a multicodec prefix
prefix bytes the prefix string
packed encoding byte The packed encoding of prefix

This is effectively layer 0 compression. Which is a simple binary encoding of the prefix bytes and related data structures. The encoding is dense and trivial to interact with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions