// automatically generated by stateify.

package memxattr

import (
	"context"

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

func (x *SimpleExtendedAttributes) StateTypeName() string {
	return "pkg/sentry/vfs/memxattr.SimpleExtendedAttributes"
}

func (x *SimpleExtendedAttributes) StateFields() []string {
	return []string{
		"xattrs",
	}
}

func (x *SimpleExtendedAttributes) beforeSave() {}

// +checklocksignore
func (x *SimpleExtendedAttributes) StateSave(stateSinkObject state.Sink) {
	x.beforeSave()
	stateSinkObject.Save(0, &x.xattrs)
}

func (x *SimpleExtendedAttributes) afterLoad(context.Context) {}

// +checklocksignore
func (x *SimpleExtendedAttributes) StateLoad(ctx context.Context, stateSourceObject state.Source) {
	stateSourceObject.Load(0, &x.xattrs)
}

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