Skip to content

Representing signed integers #2

Description

@djMax

(I'm not a CoffeeScript guy, so maybe I missed something reading the code). From the FoundationDb docs:

Integers

The standard tuple layer provides an order-preserving, signed, variable length encoding.
For positive integers, a big-endian fixed length encoding is order-preserving.
For signed integers, a big-endian fixed length two’s-complement encoding with the most significant (sign) bit inverted is order-preserving.

This would seem to imply the fdboost encoder should "do work" to encode integers in an order preserving fashion. I don't see that happening.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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