summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/socket_state_autogen.go
blob: 2865933e9a74f747f0832bc617ad34d76068b635 (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 (x *SendReceiveTimeout) StateTypeName() string {
	return "pkg/sentry/socket.SendReceiveTimeout"
}

func (x *SendReceiveTimeout) StateFields() []string {
	return []string{
		"send",
		"recv",
	}
}

func (x *SendReceiveTimeout) beforeSave() {}

func (x *SendReceiveTimeout) StateSave(m state.Sink) {
	x.beforeSave()
	m.Save(0, &x.send)
	m.Save(1, &x.recv)
}

func (x *SendReceiveTimeout) afterLoad() {}

func (x *SendReceiveTimeout) StateLoad(m state.Source) {
	m.Load(0, &x.send)
	m.Load(1, &x.recv)
}

func init() {
	state.Register((*SendReceiveTimeout)(nil))
}