encoding

package
v0.0.0-...-889dc37 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Maximum size for a varint
	VarIntMaxByteSize = 5
)

Variables

View Source
var (
	// ErrStringLengthTooLarge is returned when the length of a string
	// was too large
	ErrStringLengthTooLarge = errors.New("length of String is too large")
)
View Source
var (
	// ErrVarIntTooLarge is returned when a read varint was too large
	ErrVarIntTooLarge = errors.New("VarInt too large")
)

Functions

This section is empty.

Types

type Bool

type Bool bool

func (*Bool) Read

func (b *Bool) Read(r io.Reader) error

func (*Bool) Write

func (b *Bool) Write(w io.Writer) error

type Byte

type Byte int8

func (*Byte) Read

func (b *Byte) Read(r io.Reader) error

func (*Byte) Write

func (b *Byte) Write(w io.Writer) error

type Double

type Double float64

func (*Double) Read

func (d *Double) Read(r io.Reader) error

func (*Double) Write

func (d *Double) Write(w io.Writer) error

type Float

type Float float32

func (*Float) Read

func (f *Float) Read(r io.Reader) error

func (*Float) Write

func (f *Float) Write(w io.Writer) error

type Int

type Int int32

func (*Int) Read

func (i *Int) Read(r io.Reader) error

func (*Int) Write

func (i *Int) Write(w io.Writer) error

type Long

type Long int64

func (*Long) Read

func (l *Long) Read(r io.Reader) error

func (*Long) Write

func (l *Long) Write(w io.Writer) error

type String

type String string

func (*String) Read

func (s *String) Read(r io.Reader) error

func (*String) Write

func (s *String) Write(w io.Writer) error

type UUID

type UUID uuid.UUID

func (*UUID) Read

func (u *UUID) Read(r io.Reader) error

func (*UUID) Write

func (u *UUID) Write(w io.Writer) error

type UnsignedByte

type UnsignedByte uint8

func (*UnsignedByte) Read

func (ub *UnsignedByte) Read(r io.Reader) error

func (*UnsignedByte) Write

func (ub *UnsignedByte) Write(w io.Writer) error

type UnsignedShort

type UnsignedShort uint16

func (*UnsignedShort) Read

func (us *UnsignedShort) Read(r io.Reader) error

func (*UnsignedShort) Write

func (us *UnsignedShort) Write(w io.Writer) error

type VarInt

type VarInt int32

func (*VarInt) Read

func (vi *VarInt) Read(r io.Reader) error

func (*VarInt) Write

func (vi *VarInt) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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