Categorygithub.com/multiformats/go-varint
modulepackage
0.0.7
Repository: https://github.com/multiformats/go-varint.git
Documentation: pkg.go.dev

# README

go-varint

GoDoc Travis CI codecov.io

Varint helpers that enforce minimal encoding.

Table of Contents

Install

go get github.com/multiformats/go-varint

Contribute

Contributions welcome. Please check out the issues.

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2019 Protocol Labs

# Functions

FromUvarint reads an unsigned varint from the beginning of buf, returns the varint, and the number of bytes read.
PutUvarint is an alias for binary.PutUvarint.
ReadUvarint reads a unsigned varint from the given reader.
ToUvarint converts an unsigned integer to a varint-encoded []byte.
UvarintSize returns the size (in bytes) of `num` encoded as a unsigned varint.

# Constants

MaxLenUvarint63 is the maximum number of bytes representing an uvarint in this encoding, supporting a maximum value of 2^63 (uint63), aka MaxValueUvarint63.
MaxValueUvarint63 is the maximum encodable uint63 value.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author