Add links to specifications to varint comments.

This commit is contained in:
cheatfate 2020-01-29 11:14:25 +02:00
parent d902127595
commit 06886290dd
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 2 additions and 0 deletions

View File

@ -11,8 +11,10 @@
## This module supports two variants of variable integer ## This module supports two variants of variable integer
## - Google ProtoBuf varint, which is able to encode full uint64 number and ## - Google ProtoBuf varint, which is able to encode full uint64 number and
## maximum size of encoded value is 10 octets (bytes). ## 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 ## - LibP2P varint, which is able to encode only 63bits of uint64 number and
## maximum size of encoded value is 9 octets (bytes). ## maximum size of encoded value is 9 octets (bytes).
## https://github.com/multiformats/unsigned-varint
import bitops import bitops
type type