decoder

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte, v any) error

Types

type Context

type Context struct {
	Buf []byte
}

type Decoder

type Decoder interface {
	Decode(ctx *Context, cursor int, depth int64, rv reflect.Value) (int, error)
}

func CompileToGetDecoder

func CompileToGetDecoder(rt reflect.Type) (Decoder, error)

type Unmarshaler

type Unmarshaler interface {
	UnmarshalBencode([]byte) error
}

Jump to

Keyboard shortcuts

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