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

Method ReadData

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

Source from the content-addressed store, hash-verified

936}
937
938func (s stringFloat64MapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
939 if value.IsNil() {
940 value.Set(reflect.MakeMap(value.Type()))
941 }
942 ctx.RefResolver().Reference(value)
943 result := readMapStringFloat64(ctx)
944 value.Set(reflect.ValueOf(result))
945}
946
947func (s stringFloat64MapSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
948 done := readMapRefAndType(ctx, refMode, readType, value)

Callers 1

ReadMethod · 0.95

Calls 5

readMapStringFloat64Function · 0.85
SetMethod · 0.45
TypeMethod · 0.45
ReferenceMethod · 0.45
RefResolverMethod · 0.45

Tested by

no test coverage detected