blob: 912a99cae3ef0e6e43c5a13a021b90af4c0052b5 (
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
|
// automatically generated by stateify.
package limits
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *Limit) beforeSave() {}
func (x *Limit) save(m state.Map) {
x.beforeSave()
m.Save("Cur", &x.Cur)
m.Save("Max", &x.Max)
}
func (x *Limit) afterLoad() {}
func (x *Limit) load(m state.Map) {
m.Load("Cur", &x.Cur)
m.Load("Max", &x.Max)
}
func (x *LimitSet) beforeSave() {}
func (x *LimitSet) save(m state.Map) {
x.beforeSave()
m.Save("data", &x.data)
}
func (x *LimitSet) afterLoad() {}
func (x *LimitSet) load(m state.Map) {
m.Load("data", &x.data)
}
func init() {
state.Register("limits.Limit", (*Limit)(nil), state.Fns{Save: (*Limit).save, Load: (*Limit).load})
state.Register("limits.LimitSet", (*LimitSet)(nil), state.Fns{Save: (*LimitSet).save, Load: (*LimitSet).load})
}
|