Documentation
¶
Index ¶
- Variables
- type DTS
- func (d DTS[T]) DTM() com.DTM
- func (d DTS[T]) Marshal(t T, w muss.Writer) (n int, err error)
- func (d DTS[T]) Size(t T) (size int)
- func (d DTS[T]) Skip(r muss.Reader) (n int, err error)
- func (d DTS[T]) SkipData(r muss.Reader) (n int, err error)
- func (d DTS[T]) Unmarshal(r muss.Reader) (t T, n int, err error)
- func (d DTS[T]) UnmarshalData(r muss.Reader) (t T, n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DTMSer = dtmSer{}
View Source
var ErrWrongDTM = errors.New("wrong data type metadata")
ErrWrongDTM happens when DTS tries to unmarshal data with wrong DTM.
Functions ¶
This section is empty.
Types ¶
type DTS ¶
type DTS[T any] struct { // contains filtered or unexported fields }
DTM implements the mus.Serializer interface and provides DTM support for the mus-stream-go serializer. It helps to serializer DTM + data.
func (DTS[T]) Skip ¶ added in v0.5.0
Skip skips DTM + data.
Returns ErrWrongDTM if the unmarshalled DTM differs from the dts.DTM().
Click to show internal directories.
Click to hide internal directories.