Debian Codegraph @

tcpip/transport/internal/noop/noop_state_autogen.go

raw symbols SCIP
1 // automatically generated by stateify.
2
3 package noop
4
5 import (
6 "inet.af/netstack/state"
7 )
8
9 func (ep *endpoint) StateTypeName() string {
10 return "pkg/tcpip/transport/internal/noop.endpoint"
11 }
12
13 func (ep *endpoint) StateFields() []string {
14 return []string{
15 "DefaultSocketOptionsHandler",
16 "ops",
17 }
18 }
19
20 func (ep *endpoint) beforeSave() {}
21
22 // +checklocksignore
23 func (ep *endpoint) StateSave(stateSinkObject state.Sink) {
24 ep.beforeSave()
25 stateSinkObject.Save(0, &ep.DefaultSocketOptionsHandler)
26 stateSinkObject.Save(1, &ep.ops)
27 }
28
29 func (ep *endpoint) afterLoad() {}
30
31 // +checklocksignore
32 func (ep *endpoint) StateLoad(stateSourceObject state.Source) {
33 stateSourceObject.Load(0, &ep.DefaultSocketOptionsHandler)
34 stateSourceObject.Load(1, &ep.ops)
35 }
36
37 func init() {
38 state.Register((*endpoint)(nil))
39 }