Versions in this module Expand all Collapse all v0 v0.1.0 Jan 25, 2024 Changes in this version + const DecodeDefaultMaxDepth + var DefaultDecodeOptions = DecodeOptions + func Marshal(w io.Writer, v interface{}) (int, error) + func Unmarshal(r io.Reader, v interface{}) (int, error) + func UnmarshalWithOptions(r io.Reader, v interface{}, options DecodeOptions) (int, error) + type DecodeOptions struct + MaxDepth uint + MaxInputLen int + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func NewDecoderWithOptions(r io.Reader, options DecodeOptions) *Decoder + func (d *Decoder) Decode(v interface{}) (int, error) + func (d *Decoder) DecodeBool() (bool, int, error) + func (d *Decoder) DecodeDouble() (float64, int, error) + func (d *Decoder) DecodeEnum(validEnums map[int32]bool) (int32, int, error) + func (d *Decoder) DecodeFixedOpaque(size int32) ([]byte, int, error) + func (d *Decoder) DecodeFixedOpaqueInplace(out []byte) (int, error) + func (d *Decoder) DecodeFloat() (float32, int, error) + func (d *Decoder) DecodeHyper() (int64, int, error) + func (d *Decoder) DecodeInt() (int32, int, error) + func (d *Decoder) DecodeOpaque(maxSize int) ([]byte, int, error) + func (d *Decoder) DecodeString(maxSize int) (string, int, error) + func (d *Decoder) DecodeUhyper() (uint64, int, error) + func (d *Decoder) DecodeUint() (uint32, int, error) + func (d *Decoder) InputLen() (int, bool) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (enc *Encoder) Encode(v interface{}) (int, error) + func (enc *Encoder) EncodeBool(v bool) (int, error) + func (enc *Encoder) EncodeDouble(v float64) (int, error) + func (enc *Encoder) EncodeEnum(v int32, validEnums map[int32]bool) (int, error) + func (enc *Encoder) EncodeFixedOpaque(v []byte) (int, error) + func (enc *Encoder) EncodeFloat(v float32) (int, error) + func (enc *Encoder) EncodeHyper(v int64) (int, error) + func (enc *Encoder) EncodeInt(v int32) (int, error) + func (enc *Encoder) EncodeOpaque(v []byte) (int, error) + func (enc *Encoder) EncodeString(v string) (int, error) + func (enc *Encoder) EncodeUhyper(v uint64) (int, error) + func (enc *Encoder) EncodeUint(v uint32) (int, error) + type Enum interface + ValidEnum func(int32) bool + type ErrorCode int + const ErrBadArguments + const ErrBadEnumValue + const ErrBadUnionSwitch + const ErrBadUnionValue + const ErrIO + const ErrMaxDecodingDepth + const ErrNilInterface + const ErrNotSettable + const ErrOverflow + const ErrParseTime + const ErrUnsupportedType + func (e ErrorCode) String() string + type MarshalError struct + Description string + Err error + ErrorCode ErrorCode + Func string + Value interface{} + func (e *MarshalError) Error() string + func (e *MarshalError) Unwrap() error + type Sized interface + XDRMaxSize func() int + type Union interface + ArmForSwitch func(int32) (string, bool) + SwitchFieldName func() string + type UnmarshalError struct + Description string + Err error + ErrorCode ErrorCode + Func string + Value interface{} + func (e *UnmarshalError) Error() string + func (e *UnmarshalError) Unwrap() error