MCPcopy Create free account
hub / github.com/apache/fory / ReadData

Method ReadData

go/fory/map_primitive.go:903–910  ·  view source on GitHub ↗
(ctx *ReadContext, value reflect.Value)

Source from the content-addressed store, hash-verified

901}
902
903func (s stringIntMapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
904 if value.IsNil() {
905 value.Set(reflect.MakeMap(value.Type()))
906 }
907 ctx.RefResolver().Reference(value)
908 result := readMapStringInt(ctx)
909 value.Set(reflect.ValueOf(result))
910}
911
912func (s stringIntMapSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
913 done := readMapRefAndType(ctx, refMode, readType, value)

Callers 1

ReadMethod · 0.95

Calls 5

readMapStringIntFunction · 0.85
SetMethod · 0.45
TypeMethod · 0.45
ReferenceMethod · 0.45
RefResolverMethod · 0.45

Tested by

no test coverage detected