blob: 7597195ef5d0775f0d4cc243e32c2176fa07a2b3 (
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
|
// automatically generated by stateify.
package platform
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *FileRange) beforeSave() {}
func (x *FileRange) save(m state.Map) {
x.beforeSave()
m.Save("Start", &x.Start)
m.Save("End", &x.End)
}
func (x *FileRange) afterLoad() {}
func (x *FileRange) load(m state.Map) {
m.Load("Start", &x.Start)
m.Load("End", &x.End)
}
func init() {
state.Register("pkg/sentry/platform.FileRange", (*FileRange)(nil), state.Fns{Save: (*FileRange).save, Load: (*FileRange).load})
}
|