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
In msgpack 2.0, raw has been split into two different types: bin and str(technically both are byte arrays, but str is a way of telling deserializers that the array is utf-8 and might be decoded into an other unicode representations). str has the same type code as raw in previous versions, so at least for strings, this library it will be backwards-compatible. bin is the new type that should be used for buffers
ext might be a suitable choice for undefined, though you might wanna expose an API for registering other types since there is a total of 127 "slots" for user types
I think the new msgpack spec has been out long enough I'd be willing to change this library. I don't have time at the moment to make the change myself though.
I was just looking at the msgpack spec and I noticed this,
https://github.com/msgpack/msgpack/blob/master/spec.md#types-extension-type
so it seems like if this was used for the buffers then it would be much easier to be compatible with other implementations.
The text was updated successfully, but these errors were encountered: