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

Method Read

go/fory/map.go:281–286  ·  view source on GitHub ↗

Read handles ref tracking and type reading, then delegates to ReadData

(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)

Source from the content-addressed store, hash-verified

279
280// Read handles ref tracking and type reading, then delegates to ReadData
281func (s mapSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
282 if readMapRefAndType(ctx, refMode, readType, value) || ctx.HasError() {
283 return
284 }
285 s.ReadData(ctx, value)
286}
287
288// ReadData deserializes map data using chunk protocol
289func (s mapSerializer) ReadData(ctx *ReadContext, value reflect.Value) {

Callers 1

ReadWithTypeInfoMethod · 0.95

Calls 3

ReadDataMethod · 0.95
readMapRefAndTypeFunction · 0.85
HasErrorMethod · 0.45

Tested by

no test coverage detected