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

Method ReadData

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

Source from the content-addressed store, hash-verified

1041}
1042
1043func (s int64Int64MapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
1044 if value.IsNil() {
1045 value.Set(reflect.MakeMap(value.Type()))
1046 }
1047 ctx.RefResolver().Reference(value)
1048 result := readMapInt64Int64(ctx)
1049 value.Set(reflect.ValueOf(result))
1050}
1051
1052func (s int64Int64MapSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
1053 done := readMapRefAndType(ctx, refMode, readType, value)

Callers 1

ReadMethod · 0.95

Calls 5

readMapInt64Int64Function · 0.85
SetMethod · 0.45
TypeMethod · 0.45
ReferenceMethod · 0.45
RefResolverMethod · 0.45

Tested by

no test coverage detected