decode

package
v0.0.0-...-676e334 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorOutOfIndex = errors.New("array out of index")

ErrorOutOfIndex returned if try to read bytes more than reader contains.

Functions

func UnmarshalBin

func UnmarshalBin(payload []byte, v interface{}) error

UnmarshalBin function used for binary unmarshal.

Types

type ErrorInvalidUnmarshal

type ErrorInvalidUnmarshal struct {
	Type reflect.Type
}

ErrorInvalidUnmarshal can be returned if non pointer given in UnmarshalBin function

func (*ErrorInvalidUnmarshal) Error

func (e *ErrorInvalidUnmarshal) Error() string

type Unmarshaler

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

Unmarshaler is the interface implemented by types that can unmarshal binary description of themselves.

Jump to

Keyboard shortcuts

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