Versions in this module Expand all Collapse all v1 v1.3.1 Jan 14, 2020 v1.2.0 Sep 23, 2019 Changes in this version + const MaxSliceSize + var ErrSliceTooLarge = errors.New("encoded slice is too large") + func Marshal(v interface{}) ([]byte, error) + func MarshalAll(vs ...interface{}) ([]byte, error) + func MarshalBool(w io.Writer, b bool) error + func MarshalTinySlice(w io.Writer, v interface{}) error + func MarshalUint16(w io.Writer, x uint16) error + func MarshalUint24(w io.Writer, x uint32) error + func MarshalUint32(w io.Writer, x uint32) error + func MarshalUint64(w io.Writer, x uint64) error + func MarshalUint8(w io.Writer, x uint8) error + func ReadDataSlice(r io.Reader, maxLen int) ([]byte, error) + func ReadObject(r io.Reader, obj interface{}, maxLen int) error + func Unmarshal(b []byte, v interface{}) error + func UnmarshalAll(b []byte, vs ...interface{}) error + func UnmarshalBool(r io.Reader) (bool, error) + func UnmarshalTinySlice(r io.Reader, v interface{}) error + func UnmarshalUint16(r io.Reader) (uint16, error) + func UnmarshalUint24(r io.Reader) (uint32, error) + func UnmarshalUint32(r io.Reader) (uint32, error) + func UnmarshalUint64(r io.Reader) (uint64, error) + func UnmarshalUint8(r io.Reader) (uint8, error) + func WriteDataSlice(w io.Writer, data []byte) error + func WriteObject(w io.Writer, v interface{}) error + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode(v interface{}) error + func (d *Decoder) DecodeAll(vs ...interface{}) error + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) error + func (e *Encoder) EncodeAll(vs ...interface{}) error + type RivineMarshaler interface + MarshalRivine func(io.Writer) error + type RivineUnmarshaler interface + UnmarshalRivine func(io.Reader) error