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

Method ReadData

go/fory/struct.go:2829–2838  ·  view source on GitHub ↗
(ctx *ReadContext, value reflect.Value)

Source from the content-addressed store, hash-verified

2827}
2828
2829func (s *skipStructSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
2830 // Skip all fields based on fieldDefs from remote TypeDef
2831 for _, fieldDef := range s.fieldDefs {
2832 isStructType := isStructFieldType(fieldDef.typeSpec)
2833 SkipFieldValueWithTypeFlag(ctx, fieldDef, fieldDef.trackRef, ctx.Compatible() && isStructType)
2834 if ctx.HasError() {
2835 return
2836 }
2837 }
2838}
2839
2840func (s *skipStructSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
2841 buf := ctx.Buffer()

Callers 1

ReadMethod · 0.95

Calls 4

isStructFieldTypeFunction · 0.85
CompatibleMethod · 0.45
HasErrorMethod · 0.45

Tested by

no test coverage detected