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

Method save

pkg/state/encode.go:475–478  ·  view source on GitHub ↗

save is called by the public methods on Sink.

(slot int, obj reflect.Value)

Source from the content-addressed store, hash-verified

473
474// save is called by the public methods on Sink.
475func (oe *objectEncoder) save(slot int, obj reflect.Value) {
476 fieldValue := oe.encoded.Field(slot)
477 oe.es.encodeObject(obj, encodeDefault, fieldValue)
478}
479
480// encodeStruct encodes a composite object.
481func (es *encodeState) encodeStruct(obj reflect.Value, dest *wire.Object) {

Callers

nothing calls this directly

Calls 2

FieldMethod · 0.80
encodeObjectMethod · 0.80

Tested by

no test coverage detected