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

Method ReadData

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

Source from the content-addressed store, hash-verified

1006}
1007
1008func (s int32Int32MapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
1009 if value.IsNil() {
1010 value.Set(reflect.MakeMap(value.Type()))
1011 }
1012 ctx.RefResolver().Reference(value)
1013 result := readMapInt32Int32(ctx)
1014 value.Set(reflect.ValueOf(result))
1015}
1016
1017func (s int32Int32MapSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
1018 done := readMapRefAndType(ctx, refMode, readType, value)

Callers 1

ReadMethod · 0.95

Calls 5

readMapInt32Int32Function · 0.85
SetMethod · 0.45
TypeMethod · 0.45
ReferenceMethod · 0.45
RefResolverMethod · 0.45

Tested by

no test coverage detected