// automatically generated by stateify. package usermem import ( "gvisor.dev/gvisor/pkg/state" ) func (x *AccessType) StateTypeName() string { return "pkg/usermem.AccessType" } func (x *AccessType) StateFields() []string { return []string{ "Read", "Write", "Execute", } } func (x *AccessType) beforeSave() {} func (x *AccessType) StateSave(m state.Sink) { x.beforeSave() m.Save(0, &x.Read) m.Save(1, &x.Write) m.Save(2, &x.Execute) } func (x *AccessType) afterLoad() {} func (x *AccessType) StateLoad(m state.Source) { m.Load(0, &x.Read) m.Load(1, &x.Write) m.Load(2, &x.Execute) } func (x *Addr) StateTypeName() string { return "pkg/usermem.Addr" } func (x *Addr) StateFields() []string { return nil } func (x *AddrRange) StateTypeName() string { return "pkg/usermem.AddrRange" } func (x *AddrRange) StateFields() []string { return []string{ "Start", "End", } } func (x *AddrRange) beforeSave() {} func (x *AddrRange) StateSave(m state.Sink) { x.beforeSave() m.Save(0, &x.Start) m.Save(1, &x.End) } func (x *AddrRange) afterLoad() {} func (x *AddrRange) StateLoad(m state.Source) { m.Load(0, &x.Start) m.Load(1, &x.End) } func init() { state.Register((*AccessType)(nil)) state.Register((*Addr)(nil)) state.Register((*AddrRange)(nil)) }