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