blob: 41a74ea976f2b7fc1d585669aa313c63d0c641de (
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("buffer.VectorisedView", (*VectorisedView)(nil), state.Fns{Save: (*VectorisedView).save, Load: (*VectorisedView).load})
}
|