Skip to content

Variable-length integer encoding #95

@robertwayne

Description

@robertwayne

Going to require:

  • Update Encodable trait encode methods to use bf.write_varint().
  • Add a write_varint() method for Bufferfish.
  • Update codegen to read varints on the JS side automatically.

Probably use a simple most significant bit variation for encoding, as negative values (thus signed ints) are not used in network messages for the game server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions