mirror of https://github.com/vacp2p/nim-libp2p.git
Add links to specifications to varint comments.
This commit is contained in:
parent
d902127595
commit
06886290dd
|
@ -11,8 +11,10 @@
|
|||
## This module supports two variants of variable integer
|
||||
## - Google ProtoBuf varint, which is able to encode full uint64 number and
|
||||
## maximum size of encoded value is 10 octets (bytes).
|
||||
## https://developers.google.com/protocol-buffers/docs/encoding#varints
|
||||
## - LibP2P varint, which is able to encode only 63bits of uint64 number and
|
||||
## maximum size of encoded value is 9 octets (bytes).
|
||||
## https://github.com/multiformats/unsigned-varint
|
||||
import bitops
|
||||
|
||||
type
|
||||
|
|
Loading…
Reference in New Issue