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

Method ReadData

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

Source from the content-addressed store, hash-verified

866}
867
868func (s stringInt64MapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
869 if value.IsNil() {
870 value.Set(reflect.MakeMap(value.Type()))
871 }
872 ctx.RefResolver().Reference(value)
873 result := readMapStringInt64(ctx)
874 value.Set(reflect.ValueOf(result))
875}
876
877func (s stringInt64MapSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
878 done := readMapRefAndType(ctx, refMode, readType, value)

Callers 1

ReadMethod · 0.95

Calls 5

readMapStringInt64Function · 0.85
SetMethod · 0.45
TypeMethod · 0.45
ReferenceMethod · 0.45
RefResolverMethod · 0.45

Tested by

no test coverage detected