mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-04-01 01:41:06 +00:00
9 lines
149 B
TypeScript
9 lines
149 B
TypeScript
|
// @ts-ignore
|
||
|
import varint from 'varint';
|
||
|
|
||
|
varint.encode(300);
|
||
|
varint.encode.bytes;
|
||
|
|
||
|
varint.decode(Buffer.from([0xa7, 0x02]));
|
||
|
varint.decode.bytes;
|