Documentation ¶
Overview ¶
Package leb128 implements LEB128 integer encoding.
Index ¶
- func MustReadVarInt32(r io.Reader) int32
- func MustReadVarInt64(r io.Reader) int64
- func MustReadVarUint32(r io.Reader) uint32
- func MustReadVarUint64(r io.Reader) uint64
- func ReadVarInt32(r io.Reader) (int32, error)
- func ReadVarInt64(r io.Reader) (int64, error)
- func ReadVarUint32(r io.Reader) (uint32, error)
- func ReadVarUint64(r io.Reader) (uint64, error)
- func WriteVarInt32(w io.Writer, i int32) error
- func WriteVarInt64(w io.Writer, i int64) error
- func WriteVarUint32(w io.Writer, u uint32) error
- func WriteVarUint64(w io.Writer, u uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustReadVarInt32 ¶
MustReadVarInt32 returns an int32 from r or panics.
func MustReadVarInt64 ¶
MustReadVarInt64 returns an int64 from r or panics.
func MustReadVarUint32 ¶
MustReadVarUint32 returns an uint32 from r or panics.
func MustReadVarUint64 ¶
MustReadVarUint64 returns an uint64 from r or panics.
func ReadVarInt32 ¶
ReadVarInt32 tries to read a int32 from r.
func ReadVarInt64 ¶
ReadVarInt64 tries to read a int64 from r.
func ReadVarUint32 ¶
ReadVarUint32 tries to read a uint32 from r.
func ReadVarUint64 ¶
ReadVarUint64 tries to read a uint64 from r.
func WriteVarUint32 ¶
WriteVarUint32 writes u to w.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.