github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/sentry/arch/arch_amd64_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 //go:build amd64 && amd64 && amd64 4 // +build amd64,amd64,amd64 5 6 package arch 7 8 import ( 9 "github.com/nicocha30/gvisor-ligolo/pkg/state" 10 ) 11 12 func (c *Context64) StateTypeName() string { 13 return "pkg/sentry/arch.Context64" 14 } 15 16 func (c *Context64) StateFields() []string { 17 return []string{ 18 "State", 19 } 20 } 21 22 func (c *Context64) beforeSave() {} 23 24 // +checklocksignore 25 func (c *Context64) StateSave(stateSinkObject state.Sink) { 26 c.beforeSave() 27 stateSinkObject.Save(0, &c.State) 28 } 29 30 func (c *Context64) afterLoad() {} 31 32 // +checklocksignore 33 func (c *Context64) StateLoad(stateSourceObject state.Source) { 34 stateSourceObject.Load(0, &c.State) 35 } 36 37 func init() { 38 state.Register((*Context64)(nil)) 39 }