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
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