packet

package
v0.0.0-...-c39f9df Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLength

func ReadLength(r io.Reader) (int, error)

Types

type Decoder

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

func (*Decoder) Byte

func (dec *Decoder) Byte() byte

func (*Decoder) Int32

func (dec *Decoder) Int32() int32

func (*Decoder) Int64

func (dec *Decoder) Int64() int64

func (*Decoder) Read

func (dec *Decoder) Read(r io.Reader) error

func (*Decoder) Reset

func (dec *Decoder) Reset(data []byte)

func (*Decoder) String

func (dec *Decoder) String() string

func (*Decoder) Uint32

func (dec *Decoder) Uint32() uint32

func (*Decoder) Uint64

func (dec *Decoder) Uint64() uint64

func (*Decoder) Uintptr

func (dec *Decoder) Uintptr() uintptr

type Encoder

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

func NewEncoder

func NewEncoder(size int) Encoder

func (*Encoder) Byte

func (enc *Encoder) Byte(v byte)

func (*Encoder) BytesLen

func (enc *Encoder) BytesLen() int

func (*Encoder) Int32

func (enc *Encoder) Int32(v int32)

func (*Encoder) Int64

func (enc *Encoder) Int64(v int64)

func (*Encoder) LengthAndBytes

func (enc *Encoder) LengthAndBytes() []byte

func (*Encoder) Reset

func (enc *Encoder) Reset()

func (*Encoder) String

func (enc *Encoder) String(v string)

func (*Encoder) Uint32

func (enc *Encoder) Uint32(v uint32)

func (*Encoder) Uint64

func (enc *Encoder) Uint64(v uint64)

func (*Encoder) Uintptr

func (enc *Encoder) Uintptr(v uintptr)

Jump to

Keyboard shortcuts

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