4 ms·
Huh? This is an entirely different serialization format altogether.
by vore 3y ago
Huh? This is an entirely different serialization format altogether.
- twic 3y agoCreate a MessagePack message containing a byte array, put the protobuf in that. Of course, the enterprise solution would be to hex encode it and put it in a CDATA section in an XML document.
- formerly_proven 3y agoJust stick this in front of your frames: 81 A2 70 62 C6 <32 bit be length> <protobuf data>
- KMag 3y agoYou got me. What's that format / magic number? At first I thought it was the zlib header for incompressible data, but that's not right. Is that just the MAC address of some NIC you own?
- aidenn0 3y agoIt's msgpack: 0x8n A map containing "n" key/value pairs -> 0x81 introduces a single key/value pair b101XXXXX : A string where XXXXX is the string length -> 0xA2 introudces a 2 byte string 0xC6 followed by a 32-bit value N introduces an array of bytes of size N 0x70 0x62 "pb" So it roughly corresponds to {"pb": <protobuf data> }
- paulddraper 3y agoPoster is being cute.