varuint-b4bcoin
encode/decode number as b4bcoin variable length integer
value | storage length (bytes) |
---|---|
[0, 0xfd) | 1 |
[0xfd, 0xffff] | 3 |
[0x010000, 0xffffffff] | 5 |
[0x0100000000, 0x1fffffffffffff] | 9 |
License
MIT
encode/decode number as b4bcoin variable length integer
value | storage length (bytes) |
---|---|
[0, 0xfd) | 1 |
[0xfd, 0xffff] | 3 |
[0x010000, 0xffffffff] | 5 |
[0x0100000000, 0x1fffffffffffff] | 9 |
MIT
npm i varuint-b4bcoin
1
1.0.0
MIT
4.57 kB
4