// 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}) }