2021-04-18 15:41:13 -04:00
|
|
|
// Copyright (c) 2015-2021 MinIO, Inc.
|
|
|
|
//
|
|
|
|
// This file is part of MinIO Object Storage stack
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2020-10-28 12:18:35 -04: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) {
|
|
|
|
case "id":
|
|
|
|
z.id, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "id")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "b":
|
|
|
|
z.bucket, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "root":
|
|
|
|
z.root, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "root")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "rec":
|
|
|
|
z.recursive, err = dc.ReadBool()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "recursive")
|
|
|
|
return
|
|
|
|
}
|
2020-11-18 13:44:18 -05:00
|
|
|
case "flt":
|
|
|
|
z.filter, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "filter")
|
|
|
|
return
|
|
|
|
}
|
2020-10-28 12:18:35 -04:00
|
|
|
case "stat":
|
|
|
|
{
|
|
|
|
var zb0002 uint8
|
|
|
|
zb0002, err = dc.ReadUint8()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "status")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.status = scanStatus(zb0002)
|
|
|
|
}
|
|
|
|
case "fnf":
|
|
|
|
z.fileNotFound, err = dc.ReadBool()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "fileNotFound")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "err":
|
|
|
|
z.error, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "error")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "st":
|
|
|
|
z.started, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "started")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "end":
|
|
|
|
z.ended, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ended")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "u":
|
|
|
|
z.lastUpdate, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "lastUpdate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "lh":
|
|
|
|
z.lastHandout, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "lastHandout")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "stc":
|
|
|
|
z.startedCycle, err = dc.ReadUint64()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "startedCycle")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "endc":
|
|
|
|
z.endedCycle, err = dc.ReadUint64()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "endedCycle")
|
|
|
|
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) {
|
2020-11-18 13:44:18 -05:00
|
|
|
// map header, size 15
|
2020-10-28 12:18:35 -04:00
|
|
|
// write "id"
|
2020-11-18 13:44:18 -05:00
|
|
|
err = en.Append(0x8f, 0xa2, 0x69, 0x64)
|
2020-10-28 12:18:35 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.id)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "id")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "b"
|
|
|
|
err = en.Append(0xa1, 0x62)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.bucket)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "root"
|
|
|
|
err = en.Append(0xa4, 0x72, 0x6f, 0x6f, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.root)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "root")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "rec"
|
|
|
|
err = en.Append(0xa3, 0x72, 0x65, 0x63)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBool(z.recursive)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "recursive")
|
|
|
|
return
|
|
|
|
}
|
2020-11-18 13:44:18 -05:00
|
|
|
// write "flt"
|
|
|
|
err = en.Append(0xa3, 0x66, 0x6c, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.filter)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "filter")
|
|
|
|
return
|
|
|
|
}
|
2020-10-28 12:18:35 -04:00
|
|
|
// write "stat"
|
|
|
|
err = en.Append(0xa4, 0x73, 0x74, 0x61, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteUint8(uint8(z.status))
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "status")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "fnf"
|
|
|
|
err = en.Append(0xa3, 0x66, 0x6e, 0x66)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBool(z.fileNotFound)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "fileNotFound")
|
|
|
|
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
|
|
|
|
}
|
|
|
|
// write "st"
|
|
|
|
err = en.Append(0xa2, 0x73, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.started)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "started")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "end"
|
|
|
|
err = en.Append(0xa3, 0x65, 0x6e, 0x64)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.ended)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ended")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "u"
|
|
|
|
err = en.Append(0xa1, 0x75)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.lastUpdate)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "lastUpdate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "lh"
|
|
|
|
err = en.Append(0xa2, 0x6c, 0x68)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.lastHandout)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "lastHandout")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "stc"
|
|
|
|
err = en.Append(0xa3, 0x73, 0x74, 0x63)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteUint64(z.startedCycle)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "startedCycle")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "endc"
|
|
|
|
err = en.Append(0xa4, 0x65, 0x6e, 0x64, 0x63)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteUint64(z.endedCycle)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "endedCycle")
|
|
|
|
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())
|
2020-11-18 13:44:18 -05:00
|
|
|
// map header, size 15
|
2020-10-28 12:18:35 -04:00
|
|
|
// string "id"
|
2020-11-18 13:44:18 -05:00
|
|
|
o = append(o, 0x8f, 0xa2, 0x69, 0x64)
|
2020-10-28 12:18:35 -04:00
|
|
|
o = msgp.AppendString(o, z.id)
|
|
|
|
// string "b"
|
|
|
|
o = append(o, 0xa1, 0x62)
|
|
|
|
o = msgp.AppendString(o, z.bucket)
|
|
|
|
// string "root"
|
|
|
|
o = append(o, 0xa4, 0x72, 0x6f, 0x6f, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.root)
|
|
|
|
// string "rec"
|
|
|
|
o = append(o, 0xa3, 0x72, 0x65, 0x63)
|
|
|
|
o = msgp.AppendBool(o, z.recursive)
|
2020-11-18 13:44:18 -05:00
|
|
|
// string "flt"
|
|
|
|
o = append(o, 0xa3, 0x66, 0x6c, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.filter)
|
2020-10-28 12:18:35 -04:00
|
|
|
// string "stat"
|
|
|
|
o = append(o, 0xa4, 0x73, 0x74, 0x61, 0x74)
|
|
|
|
o = msgp.AppendUint8(o, uint8(z.status))
|
|
|
|
// string "fnf"
|
|
|
|
o = append(o, 0xa3, 0x66, 0x6e, 0x66)
|
|
|
|
o = msgp.AppendBool(o, z.fileNotFound)
|
|
|
|
// string "err"
|
|
|
|
o = append(o, 0xa3, 0x65, 0x72, 0x72)
|
|
|
|
o = msgp.AppendString(o, z.error)
|
|
|
|
// string "st"
|
|
|
|
o = append(o, 0xa2, 0x73, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.started)
|
|
|
|
// string "end"
|
|
|
|
o = append(o, 0xa3, 0x65, 0x6e, 0x64)
|
|
|
|
o = msgp.AppendTime(o, z.ended)
|
|
|
|
// string "u"
|
|
|
|
o = append(o, 0xa1, 0x75)
|
|
|
|
o = msgp.AppendTime(o, z.lastUpdate)
|
|
|
|
// string "lh"
|
|
|
|
o = append(o, 0xa2, 0x6c, 0x68)
|
|
|
|
o = msgp.AppendTime(o, z.lastHandout)
|
|
|
|
// string "stc"
|
|
|
|
o = append(o, 0xa3, 0x73, 0x74, 0x63)
|
|
|
|
o = msgp.AppendUint64(o, z.startedCycle)
|
|
|
|
// string "endc"
|
|
|
|
o = append(o, 0xa4, 0x65, 0x6e, 0x64, 0x63)
|
|
|
|
o = msgp.AppendUint64(o, z.endedCycle)
|
|
|
|
// 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) {
|
|
|
|
case "id":
|
|
|
|
z.id, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "id")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "b":
|
|
|
|
z.bucket, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "root":
|
|
|
|
z.root, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "root")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "rec":
|
|
|
|
z.recursive, bts, err = msgp.ReadBoolBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "recursive")
|
|
|
|
return
|
|
|
|
}
|
2020-11-18 13:44:18 -05:00
|
|
|
case "flt":
|
|
|
|
z.filter, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "filter")
|
|
|
|
return
|
|
|
|
}
|
2020-10-28 12:18:35 -04: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)
|
|
|
|
}
|
|
|
|
case "fnf":
|
|
|
|
z.fileNotFound, bts, err = msgp.ReadBoolBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "fileNotFound")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "err":
|
|
|
|
z.error, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "error")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "st":
|
|
|
|
z.started, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "started")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "end":
|
|
|
|
z.ended, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ended")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "u":
|
|
|
|
z.lastUpdate, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "lastUpdate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "lh":
|
|
|
|
z.lastHandout, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "lastHandout")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "stc":
|
|
|
|
z.startedCycle, bts, err = msgp.ReadUint64Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "startedCycle")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "endc":
|
|
|
|
z.endedCycle, bts, err = msgp.ReadUint64Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "endedCycle")
|
|
|
|
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) {
|
2020-11-18 13:44:18 -05:00
|
|
|
s = 1 + 3 + msgp.StringPrefixSize + len(z.id) + 2 + msgp.StringPrefixSize + len(z.bucket) + 5 + msgp.StringPrefixSize + len(z.root) + 4 + msgp.BoolSize + 4 + msgp.StringPrefixSize + len(z.filter) + 5 + msgp.Uint8Size + 4 + msgp.BoolSize + 4 + msgp.StringPrefixSize + len(z.error) + 3 + msgp.TimeSize + 4 + msgp.TimeSize + 2 + msgp.TimeSize + 3 + msgp.TimeSize + 4 + msgp.Uint64Size + 5 + msgp.Uint64Size + 2 + msgp.Uint8Size
|
2020-10-28 12:18:35 -04: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
|
|
|
|
}
|