vlq

package
v0.0.0-...-708ca39 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Msb1Mask   byte = 0x80
	MsbNo1Mask byte = 0x7F
)

bits masks for vlq

View Source
const MaxNumber uint32 = 0xFFFFFFF

MaxNumber - maximum VLQ number

View Source
const MaxResultSize = 4

MaxResultSize = maximum bytes number for vlq

Variables

This section is empty.

Functions

func GetBytes

func GetBytes(number uint32) []byte

GetBytes return bytes representation of number

func GetFromBytes

func GetFromBytes(data []byte) (deltaTime uint32, size uint32)

GetFromBytes gets Variable-length quantity from data

func GetFromReader

func GetFromReader(reader io.Reader) (uint32, error)

GetFromReader get vlq from reader

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error check all errors

func (*Error) Error

func (e *Error) Error() string

Error implements standart error interface

Jump to

Keyboard shortcuts

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