protobuf-codec
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -17,3 +17,2 @@ const assert = require('nanoassert') | ||
const int = Number(varint(buf, byteOffset)) // Safe as protoc only allows fieldNumber up to int32 + 3 bits for wireType | ||
console.log(int) | ||
const wireType = int & 0b111 | ||
@@ -20,0 +19,0 @@ const fieldNumber = int >> 3 |
@@ -87,3 +87,2 @@ const assert = require('nanoassert') | ||
const int = BigInt.asUintN(32, BigInt(fieldNumber)) << 3n | BigInt(wireType) | ||
console.log(int) | ||
varint.encode(int, buf, byteOffset) | ||
@@ -90,0 +89,0 @@ this.encode.bytes = varint.encode.bytes |
{ | ||
"name": "protobuf-codec", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Minimal Protocol Buffers wire encoding/decoding", | ||
@@ -5,0 +5,0 @@ "scripts": { |
28751
756