// automatically generated by stateify. package socket import ( "gvisor.dev/gvisor/pkg/state" ) func (to *SendReceiveTimeout) StateTypeName() string { return "pkg/sentry/socket.SendReceiveTimeout" } func (to *SendReceiveTimeout) StateFields() []string { return []string{ "send", "recv", } } func (to *SendReceiveTimeout) beforeSave() {} func (to *SendReceiveTimeout) StateSave(stateSinkObject state.Sink) { to.beforeSave() stateSinkObject.Save(0, &to.send) stateSinkObject.Save(1, &to.recv) } func (to *SendReceiveTimeout) afterLoad() {} func (to *SendReceiveTimeout) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &to.send) stateSourceObject.Load(1, &to.recv) } func init() { state.Register((*SendReceiveTimeout)(nil)) }