From 06886290ddfd59b8f988b6ac96cfeade6478c8d6 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Wed, 29 Jan 2020 11:14:25 +0200 Subject: [PATCH] Add links to specifications to varint comments. --- libp2p/varint.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libp2p/varint.nim b/libp2p/varint.nim index 9b8b70c..60f556d 100644 --- a/libp2p/varint.nim +++ b/libp2p/varint.nim @@ -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