// automatically generated by stateify. // +build arm64 package cpuid import ( "gvisor.dev/gvisor/pkg/state" ) func (f *FeatureSet) StateTypeName() string { return "pkg/cpuid.FeatureSet" } func (f *FeatureSet) StateFields() []string { return []string{ "Set", "CPUImplementer", "CPUArchitecture", "CPUVariant", "CPUPartnum", "CPURevision", } } func (f *FeatureSet) beforeSave() {} func (f *FeatureSet) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.Set) stateSinkObject.Save(1, &f.CPUImplementer) stateSinkObject.Save(2, &f.CPUArchitecture) stateSinkObject.Save(3, &f.CPUVariant) stateSinkObject.Save(4, &f.CPUPartnum) stateSinkObject.Save(5, &f.CPURevision) } func (f *FeatureSet) afterLoad() {} func (f *FeatureSet) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.Set) stateSourceObject.Load(1, &f.CPUImplementer) stateSourceObject.Load(2, &f.CPUArchitecture) stateSourceObject.Load(3, &f.CPUVariant) stateSourceObject.Load(4, &f.CPUPartnum) stateSourceObject.Load(5, &f.CPURevision) } func init() { state.Register((*FeatureSet)(nil)) }