// UnmarshalMsg implements msgp.Unmarshaler func (z *A) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var xvk uint32 xvk, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil { return } for xvk > 0 { xvk-- field, bts, err = msgp.ReadMapKeyZC(bts) if err != nil { return } switch msgp.UnsafeString(field) { case "Name": z.Name, bts, err = msgp.ReadStringBytes(bts) if err != nil { return } case "BirthDay": z.BirthDay, bts, err = msgp.ReadTimeBytes(bts) if err != nil { return } case "Phone": z.Phone, bts, err = msgp.ReadStringBytes(bts) if err != nil { return } case "Siblings": z.Siblings, bts, err = msgp.ReadIntBytes(bts) if err != nil { return } case "Spouse": z.Spouse, bts, err = msgp.ReadBoolBytes(bts) if err != nil { return } case "Money": z.Money, bts, err = msgp.ReadFloat64Bytes(bts) if err != nil { return } default: bts, err = msgp.Skip(bts) if err != nil { return } } } o = bts return }
// UnmarshalMsg implements msgp.Unmarshaler func (z *CacheRegistry) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var bzg uint32 bzg, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil { return } for bzg > 0 { bzg-- field, bts, err = msgp.ReadMapKeyZC(bts) if err != nil { return } switch msgp.UnsafeString(field) { case "CacheKey": z.CacheKey, bts, err = msgp.ReadStringBytes(bts) if err != nil { return } case "Payload": z.Payload, bts, err = msgp.ReadIntfBytes(bts) if err != nil { return } case "StoreTTL": z.StoreTTL, bts, err = msgp.ReadFloat64Bytes(bts) if err != nil { return } case "CacheTime": z.CacheTime, bts, err = msgp.ReadTimeBytes(bts) if err != nil { return } case "HasValue": z.HasValue, bts, err = msgp.ReadBoolBytes(bts) if err != nil { return } case "TypeName": z.TypeName, bts, err = msgp.ReadStringBytes(bts) if err != nil { return } default: bts, err = msgp.Skip(bts) if err != nil { return } } } o = bts return }
// UnmarshalMsg implements msgp.Unmarshaler func (z *Weather) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var isz uint32 isz, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil { return } for isz > 0 { isz-- field, bts, err = msgp.ReadMapKeyZC(bts) if err != nil { return } switch msgp.UnsafeString(field) { case "time": z.Time, bts, err = msgp.ReadTimeBytes(bts) if err != nil { return } case "size": z.Size, bts, err = msgp.ReadInt64Bytes(bts) if err != nil { return } case "type": z.Type, bts, err = msgp.ReadStringBytes(bts) if err != nil { return } case "details": z.Details, bts, err = msgp.ReadBytesBytes(bts, z.Details) if err != nil { return } default: bts, err = msgp.Skip(bts) if err != nil { return } } } o = bts return }