leb128

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package leb128 implements LEB128 integer encoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustReadVarInt32

func MustReadVarInt32(r io.Reader) int32

MustReadVarInt32 returns an int32 from r or panics.

func MustReadVarInt64

func MustReadVarInt64(r io.Reader) int64

MustReadVarInt64 returns an int64 from r or panics.

func MustReadVarUint32

func MustReadVarUint32(r io.Reader) uint32

MustReadVarUint32 returns an uint32 from r or panics.

func MustReadVarUint64

func MustReadVarUint64(r io.Reader) uint64

MustReadVarUint64 returns an uint64 from r or panics.

func ReadVarInt32

func ReadVarInt32(r io.Reader) (int32, error)

ReadVarInt32 tries to read a int32 from r.

func ReadVarInt64

func ReadVarInt64(r io.Reader) (int64, error)

ReadVarInt64 tries to read a int64 from r.

func ReadVarUint32

func ReadVarUint32(r io.Reader) (uint32, error)

ReadVarUint32 tries to read a uint32 from r.

func ReadVarUint64

func ReadVarUint64(r io.Reader) (uint64, error)

ReadVarUint64 tries to read a uint64 from r.

func WriteVarInt32

func WriteVarInt32(w io.Writer, i int32) error

WriteVarInt32 writes u to w.

func WriteVarInt64

func WriteVarInt64(w io.Writer, i int64) error

WriteVarInt64 writes u to w.

func WriteVarUint32

func WriteVarUint32(w io.Writer, u uint32) error

WriteVarUint32 writes u to w.

func WriteVarUint64

func WriteVarUint64(w io.Writer, u uint64) error

WriteVarUint64 writes u to w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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