// DecodeMsg implements msgp.Decodable func (z *MetricDataArray) DecodeMsg(dc *msgp.Reader) (err error) { var xsz uint32 xsz, err = dc.ReadArrayHeader() if err != nil { return } if cap((*z)) >= int(xsz) { (*z) = (*z)[:xsz] } else { (*z) = make(MetricDataArray, xsz) } for bai := range *z { if dc.IsNil() { err = dc.ReadNil() if err != nil { return } (*z)[bai] = nil } else { if (*z)[bai] == nil { (*z)[bai] = new(MetricData) } err = (*z)[bai].DecodeMsg(dc) if err != nil { return } } } return }
// DecodeMsg implements msgp.Decodable func (z *runIterator32) DecodeMsg(dc *msgp.Reader) (err error) { var field []byte _ = field var zqke uint32 zqke, err = dc.ReadMapHeader() if err != nil { return } for zqke > 0 { zqke-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "rc": if dc.IsNil() { err = dc.ReadNil() if err != nil { return } z.rc = nil } else { if z.rc == nil { z.rc = new(runContainer32) } err = z.rc.DecodeMsg(dc) if err != nil { return } } case "curIndex": z.curIndex, err = dc.ReadInt64() if err != nil { return } case "curPosInIndex": z.curPosInIndex, err = dc.ReadUint32() if err != nil { return } case "curSeq": z.curSeq, err = dc.ReadInt64() if err != nil { return } default: err = dc.Skip() if err != nil { return } } } return }
// DecodeMsg implements msgp.Decodable func (z *Message) DecodeMsg(dc *msgp.Reader) (err error) { var field []byte _ = field var isz uint32 isz, err = dc.ReadMapHeader() if err != nil { return } for isz > 0 { isz-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "id": z.ID, err = dc.ReadUint64() if err != nil { return } case "fn": z.Func, err = dc.ReadString() if err != nil { return } case "args": err = z.Args.DecodeMsg(dc) if err != nil { return } case "result": err = z.Result.DecodeMsg(dc) if err != nil { return } case "error": if dc.IsNil() { err = dc.ReadNil() if err != nil { return } z.Error = nil } else { if z.Error == nil { z.Error = new(Error) } var isz uint32 isz, err = dc.ReadMapHeader() if err != nil { return } for isz > 0 { isz-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "msg": z.Error.Msg, err = dc.ReadString() if err != nil { return } default: err = dc.Skip() if err != nil { return } } } } default: err = dc.Skip() if err != nil { return } } } return }
// DecodeMsg implements msgp.Decodable func (z *addHelper32) DecodeMsg(dc *msgp.Reader) (err error) { var field []byte _ = field var zbai uint32 zbai, err = dc.ReadMapHeader() if err != nil { return } for zbai > 0 { zbai-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "runstart": z.runstart, err = dc.ReadUint32() if err != nil { return } case "runlen": z.runlen, err = dc.ReadUint32() if err != nil { return } case "actuallyAdded": z.actuallyAdded, err = dc.ReadUint32() if err != nil { return } case "m": var zcmr uint32 zcmr, err = dc.ReadArrayHeader() if err != nil { return } if cap(z.m) >= int(zcmr) { z.m = (z.m)[:zcmr] } else { z.m = make([]interval32, zcmr) } for zxvk := range z.m { var zajw uint32 zajw, err = dc.ReadMapHeader() if err != nil { return } for zajw > 0 { zajw-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "start": z.m[zxvk].start, err = dc.ReadUint32() if err != nil { return } case "last": z.m[zxvk].last, err = dc.ReadUint32() if err != nil { return } default: err = dc.Skip() if err != nil { return } } } } case "rc": if dc.IsNil() { err = dc.ReadNil() if err != nil { return } z.rc = nil } else { if z.rc == nil { z.rc = new(runContainer32) } var zwht uint32 zwht, err = dc.ReadMapHeader() if err != nil { return } for zwht > 0 { zwht-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "iv": var zhct uint32 zhct, err = dc.ReadArrayHeader() if err != nil { return } if cap(z.rc.iv) >= int(zhct) { z.rc.iv = (z.rc.iv)[:zhct] } else { z.rc.iv = make([]interval32, zhct) } for zbzg := range z.rc.iv { var zcua uint32 zcua, err = dc.ReadMapHeader() if err != nil { return } for zcua > 0 { zcua-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "start": z.rc.iv[zbzg].start, err = dc.ReadUint32() if err != nil { return } case "last": z.rc.iv[zbzg].last, err = dc.ReadUint32() if err != nil { return } default: err = dc.Skip() if err != nil { return } } } } case "card": z.rc.card, err = dc.ReadInt64() if err != nil { return } default: err = dc.Skip() if err != nil { return } } } } default: err = dc.Skip() if err != nil { return } } } return }
// DecodeMsg implements msgp.Decodable func (z *bitmapContainerShortIterator) DecodeMsg(dc *msgp.Reader) (err error) { var field []byte _ = field var zhct uint32 zhct, err = dc.ReadMapHeader() if err != nil { return } for zhct > 0 { zhct-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "ptr": if dc.IsNil() { err = dc.ReadNil() if err != nil { return } z.ptr = nil } else { if z.ptr == nil { z.ptr = new(bitmapContainer) } var zcua uint32 zcua, err = dc.ReadMapHeader() if err != nil { return } for zcua > 0 { zcua-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "cardinality": z.ptr.cardinality, err = dc.ReadInt() if err != nil { return } case "bitmap": var zxhx uint32 zxhx, err = dc.ReadArrayHeader() if err != nil { return } if cap(z.ptr.bitmap) >= int(zxhx) { z.ptr.bitmap = (z.ptr.bitmap)[:zxhx] } else { z.ptr.bitmap = make([]uint64, zxhx) } for zwht := range z.ptr.bitmap { z.ptr.bitmap[zwht], err = dc.ReadUint64() if err != nil { return } } default: err = dc.Skip() if err != nil { return } } } } case "i": z.i, err = dc.ReadInt() if err != nil { return } default: err = dc.Skip() if err != nil { return } } } return }
// DecodeMsg implements msgp.Decodable func (z *ServerResponse) DecodeMsg(dc *msgp.Reader) (err error) { { var ssz uint32 ssz, err = dc.ReadArrayHeader() if err != nil { return } if ssz != 3 { err = msgp.ArrayError{Wanted: 3, Got: ssz} return } } if dc.IsNil() { err = dc.ReadNil() if err != nil { return } z.Header = nil } else { if z.Header == nil { z.Header = new(EventHeader) } var field []byte _ = field var isz uint32 isz, err = dc.ReadMapHeader() if err != nil { return } for isz > 0 { isz-- field, err = dc.ReadMapKeyPtr() if err != nil { return } switch msgp.UnsafeString(field) { case "message_id": z.Header.Id, err = dc.ReadString() if err != nil { return } case "v": z.Header.Version, err = dc.ReadInt() if err != nil { return } case "response_to": z.Header.ResponseTo, err = dc.ReadString() if err != nil { return } default: err = dc.Skip() if err != nil { return } } } } z.Name, err = dc.ReadString() if err != nil { return } var xsz uint32 xsz, err = dc.ReadArrayHeader() if err != nil { return } if cap(z.Params) >= int(xsz) { z.Params = z.Params[:xsz] } else { z.Params = make([]interface{}, xsz) } for bzg := range z.Params { z.Params[bzg], err = dc.ReadIntf() if err != nil { return } } return }