2 ms·
https://github.com/protobufjs/protobuf.js/wiki/How-to-reverse-engineer-a-buffer-by-hand https://github.com/protobufjs/protobuf.js/wiki/How-to-revers... Prepend
by WirelessGigabit 3y ago
https://github.com/protobufjs/protobuf.js/wiki/How-to-reverse-engineer-a-buffer-by-hand https://github.com/protobufjs/protobuf.js/wiki/How-to-revers...
Prepending the message with the length means the message is length-limited. Seems standard practice here.
- gabipurcaru 3y agoyep, I think it's quite standard. The BitTorrent protocol also uses it extensively : https://wiki.theory.org/BitTorrentSpecification#Bencoding https://wiki.theory.org/BitTorrentSpecification#Bencoding