varint

command
v0.0.0-...-414a959 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2017 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Command varint encodes a decimal number to or from varint.

Usage:

varint

It reads from stdin when decoding, and takes a parameter when encoding.

Examples:

Obtain the decimal value of the hex-encoded varint 0101:

printf 0101 | hex -d | varint

Obtain the unsigned varint value of the decimal number 1234:

varint 1234 | hex

Note that encoding a varint without hex encoding it will often result in an byte value that cannot be printed as ASCII.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL