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
|
// automatically generated by stateify.
package epsocket
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *SocketOperations) beforeSave() {}
func (x *SocketOperations) save(m state.Map) {
x.beforeSave()
m.Save("SendReceiveTimeout", &x.SendReceiveTimeout)
m.Save("Queue", &x.Queue)
m.Save("family", &x.family)
m.Save("Endpoint", &x.Endpoint)
m.Save("skType", &x.skType)
m.Save("protocol", &x.protocol)
m.Save("readView", &x.readView)
m.Save("readCM", &x.readCM)
m.Save("sender", &x.sender)
m.Save("sockOptTimestamp", &x.sockOptTimestamp)
m.Save("timestampValid", &x.timestampValid)
m.Save("timestampNS", &x.timestampNS)
m.Save("sockOptInq", &x.sockOptInq)
}
func (x *SocketOperations) afterLoad() {}
func (x *SocketOperations) load(m state.Map) {
m.Load("SendReceiveTimeout", &x.SendReceiveTimeout)
m.Load("Queue", &x.Queue)
m.Load("family", &x.family)
m.Load("Endpoint", &x.Endpoint)
m.Load("skType", &x.skType)
m.Load("protocol", &x.protocol)
m.Load("readView", &x.readView)
m.Load("readCM", &x.readCM)
m.Load("sender", &x.sender)
m.Load("sockOptTimestamp", &x.sockOptTimestamp)
m.Load("timestampValid", &x.timestampValid)
m.Load("timestampNS", &x.timestampNS)
m.Load("sockOptInq", &x.sockOptInq)
}
func (x *Stack) beforeSave() {}
func (x *Stack) save(m state.Map) {
x.beforeSave()
}
func (x *Stack) load(m state.Map) {
m.AfterLoad(x.afterLoad)
}
func init() {
state.Register("epsocket.SocketOperations", (*SocketOperations)(nil), state.Fns{Save: (*SocketOperations).save, Load: (*SocketOperations).load})
state.Register("epsocket.Stack", (*Stack)(nil), state.Fns{Save: (*Stack).save, Load: (*Stack).load})
}
|