// MarshalMsg implements msgp.Marshaler func (z *Message) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 5 // string "id" o = append(o, 0x85, 0xa2, 0x69, 0x64) o = msgp.AppendUint64(o, z.ID) // string "fn" o = append(o, 0xa2, 0x66, 0x6e) o = msgp.AppendString(o, z.Func) // string "args" o = append(o, 0xa4, 0x61, 0x72, 0x67, 0x73) o, err = z.Args.MarshalMsg(o) if err != nil { return } // string "result" o = append(o, 0xa6, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74) o, err = z.Result.MarshalMsg(o) if err != nil { return } // string "error" o = append(o, 0xa5, 0x65, 0x72, 0x72, 0x6f, 0x72) if z.Error == nil { o = msgp.AppendNil(o) } else { // map header, size 1 // string "msg" o = append(o, 0x81, 0xa3, 0x6d, 0x73, 0x67) o = msgp.AppendString(o, z.Error.Msg) } return }
// MarshalMsg implements msgp.Marshaler func (z *ServerResponse) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // array header, size 3 o = append(o, 0x93) if z.Header == nil { o = msgp.AppendNil(o) } else { // map header, size 3 // string "message_id" o = append(o, 0x83, 0xaa, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64) o = msgp.AppendString(o, z.Header.Id) // string "v" o = append(o, 0xa1, 0x76) o = msgp.AppendInt(o, z.Header.Version) // string "response_to" o = append(o, 0xab, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x6f) o = msgp.AppendString(o, z.Header.ResponseTo) } o = msgp.AppendString(o, z.Name) o = msgp.AppendArrayHeader(o, uint32(len(z.Params))) for bzg := range z.Params { o, err = msgp.AppendIntf(o, z.Params[bzg]) if err != nil { return } } return }
// MarshalMsg implements msgp.Marshaler func (z *Node) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 4 // string "id" o = append(o, 0x84, 0xa2, 0x69, 0x64) o = msgp.AppendBytes(o, []byte(z.ID)) // string "il" o = append(o, 0xa2, 0x69, 0x6c) o = msgp.AppendBool(o, z.IsLeaf) // string "cv" o = append(o, 0xa2, 0x63, 0x76) o = msgp.AppendArrayHeader(o, uint32(len(z.ChildValues))) for cmr := range z.ChildValues { o, err = msgp.AppendIntf(o, z.ChildValues[cmr]) if err != nil { return } } // string "ck" o = append(o, 0xa2, 0x63, 0x6b) o = msgp.AppendArrayHeader(o, uint32(len(z.ChildKeys))) for ajw := range z.ChildKeys { if z.ChildKeys[ajw] == nil { o = msgp.AppendNil(o) } else { o, err = z.ChildKeys[ajw].MarshalMsg(o) if err != nil { return } } } return }
// MarshalMsg implements msgp.Marshaler func (z MetricDataArray) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendArrayHeader(o, uint32(len(z))) for cmr := range z { if z[cmr] == nil { o = msgp.AppendNil(o) } else { o, err = z[cmr].MarshalMsg(o) if err != nil { return } } } return }
// MarshalMsg implements msgp.Marshaler func (z *addHelper32) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 5 // string "runstart" o = append(o, 0x85, 0xa8, 0x72, 0x75, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x74) o = msgp.AppendUint32(o, z.runstart) // string "runlen" o = append(o, 0xa6, 0x72, 0x75, 0x6e, 0x6c, 0x65, 0x6e) o = msgp.AppendUint32(o, z.runlen) // string "actuallyAdded" o = append(o, 0xad, 0x61, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x6c, 0x79, 0x41, 0x64, 0x64, 0x65, 0x64) o = msgp.AppendUint32(o, z.actuallyAdded) // string "m" o = append(o, 0xa1, 0x6d) o = msgp.AppendArrayHeader(o, uint32(len(z.m))) for zxvk := range z.m { // map header, size 2 // string "start" o = append(o, 0x82, 0xa5, 0x73, 0x74, 0x61, 0x72, 0x74) o = msgp.AppendUint32(o, z.m[zxvk].start) // string "last" o = append(o, 0xa4, 0x6c, 0x61, 0x73, 0x74) o = msgp.AppendUint32(o, z.m[zxvk].last) } // string "rc" o = append(o, 0xa2, 0x72, 0x63) if z.rc == nil { o = msgp.AppendNil(o) } else { // map header, size 2 // string "iv" o = append(o, 0x82, 0xa2, 0x69, 0x76) o = msgp.AppendArrayHeader(o, uint32(len(z.rc.iv))) for zbzg := range z.rc.iv { // map header, size 2 // string "start" o = append(o, 0x82, 0xa5, 0x73, 0x74, 0x61, 0x72, 0x74) o = msgp.AppendUint32(o, z.rc.iv[zbzg].start) // string "last" o = append(o, 0xa4, 0x6c, 0x61, 0x73, 0x74) o = msgp.AppendUint32(o, z.rc.iv[zbzg].last) } // string "card" o = append(o, 0xa4, 0x63, 0x61, 0x72, 0x64) o = msgp.AppendInt64(o, z.rc.card) } return }
// MarshalMsg implements msgp.Marshaler func (z *runIterator32) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 4 // string "rc" o = append(o, 0x84, 0xa2, 0x72, 0x63) if z.rc == nil { o = msgp.AppendNil(o) } else { o, err = z.rc.MarshalMsg(o) if err != nil { return } } // string "curIndex" o = append(o, 0xa8, 0x63, 0x75, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78) o = msgp.AppendInt64(o, z.curIndex) // string "curPosInIndex" o = append(o, 0xad, 0x63, 0x75, 0x72, 0x50, 0x6f, 0x73, 0x49, 0x6e, 0x49, 0x6e, 0x64, 0x65, 0x78) o = msgp.AppendUint32(o, z.curPosInIndex) // string "curSeq" o = append(o, 0xa6, 0x63, 0x75, 0x72, 0x53, 0x65, 0x71) o = msgp.AppendInt64(o, z.curSeq) return }
// MarshalMsg implements msgp.Marshaler func (z *bitmapContainerShortIterator) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 2 // string "ptr" o = append(o, 0x82, 0xa3, 0x70, 0x74, 0x72) if z.ptr == nil { o = msgp.AppendNil(o) } else { // map header, size 2 // string "cardinality" o = append(o, 0x82, 0xab, 0x63, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79) o = msgp.AppendInt(o, z.ptr.cardinality) // string "bitmap" o = append(o, 0xa6, 0x62, 0x69, 0x74, 0x6d, 0x61, 0x70) o = msgp.AppendArrayHeader(o, uint32(len(z.ptr.bitmap))) for zwht := range z.ptr.bitmap { o = msgp.AppendUint64(o, z.ptr.bitmap[zwht]) } } // string "i" o = append(o, 0xa1, 0x69) o = msgp.AppendInt(o, z.i) return }