encoder

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeCtx added in v0.0.8

func FreeCtx(ctx *Context)

func Marshal

func Marshal(v any) ([]byte, error)

func MarshalCtx added in v0.0.8

func MarshalCtx(ctx *Context, v any) error

Types

type Context

type Context struct {
	Buf []byte
}

func NewCtx added in v0.0.8

func NewCtx() *Context

type IsZeroValue added in v0.0.4

type IsZeroValue interface {
	IsZeroBencodeValue() bool
}

type Marshaler

type Marshaler interface {
	MarshalBencode() ([]byte, error)
}

type UnsupportedInterfaceTypeError

type UnsupportedInterfaceTypeError struct {
	Type reflect.Type
}

func (*UnsupportedInterfaceTypeError) Error

type UnsupportedTypeAsMapKeyError

type UnsupportedTypeAsMapKeyError struct {
	Type reflect.Type
}

func (*UnsupportedTypeAsMapKeyError) Error

type UnsupportedTypeError

type UnsupportedTypeError struct {
	Type reflect.Type
}

func (*UnsupportedTypeError) Error

func (e *UnsupportedTypeError) Error() string

Jump to

Keyboard shortcuts

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