blob: 7e51a28e80522c669c017b261438e4299123bbc3 (
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.googlesource.com/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})
}
|