// 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)) }