// UnmarshalMsg implements msgp.Unmarshaler func (z *Record) UnmarshalMsg(bts []byte) (o []byte, err error) { { var ssz uint32 ssz, bts, err = msgp.ReadArrayHeaderBytes(bts) if err != nil { return } if ssz != 5 { err = msgp.ArrayError{Wanted: 5, Got: ssz} return } } z.Index, bts, err = msgp.ReadUint64Bytes(bts) if err != nil { return } z.TimeSec, bts, err = msgp.ReadInt64Bytes(bts) if err != nil { return } z.TimeNSec, bts, err = msgp.ReadInt64Bytes(bts) if err != nil { return } z.RemoteAddr, bts, err = msgp.ReadBytesBytes(bts, z.RemoteAddr) if err != nil { return } z.Message, bts, err = msgp.ReadBytesBytes(bts, z.Message) if err != nil { return } o = bts return }
func (r *rawBytes) UnmarshalMsg(b []byte) ([]byte, error) { tmp, out, err := msgp.ReadBytesBytes(b, (*(*[]byte)(r))[:0]) *r = rawBytes(tmp) return out, err }