Skip to content

Define binary representation for TypeIDs and implement binary marshaling #5

Open
@loreto

Description

@loreto

As suggested in #4, typeids could implement the encoding.BinaryMarshaler and encoding.BinaryUnmarshaler interfaces.

To do so, we would first have to define in the spec the standard binary representation for typeids. Options include:

  • Re-use the string representation and encoded in UTF-8
  • Instead of encoding the prefix as the bytes of a base32 string, be more efficient by using the "raw" 128-bit representation of the UUID. A follow up question would be how to distinguish between the prefix and suffix fields in the binary representation (use a separator? include an integer indicating the length of the prefix?)

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