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