package
0.0.0-20130121074735-1d03baafba06
Repository: https://github.com/icattlecoder/go.git
Documentation: pkg.go.dev

# Functions

PutUvarint encodes a uint64 into buf and returns the number of bytes written.
PutVarint encodes an int64 into buf and returns the number of bytes written.
Read reads structured binary data from r into data.
ReadUvarint reads an encoded unsigned integer from r and returns it as a uint64.
ReadVarint reads an encoded signed integer from r and returns it as an int64.
Size returns how many bytes Write would generate to encode the value v, which must be a fixed-size value or a slice of fixed-size values, or a pointer to such data.
Uvarint decodes a uint64 from buf and returns that value and the number of bytes read (> 0).
Varint decodes an int64 from buf and returns that value and the number of bytes read (> 0).
Write writes the binary representation of data into w.

# Constants

MaxVarintLenN is the maximum length of a varint-encoded N-bit integer.
MaxVarintLenN is the maximum length of a varint-encoded N-bit integer.
MaxVarintLenN is the maximum length of a varint-encoded N-bit integer.

# Variables

BigEndian is the big-endian implementation of ByteOrder.
LittleEndian is the little-endian implementation of ByteOrder.

# Interfaces

A ByteOrder specifies how to convert byte sequences into 16-, 32-, or 64-bit unsigned integers.