// automatically generated by stateify. package ilist import ( "gvisor.googlesource.com/gvisor/pkg/state" ) func (x *List) beforeSave() {} func (x *List) save(m state.Map) { x.beforeSave() m.Save("head", &x.head) m.Save("tail", &x.tail) } func (x *List) afterLoad() {} func (x *List) load(m state.Map) { m.Load("head", &x.head) m.Load("tail", &x.tail) } func (x *Entry) beforeSave() {} func (x *Entry) save(m state.Map) { x.beforeSave() m.Save("next", &x.next) m.Save("prev", &x.prev) } func (x *Entry) afterLoad() {} func (x *Entry) load(m state.Map) { m.Load("next", &x.next) m.Load("prev", &x.prev) } func init() { state.Register("ilist.List", (*List)(nil), state.Fns{Save: (*List).save, Load: (*List).load}) state.Register("ilist.Entry", (*Entry)(nil), state.Fns{Save: (*Entry).save, Load: (*Entry).load}) }