-
Notifications
You must be signed in to change notification settings - Fork 3
/
archive_gen.go
59 lines (52 loc) · 1.18 KB
/
archive_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package schema
// Code generated by github.com/tinylib/msgp DO NOT EDIT.
import (
"github.com/tinylib/msgp/msgp"
)
// DecodeMsg implements msgp.Decodable
func (z *Archive) DecodeMsg(dc *msgp.Reader) (err error) {
{
var zb0001 uint16
zb0001, err = dc.ReadUint16()
if err != nil {
err = msgp.WrapError(err)
return
}
(*z) = Archive(zb0001)
}
return
}
// EncodeMsg implements msgp.Encodable
func (z Archive) EncodeMsg(en *msgp.Writer) (err error) {
err = en.WriteUint16(uint16(z))
if err != nil {
err = msgp.WrapError(err)
return
}
return
}
// MarshalMsg implements msgp.Marshaler
func (z Archive) MarshalMsg(b []byte) (o []byte, err error) {
o = msgp.Require(b, z.Msgsize())
o = msgp.AppendUint16(o, uint16(z))
return
}
// UnmarshalMsg implements msgp.Unmarshaler
func (z *Archive) UnmarshalMsg(bts []byte) (o []byte, err error) {
{
var zb0001 uint16
zb0001, bts, err = msgp.ReadUint16Bytes(bts)
if err != nil {
err = msgp.WrapError(err)
return
}
(*z) = Archive(zb0001)
}
o = bts
return
}
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z Archive) Msgsize() (s int) {
s = msgp.Uint16Size
return
}