How to use the common function from protobufjs
Find comprehensive JavaScript protobufjs.common code examples handpicked from public code repositorys.
GitHub: alibaba-archive/antpb
4 5 6 7 8 9 10 11 12 13
const encoder = require('./lib/encoder'); const decoder = require('./lib/decoder'); const converter = require('./lib/converter'); const parse = require('./lib/parse'); const protobuf = require('protobufjs'); const common = protobuf.common; const Type = protobuf.Type; const Root = protobuf.Root; const Reader = protobuf.Reader; const Writer = protobuf.Writer;
1
3
0
1093 1094 1095 1096 1097 1098 1099 1100 1101 1102
* @property {INamespace} google/protobuf/struct.proto Struct, Value, NullValue and ListValue * @property {INamespace} google/protobuf/timestamp.proto Timestamp * @property {INamespace} google/protobuf/wrappers.proto Wrappers * @example * // manually provides descriptor.proto (assumes google/protobuf/ namespace and .proto extension) * protobuf.common("descriptor", descriptorJson); * * // manually provides a custom definition (uses my.foo namespace) * protobuf.common("my/foo/bar.proto", myFooBarJson); */
0
1
0
+ 5 other calls in file
protobufjs.load is the most popular function in protobufjs (282 examples)