Sitelet https://github.com/ubjson/universal-binary-json/issues/77
Skip to content

Type codes for unsigned/signed integers #77

Description

@expressoCoder

I am considering using UBJSON or Google Protocol Buffers for converting a custom serialization format to one that is more standard's based. However distinguishing between unsigned and signed integers of various sizes is important for this task.

I would like to suggest the following markers for unsigned and signed integers. Lower case letters are unsigned and upper case is signed.
b uint8 (byte)
B int8
s uint16 (short)
S Int16
i uint32 (int)
I int32 (uppercase i)
l uint64 (long) (lowercase L)
L int64

I realize these conflict with existing spec but hopefully these will lead to final solution

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