Re:Add extra stuff to a “standard” encoding? Sure, why not
by KMag on Wednesday September 20, 2023 @11:36AM
(#37585544)
You 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?
[ Parent
| on HN ]
Re:Add extra stuff to a “standard” encoding? Sure, why not
by aidenn0 on Wednesday September 20, 2023 @02:02PM
(#37587545)
It'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> }