()
| 561 | } |
| 562 | |
| 563 | readVarInt64() { |
| 564 | const v = this.readVarUInt64Value(); |
| 565 | if (typeof v === "number") { |
| 566 | if (v <= 0xffffffff) { |
| 567 | return BigInt((v >>> 1) ^ -(v & 1)); |
| 568 | } |
| 569 | return BigInt(v % 2 === 0 ? v / 2 : -(v + 1) / 2); |
| 570 | } |
| 571 | return (v >> 1n) ^ -(v & 1n); // zigZag decode |
| 572 | } |
| 573 | |
| 574 | readFloat16() { |
| 575 | return fromFloat16Bits(this.readUint16()); |
no test coverage detected