rencode

package
v0.0.0-...-731b1cc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeInvalidArgError

type DecodeInvalidArgError struct {
	Type reflect.Type
}

DecodeInvalidArgError represents decode invalid argument error

func (*DecodeInvalidArgError) Error

func (e *DecodeInvalidArgError) Error() string

type DecodeTypeError

type DecodeTypeError struct {
	Value string
	Type  reflect.Type
}

DecodeTypeError represents decode type error

func (*DecodeTypeError) Error

func (e *DecodeTypeError) Error() string

type Decoder

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

Decoder represents rencoder decoder

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

NewDecoder returns a new rencode decoder

func (*Decoder) Decode

func (d *Decoder) Decode(v interface{}) error

Decode decodes stream

type Encoder

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

Encoder represents rencode encoder

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

NewEncoder returns a new rencode encoder

func (*Encoder) Encode

func (e *Encoder) Encode(v interface{}) error

Encode encodes value

Jump to

Keyboard shortcuts

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