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

Method Read

go/fory/slice_primitive_list.go:147–157  ·  view source on GitHub ↗
(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)

Source from the content-addressed store, hash-verified

145}
146
147func (s primitiveListSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
148 done, typeID := readSliceRefAndType(ctx, refMode, readType, value)
149 if done || ctx.HasError() {
150 return
151 }
152 if readType && typeID != uint32(LIST) {
153 ctx.SetError(DeserializationErrorf("slice type mismatch: expected LIST (%d), got %d", LIST, typeID))
154 return
155 }
156 s.ReadData(ctx, value)
157}
158
159func (s primitiveListSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) {
160 s.Read(ctx, refMode, false, false, value)

Callers 1

ReadWithTypeInfoMethod · 0.95

Calls 6

ReadDataMethod · 0.95
readSliceRefAndTypeFunction · 0.85
DeserializationErrorfFunction · 0.85
uint32Function · 0.50
HasErrorMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected