blob: b5277ffab036fcfcb7f7ddfc7da08fe006d4a698 (
plain)
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
|
// automatically generated by stateify.
package socket
import (
"gvisor.dev/gvisor/pkg/state"
)
func (to *SendReceiveTimeout) StateTypeName() string {
return "pkg/sentry/socket.SendReceiveTimeout"
}
func (to *SendReceiveTimeout) StateFields() []string {
return []string{
"send",
"recv",
}
}
func (to *SendReceiveTimeout) beforeSave() {}
func (to *SendReceiveTimeout) StateSave(stateSinkObject state.Sink) {
to.beforeSave()
stateSinkObject.Save(0, &to.send)
stateSinkObject.Save(1, &to.recv)
}
func (to *SendReceiveTimeout) afterLoad() {}
func (to *SendReceiveTimeout) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &to.send)
stateSourceObject.Load(1, &to.recv)
}
func init() {
state.Register((*SendReceiveTimeout)(nil))
}
|