Categorygithub.com/bsm/go-vlq
modulepackage
0.0.0-20150828105119-ec6e8d4f5f4e
Repository: https://github.com/bsm/go-vlq.git
Documentation: pkg.go.dev

# README

VLQ - Variable-length Quantity Build Status

Implementation of "VLQ" encoding of 64-bit integers. For details, please see Wikipedia.

Licence

Copyright (c) 2015 Black Square Media

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Parts of the source code and documentation were taken directly from
https://golang.org/src/encoding/binary/varint.go, governed by a BSD-style.
Copyright 2011 The Go Authors.

# Functions

Int decodes an int64 from buf and returns that value and the number of bytes read (> 0).
PutInt encodes an int64 into buf and returns the number of bytes written.
PutUint encodes a uint64 into buf and returns the number of bytes written.
ReadInt reads an encoded signed integer from r and returns it as an int64.
ReadUint reads an encoded unsigned integer from r and returns it as a uint64.
Uint decodes a uint64 from buf and returns that value and the number of bytes read (> 0).

# Constants

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