MCPcopy Create free account
hub / github.com/apache/fory / decodeProtoObject

Function decodeProtoObject

benchmarks/javascript/benchmark.js:735–742  ·  view source on GitHub ↗
(protoType, bytes)

Source from the content-addressed store, hash-verified

733}
734
735function decodeProtoObject(protoType, bytes) {
736 const message = protoType.decode(bytes);
737 return protoType.toObject(message, {
738 longs: Number,
739 enums: Number,
740 defaults: true,
741 });
742}
743
744function toFloat32(value) {
745 return new Float32Array([value])[0];

Callers 1

ensureSerializationWorksFunction · 0.85

Calls 1

decodeMethod · 0.65

Tested by

no test coverage detected