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

Method readSliInt64

javascript/packages/core/lib/reader/index.ts:126–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }
125
126 readSliInt64() {
127 const i = this.dataView.getUint32(this.cursor, true);
128 if ((i & 0b1) != 0b1) {
129 this.cursor += 4;
130 return BigInt(i >> 1);
131 }
132 this.cursor += 1;
133 return this.readVarInt64();
134 }
135
136 /**
137 * Read signed fory Tagged(Small Long as Int) encoded long.

Callers

nothing calls this directly

Calls 1

readVarInt64Method · 0.95

Tested by

no test coverage detected