3

Is there any way to decode/encode by tag but without any .proto file or json file in protobuf.js?
Or any other library?

like:

// read value by tag
var pb = new Protobufjs.Reader(buffer);
var value = pb.readInt32ByTag(1);
// write value by tag
var pb = new Protobufjs.Writer();
pb.writeInt32ByTag(1, 12345);
takayama
  • 41
  • 3

1 Answers1

0

try this out https://github.com/pawitp/protobuf-decoder, it's also has a online decoder: https://protobuf-decoder.netlify.com/

Xt Z
  • 439
  • 4
  • 7