Help us shape the future of Go! Take the 2026 Go Developer Survey

decoder

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseRuntimeContext

func ReleaseRuntimeContext(ctx *Context)

func Unmarshal

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

Types

type Context

type Context struct {
	Buf []byte
}

func TakeRuntimeContext

func TakeRuntimeContext() *Context

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