You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uses distinct names for 32-bit and 64-bit types: int/long or maybe int32/int64
add dedicated 32-bit write function (read function is already there) -> this is especially advantageous for 32-bit systems, e.g. microcontrollers, where 64-bit ints are emulated in software
If an object can be represented in multiple possible output formats, serializers SHOULD use the format which represents the data in the smallest number of bytes.
CMP has a few APIs, but its main API maps to MessagePack's high level types and implements the above. If we added symmetric write methods we'd still have to switch on the value and write the appropriate type marker. That plus C integer promotion makes them pretty superfluous.
Buuuuut you make a good point about non-64-bit architectures. I think there's probably a feature in there for that, to define away support for integers that aren't supported in hardware. I think I'll file a feature for it?
The read/write functions are not symmetric and confusing:
I would suggest the following:
The text was updated successfully, but these errors were encountered: