blob: e09c161ca5d747029cd2170d8ac64d78a7a5994c (
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 (s *SendReceiveTimeout) StateTypeName() string {
return "pkg/sentry/socket.SendReceiveTimeout"
}
func (s *SendReceiveTimeout) StateFields() []string {
return []string{
"send",
"recv",
}
}
func (s *SendReceiveTimeout) beforeSave() {}
func (s *SendReceiveTimeout) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
stateSinkObject.Save(0, &s.send)
stateSinkObject.Save(1, &s.recv)
}
func (s *SendReceiveTimeout) afterLoad() {}
func (s *SendReceiveTimeout) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &s.send)
stateSourceObject.Load(1, &s.recv)
}
func init() {
state.Register((*SendReceiveTimeout)(nil))
}
|