// automatically generated by stateify. package fsbridge import ( "gvisor.dev/gvisor/pkg/state" ) func (f *fsFile) StateTypeName() string { return "pkg/sentry/fsbridge.fsFile" } func (f *fsFile) StateFields() []string { return []string{ "file", } } func (f *fsFile) beforeSave() {} func (f *fsFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.file) } func (f *fsFile) afterLoad() {} func (f *fsFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.file) } func (f *fsLookup) StateTypeName() string { return "pkg/sentry/fsbridge.fsLookup" } func (f *fsLookup) StateFields() []string { return []string{ "mntns", "root", "workingDir", } } func (f *fsLookup) beforeSave() {} func (f *fsLookup) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.mntns) stateSinkObject.Save(1, &f.root) stateSinkObject.Save(2, &f.workingDir) } func (f *fsLookup) afterLoad() {} func (f *fsLookup) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.mntns) stateSourceObject.Load(1, &f.root) stateSourceObject.Load(2, &f.workingDir) } func (v *VFSFile) StateTypeName() string { return "pkg/sentry/fsbridge.VFSFile" } func (v *VFSFile) StateFields() []string { return []string{ "file", } } func (v *VFSFile) beforeSave() {} func (v *VFSFile) StateSave(stateSinkObject state.Sink) { v.beforeSave() stateSinkObject.Save(0, &v.file) } func (v *VFSFile) afterLoad() {} func (v *VFSFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &v.file) } func (v *vfsLookup) StateTypeName() string { return "pkg/sentry/fsbridge.vfsLookup" } func (v *vfsLookup) StateFields() []string { return []string{ "mntns", "root", "workingDir", } } func (v *vfsLookup) beforeSave() {} func (v *vfsLookup) StateSave(stateSinkObject state.Sink) { v.beforeSave() stateSinkObject.Save(0, &v.mntns) stateSinkObject.Save(1, &v.root) stateSinkObject.Save(2, &v.workingDir) } func (v *vfsLookup) afterLoad() {} func (v *vfsLookup) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &v.mntns) stateSourceObject.Load(1, &v.root) stateSourceObject.Load(2, &v.workingDir) } func init() { state.Register((*fsFile)(nil)) state.Register((*fsLookup)(nil)) state.Register((*VFSFile)(nil)) state.Register((*vfsLookup)(nil)) }