blob: 2719f6c410231ba1ac32aa4cfd27e19867d0c963 (
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
38
39
40
41
42
|
// automatically generated by stateify.
package ports
import (
"gvisor.dev/gvisor/pkg/state"
)
func (f *Flags) StateTypeName() string {
return "pkg/tcpip/ports.Flags"
}
func (f *Flags) StateFields() []string {
return []string{
"MostRecent",
"LoadBalanced",
"TupleOnly",
}
}
func (f *Flags) beforeSave() {}
// +checklocksignore
func (f *Flags) StateSave(stateSinkObject state.Sink) {
f.beforeSave()
stateSinkObject.Save(0, &f.MostRecent)
stateSinkObject.Save(1, &f.LoadBalanced)
stateSinkObject.Save(2, &f.TupleOnly)
}
func (f *Flags) afterLoad() {}
// +checklocksignore
func (f *Flags) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &f.MostRecent)
stateSourceObject.Load(1, &f.LoadBalanced)
stateSourceObject.Load(2, &f.TupleOnly)
}
func init() {
state.Register((*Flags)(nil))
}
|