// 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 (l *fsLookup) StateTypeName() string { return "pkg/sentry/fsbridge.fsLookup" } func (l *fsLookup) StateFields() []string { return []string{ "mntns", "root", "workingDir", } } func (l *fsLookup) beforeSave() {} func (l *fsLookup) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.mntns) stateSinkObject.Save(1, &l.root) stateSinkObject.Save(2, &l.workingDir) } func (l *fsLookup) afterLoad() {} func (l *fsLookup) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.mntns) stateSourceObject.Load(1, &l.root) stateSourceObject.Load(2, &l.workingDir) } func (f *VFSFile) StateTypeName() string { return "pkg/sentry/fsbridge.VFSFile" } func (f *VFSFile) StateFields() []string { return []string{ "file", } } func (f *VFSFile) beforeSave() {} func (f *VFSFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.file) } func (f *VFSFile) afterLoad() {} func (f *VFSFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.file) } func (l *vfsLookup) StateTypeName() string { return "pkg/sentry/fsbridge.vfsLookup" } func (l *vfsLookup) StateFields() []string { return []string{ "mntns", "root", "workingDir", } } func (l *vfsLookup) beforeSave() {} func (l *vfsLookup) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.mntns) stateSinkObject.Save(1, &l.root) stateSinkObject.Save(2, &l.workingDir) } func (l *vfsLookup) afterLoad() {} func (l *vfsLookup) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.mntns) stateSourceObject.Load(1, &l.root) stateSourceObject.Load(2, &l.workingDir) } func init() { state.Register((*fsFile)(nil)) state.Register((*fsLookup)(nil)) state.Register((*VFSFile)(nil)) state.Register((*vfsLookup)(nil)) }