summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/platform_state_autogen.go
blob: 28dcd1764d5260610dc088cd04312d2950a2c876 (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("platform.FileRange", (*FileRange)(nil), state.Fns{Save: (*FileRange).save, Load: (*FileRange).load})
}