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

Method Read

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

Source from the content-addressed store, hash-verified

203}
204
205func (s encodedUint32Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
206 _ = hasGenerics
207 err := ctx.Err()
208 if refMode != RefModeNone {
209 if ctx.buffer.ReadInt8(err) == NullFlag {
210 return
211 }
212 }
213 if readType {
214 _ = ctx.buffer.ReadUint8(err)
215 }
216 if ctx.HasError() {
217 return
218 }
219 s.ReadData(ctx, value)
220}
221
222func (s encodedUint32Serializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) {
223 s.Read(ctx, refMode, false, false, value)

Callers 1

ReadWithTypeInfoMethod · 0.95

Calls 5

ReadDataMethod · 0.95
ReadUint8Method · 0.80
ErrMethod · 0.45
ReadInt8Method · 0.45
HasErrorMethod · 0.45

Tested by

no test coverage detected