Documentation
¶
Overview ¶
Package encoder implements BINN encoding.
Index ¶
- Variables
- func Float32(f float32) []byte
- func Float64(f float64) []byte
- func Int(v int) []byte
- func Int16(v int16) []byte
- func Int32(v int32) []byte
- func Int64(v int64) []byte
- func Int8(v int8) []byte
- func Marshal(v interface{}) ([]byte, error)
- func Size(size int, totalSize bool) []byte
- func String(s string) []byte
- func Uint(v uint) []byte
- func Uint16(v uint16) []byte
- func Uint32(v uint32) []byte
- func Uint64(v uint64) []byte
- func Uint8(v uint8) []byte
- type Marshaler
- type MarshalerError
- type UnsupportedTypeError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidValue = errors.New("invalid value")
)
Functions ¶
Types ¶
type MarshalerError ¶ added in v0.2.0
type MarshalerError struct { Type reflect.Type Err error // contains filtered or unexported fields }
func (*MarshalerError) Error ¶ added in v0.2.0
func (e *MarshalerError) Error() string
func (*MarshalerError) Unwrap ¶ added in v0.2.0
func (e *MarshalerError) Unwrap() error
type UnsupportedTypeError ¶
func (*UnsupportedTypeError) Error ¶
func (e *UnsupportedTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.