msgpack.go 354 B

123456789
  1. package utils
  2. // MsgPackMarshal returns the MsgPack encoding of v.
  3. type MsgPackMarshal func(v any) ([]byte, error)
  4. // MsgPackUnmarshal parses the MsgPack-encoded data and stores the result
  5. // in the value pointed to by v. If v is nil or not a pointer,
  6. // Unmarshal returns an InvalidUnmarshalError.
  7. type MsgPackUnmarshal func(data []byte, v any) error