summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/buffer/buffer_state_autogen.go
blob: 8ce4b4c2c43130631ca9b3b7e68a668854ad4e26 (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
// automatically generated by stateify.

package buffer

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

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

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

func (v *VectorisedView) beforeSave() {}

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

func (v *VectorisedView) afterLoad() {}

func (v *VectorisedView) StateLoad(stateSourceObject state.Source) {
	stateSourceObject.Load(0, &v.views)
	stateSourceObject.Load(1, &v.size)
}

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