summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/buffer/buffer_state_autogen.go
blob: 51bfbff8a2f94121fbd310f23a5b8d54a5709f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// automatically generated by stateify.

package buffer

import (
	"gvisor.dev/gvisor/pkg/state"
)

func (vv *VectorisedView) StateTypeName() string {
	return "pkg/tcpip/buffer.VectorisedView"
}

func (vv *VectorisedView) StateFields() []string {
	return []string{
		"views",
		"size",
	}
}

func (vv *VectorisedView) beforeSave() {}

// +checklocksignore
func (vv *VectorisedView) StateSave(stateSinkObject state.Sink) {
	vv.beforeSave()
	stateSinkObject.Save(0, &vv.views)
	stateSinkObject.Save(1, &vv.size)
}

func (vv *VectorisedView) afterLoad() {}

// +checklocksignore
func (vv *VectorisedView) StateLoad(stateSourceObject state.Source) {
	stateSourceObject.Load(0, &vv.views)
	stateSourceObject.Load(1, &vv.size)
}

func init() {
	state.Register((*VectorisedView)(nil))
}