blob: 132b27a56ac01c4d035b152bfd999a917358aebb (
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
|
// automatically generated by stateify.
package bitmap
import (
"gvisor.dev/gvisor/pkg/state"
)
func (b *Bitmap) StateTypeName() string {
return "pkg/bitmap.Bitmap"
}
func (b *Bitmap) StateFields() []string {
return []string{
"numOnes",
"bitBlock",
}
}
func (b *Bitmap) beforeSave() {}
// +checklocksignore
func (b *Bitmap) StateSave(stateSinkObject state.Sink) {
b.beforeSave()
stateSinkObject.Save(0, &b.numOnes)
stateSinkObject.Save(1, &b.bitBlock)
}
func (b *Bitmap) afterLoad() {}
// +checklocksignore
func (b *Bitmap) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &b.numOnes)
stateSourceObject.Load(1, &b.bitBlock)
}
func init() {
state.Register((*Bitmap)(nil))
}
|