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

package buffer

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

func (x *VectorisedView) beforeSave() {}
func (x *VectorisedView) save(m state.Map) {
	x.beforeSave()
	m.Save("views", &x.views)
	m.Save("size", &x.size)
}

func (x *VectorisedView) afterLoad() {}
func (x *VectorisedView) load(m state.Map) {
	m.Load("views", &x.views)
	m.Load("size", &x.size)
}

func init() {
	state.Register("pkg/tcpip/buffer.VectorisedView", (*VectorisedView)(nil), state.Fns{Save: (*VectorisedView).save, Load: (*VectorisedView).load})
}