MCPcopy Create free account
hub / github.com/btd/rollup-plugin-visualizer / uint

Method uint

shared/share/binary.ts:42–49  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

40 }
41
42 uint(value: number): void {
43 let n = uint(value);
44 do {
45 const byte = n % 128;
46 n = Math.floor(n / 128);
47 this.byte(byte + (n ? 128 : 0));
48 } while (n);
49 }
50
51 bytes(value: Uint8Array): void {
52 this.reserve(value.length);

Callers 6

encodeReportFunction · 0.95
textMethod · 0.95
vectorMethod · 0.95
writeUidsFunction · 0.45
writeStringsFunction · 0.45

Calls 2

byteMethod · 0.95
uintFunction · 0.85

Tested by

no test coverage detected