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

691 views Asked by At

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);
1

There are 1 answers

0
Xt Z On