(protoType, bytes)
| 733 | } |
| 734 | |
| 735 | function 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 | |
| 744 | function toFloat32(value) { |
| 745 | return new Float32Array([value])[0]; |
no test coverage detected