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

Method writeVarUInt64Number

javascript/packages/core/lib/writer/index.ts:433–439  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

431 }
432
433 private writeVarUInt64Number(value: number) {
434 while (value >= 0x80) {
435 this.platformBuffer[this.cursor++] = (value % 0x80) | 0x80;
436 value = Math.floor(value / 0x80);
437 }
438 this.platformBuffer[this.cursor++] = value;
439 }
440
441 writeVarInt64(v: bigint | number) {
442 if (typeof v !== "bigint") {

Callers 2

writeVarInt64Method · 0.95
writeVarUInt64Method · 0.95

Calls 1

floorMethod · 0.80

Tested by

no test coverage detected