Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUnpacker throws exception trying to read map length after IsMapHeader returns true #320
Comments
|
A sample of the byte stream:
|
* both of the leading MsgPack implementations for .NET have problems, either ser/deser [issues](msgpack/msgpack-cli#320) or complexity in custom-mapping our TF attributes to their representation * trying to create a super-simple, limited-purpose MP impl for our needs
I've implemented a custom MessagePackSerializer, and when trying to deserialize my type from the byte stream, which is expected to be a Map, I get an exception.
At the point of the exception
unpacker.IsMapHeaderreturns true, but trying to dounpacker.ReadMapLength(...)throws:MsgPack.MessageTypeException: Cannot convert 'map' header from type 'FixedRaw'(0xA6) in position 1.