summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/buffer/buffer_state_autogen.go
blob: 67db6f4d9c911907d0237b155fa8715a2cc28072 (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 (x *VectorisedView) StateTypeName() string {
	return "pkg/tcpip/buffer.VectorisedView"
}

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

func (x *VectorisedView) beforeSave() {}

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

func (x *VectorisedView) afterLoad() {}

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

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