Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSizeAndSerialize ¶
func CheckSizeAndSerialize(m marshaler.Marshaler, compress bool, mType MarshalType) (bool, []byte, error)
CheckSizeAndSerialize Check the size of a payload and marshall it (optionally compress it) The dual role makes sense as you will never serialize without checking the size of the payload
Types ¶
type MarshalType ¶
type MarshalType int
MarshalType is the type of marshaler to use
const ( MarshalJSON MarshalType = iota Marshal )
Enumeration of the existing marshal types
Click to show internal directories.
Click to hide internal directories.