2020-10-28 16:18:35 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
// Code generated by github.com/tinylib/msgp DO NOT EDIT.
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/tinylib/msgp/msgp"
|
|
|
|
)
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *metacache) DecodeMsg(dc *msgp.Reader) (err error) {
|
|
|
|
var field []byte
|
|
|
|
_ = field
|
|
|
|
var zb0001 uint32
|
|
|
|
zb0001, err = dc.ReadMapHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0001 > 0 {
|
|
|
|
zb0001--
|
|
|
|
field, err = dc.ReadMapKeyPtr()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
2021-11-08 18:25:34 +00:00
|
|
|
case "end":
|
|
|
|
z.ended, err = dc.ReadTime()
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "ended")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "st":
|
|
|
|
z.started, err = dc.ReadTime()
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "started")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "lh":
|
|
|
|
z.lastHandout, err = dc.ReadTime()
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "lastHandout")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "u":
|
|
|
|
z.lastUpdate, err = dc.ReadTime()
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "lastUpdate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "b":
|
|
|
|
z.bucket, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "bucket")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2020-11-18 18:44:18 +00:00
|
|
|
case "flt":
|
|
|
|
z.filter, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "filter")
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "id":
|
|
|
|
z.id, err = dc.ReadString()
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "id")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
case "err":
|
|
|
|
z.error, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "error")
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "root":
|
|
|
|
z.root, err = dc.ReadString()
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "root")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "fnf":
|
|
|
|
z.fileNotFound, err = dc.ReadBool()
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "fileNotFound")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "stat":
|
|
|
|
{
|
|
|
|
var zb0002 uint8
|
|
|
|
zb0002, err = dc.ReadUint8()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "status")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.status = scanStatus(zb0002)
|
2020-10-28 16:18:35 +00:00
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "rec":
|
|
|
|
z.recursive, err = dc.ReadBool()
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "recursive")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
case "v":
|
|
|
|
z.dataVersion, err = dc.ReadUint8()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "dataVersion")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *metacache) EncodeMsg(en *msgp.Writer) (err error) {
|
2021-07-05 22:34:41 +00:00
|
|
|
// map header, size 13
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "end"
|
|
|
|
err = en.Append(0x8d, 0xa3, 0x65, 0x6e, 0x64)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteTime(z.ended)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "ended")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "st"
|
|
|
|
err = en.Append(0xa2, 0x73, 0x74)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteTime(z.started)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "started")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "lh"
|
|
|
|
err = en.Append(0xa2, 0x6c, 0x68)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteTime(z.lastHandout)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "lastHandout")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "u"
|
|
|
|
err = en.Append(0xa1, 0x75)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteTime(z.lastUpdate)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "lastUpdate")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "b"
|
|
|
|
err = en.Append(0xa1, 0x62)
|
2020-11-18 18:44:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteString(z.bucket)
|
2020-11-18 18:44:18 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "bucket")
|
2020-11-18 18:44:18 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "flt"
|
|
|
|
err = en.Append(0xa3, 0x66, 0x6c, 0x74)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteString(z.filter)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "filter")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "id"
|
|
|
|
err = en.Append(0xa2, 0x69, 0x64)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteString(z.id)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "id")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "err"
|
|
|
|
err = en.Append(0xa3, 0x65, 0x72, 0x72)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.error)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "error")
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "root"
|
|
|
|
err = en.Append(0xa4, 0x72, 0x6f, 0x6f, 0x74)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteString(z.root)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "root")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "fnf"
|
|
|
|
err = en.Append(0xa3, 0x66, 0x6e, 0x66)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteBool(z.fileNotFound)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "fileNotFound")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "stat"
|
|
|
|
err = en.Append(0xa4, 0x73, 0x74, 0x61, 0x74)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteUint8(uint8(z.status))
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "status")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
// write "rec"
|
|
|
|
err = en.Append(0xa3, 0x72, 0x65, 0x63)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
err = en.WriteBool(z.recursive)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "recursive")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "v"
|
|
|
|
err = en.Append(0xa1, 0x76)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteUint8(z.dataVersion)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "dataVersion")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *metacache) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
2021-07-05 22:34:41 +00:00
|
|
|
// map header, size 13
|
2021-11-08 18:25:34 +00:00
|
|
|
// string "end"
|
|
|
|
o = append(o, 0x8d, 0xa3, 0x65, 0x6e, 0x64)
|
|
|
|
o = msgp.AppendTime(o, z.ended)
|
|
|
|
// string "st"
|
|
|
|
o = append(o, 0xa2, 0x73, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.started)
|
|
|
|
// string "lh"
|
|
|
|
o = append(o, 0xa2, 0x6c, 0x68)
|
|
|
|
o = msgp.AppendTime(o, z.lastHandout)
|
|
|
|
// string "u"
|
|
|
|
o = append(o, 0xa1, 0x75)
|
|
|
|
o = msgp.AppendTime(o, z.lastUpdate)
|
2020-10-28 16:18:35 +00:00
|
|
|
// string "b"
|
|
|
|
o = append(o, 0xa1, 0x62)
|
|
|
|
o = msgp.AppendString(o, z.bucket)
|
2020-11-18 18:44:18 +00:00
|
|
|
// string "flt"
|
|
|
|
o = append(o, 0xa3, 0x66, 0x6c, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.filter)
|
2021-11-08 18:25:34 +00:00
|
|
|
// string "id"
|
|
|
|
o = append(o, 0xa2, 0x69, 0x64)
|
|
|
|
o = msgp.AppendString(o, z.id)
|
2020-10-28 16:18:35 +00:00
|
|
|
// string "err"
|
|
|
|
o = append(o, 0xa3, 0x65, 0x72, 0x72)
|
|
|
|
o = msgp.AppendString(o, z.error)
|
2021-11-08 18:25:34 +00:00
|
|
|
// string "root"
|
|
|
|
o = append(o, 0xa4, 0x72, 0x6f, 0x6f, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.root)
|
|
|
|
// string "fnf"
|
|
|
|
o = append(o, 0xa3, 0x66, 0x6e, 0x66)
|
|
|
|
o = msgp.AppendBool(o, z.fileNotFound)
|
|
|
|
// string "stat"
|
|
|
|
o = append(o, 0xa4, 0x73, 0x74, 0x61, 0x74)
|
|
|
|
o = msgp.AppendUint8(o, uint8(z.status))
|
|
|
|
// string "rec"
|
|
|
|
o = append(o, 0xa3, 0x72, 0x65, 0x63)
|
|
|
|
o = msgp.AppendBool(o, z.recursive)
|
2020-10-28 16:18:35 +00:00
|
|
|
// string "v"
|
|
|
|
o = append(o, 0xa1, 0x76)
|
|
|
|
o = msgp.AppendUint8(o, z.dataVersion)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *metacache) UnmarshalMsg(bts []byte) (o []byte, err error) {
|
|
|
|
var field []byte
|
|
|
|
_ = field
|
|
|
|
var zb0001 uint32
|
|
|
|
zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0001 > 0 {
|
|
|
|
zb0001--
|
|
|
|
field, bts, err = msgp.ReadMapKeyZC(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
2021-11-08 18:25:34 +00:00
|
|
|
case "end":
|
|
|
|
z.ended, bts, err = msgp.ReadTimeBytes(bts)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "ended")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "st":
|
|
|
|
z.started, bts, err = msgp.ReadTimeBytes(bts)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "started")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "lh":
|
|
|
|
z.lastHandout, bts, err = msgp.ReadTimeBytes(bts)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "lastHandout")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "u":
|
|
|
|
z.lastUpdate, bts, err = msgp.ReadTimeBytes(bts)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "lastUpdate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "b":
|
|
|
|
z.bucket, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "bucket")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2020-11-18 18:44:18 +00:00
|
|
|
case "flt":
|
|
|
|
z.filter, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "filter")
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "id":
|
|
|
|
z.id, bts, err = msgp.ReadStringBytes(bts)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "id")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
case "err":
|
|
|
|
z.error, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "error")
|
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "root":
|
|
|
|
z.root, bts, err = msgp.ReadStringBytes(bts)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "root")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "fnf":
|
|
|
|
z.fileNotFound, bts, err = msgp.ReadBoolBytes(bts)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "fileNotFound")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "stat":
|
|
|
|
{
|
|
|
|
var zb0002 uint8
|
|
|
|
zb0002, bts, err = msgp.ReadUint8Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "status")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.status = scanStatus(zb0002)
|
2020-10-28 16:18:35 +00:00
|
|
|
}
|
2021-11-08 18:25:34 +00:00
|
|
|
case "rec":
|
|
|
|
z.recursive, bts, err = msgp.ReadBoolBytes(bts)
|
2020-10-28 16:18:35 +00:00
|
|
|
if err != nil {
|
2021-11-08 18:25:34 +00:00
|
|
|
err = msgp.WrapError(err, "recursive")
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
case "v":
|
|
|
|
z.dataVersion, bts, err = msgp.ReadUint8Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "dataVersion")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
bts, err = msgp.Skip(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
o = bts
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
|
|
|
|
func (z *metacache) Msgsize() (s int) {
|
2021-11-08 18:25:34 +00:00
|
|
|
s = 1 + 4 + msgp.TimeSize + 3 + msgp.TimeSize + 3 + msgp.TimeSize + 2 + msgp.TimeSize + 2 + msgp.StringPrefixSize + len(z.bucket) + 4 + msgp.StringPrefixSize + len(z.filter) + 3 + msgp.StringPrefixSize + len(z.id) + 4 + msgp.StringPrefixSize + len(z.error) + 5 + msgp.StringPrefixSize + len(z.root) + 4 + msgp.BoolSize + 5 + msgp.Uint8Size + 4 + msgp.BoolSize + 2 + msgp.Uint8Size
|
2020-10-28 16:18:35 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *scanStatus) DecodeMsg(dc *msgp.Reader) (err error) {
|
|
|
|
{
|
|
|
|
var zb0001 uint8
|
|
|
|
zb0001, err = dc.ReadUint8()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
(*z) = scanStatus(zb0001)
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z scanStatus) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
err = en.WriteUint8(uint8(z))
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z scanStatus) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
o = msgp.AppendUint8(o, uint8(z))
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *scanStatus) UnmarshalMsg(bts []byte) (o []byte, err error) {
|
|
|
|
{
|
|
|
|
var zb0001 uint8
|
|
|
|
zb0001, bts, err = msgp.ReadUint8Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
(*z) = scanStatus(zb0001)
|
|
|
|
}
|
|
|
|
o = bts
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
|
|
|
|
func (z scanStatus) Msgsize() (s int) {
|
|
|
|
s = msgp.Uint8Size
|
|
|
|
return
|
|
|
|
}
|