encoder

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlwaysHasValue added in v0.0.4

func AlwaysHasValue(_ *Ctx, _ uintptr) (bool, error)

func EmptyPtr added in v0.0.4

func EmptyPtr(ctx *Ctx, p uintptr) (bool, error)

func Marshal

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

func PtrDeRef added in v0.0.15

func PtrDeRef(p uintptr) uintptr

Types

type Ctx

type Ctx struct {
	KeepRefs []unsafe.Pointer
	Buf      []byte
	// contains filtered or unexported fields
}

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