MCPcopy
hub / github.com/google/gvisor / SaverLoader

Interface SaverLoader

pkg/state/state.go:210–216  ·  view source on GitHub ↗

SaverLoader must be implemented by struct types.

Source from the content-addressed store, hash-verified

208
209// SaverLoader must be implemented by struct types.
210type SaverLoader interface {
211 // StateSave saves the state of the object to the given Map.
212 StateSave(Sink)
213
214 // StateLoad loads the state of the object.
215 StateLoad(context.Context, Source)
216}
217
218// Source is used for Type.StateLoad.
219type Source struct {

Callers 2

encodeStructMethod · 0.65
decodeStructMethod · 0.65

Implementers 9

truncatingUint8pkg/state/tests/integer.go
truncatingUint16pkg/state/tests/integer.go
truncatingUint32pkg/state/tests/integer.go
truncatingInt8pkg/state/tests/integer.go
truncatingInt16pkg/state/tests/integer.go
truncatingInt32pkg/state/tests/integer.go
truncatingFloat32pkg/state/tests/integer.go
truncatingComplex64pkg/state/tests/integer.go
fakerWithSaverLoaderpkg/state/tests/register_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…