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

Method Read

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

Source from the content-addressed store, hash-verified

325}
326
327func (s uintSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
328 err := ctx.Err()
329 if refMode != RefModeNone {
330 if ctx.buffer.ReadInt8(err) == NullFlag {
331 return
332 }
333 }
334 if readType && !ctx.readExpectedTypeID(VAR_UINT64) {
335 return
336 }
337 if ctx.HasError() {
338 return
339 }
340 s.ReadData(ctx, value)
341}
342
343func (s uintSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) {
344 s.Read(ctx, refMode, false, false, value)

Callers 1

ReadWithTypeInfoMethod · 0.95

Calls 5

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

Tested by

no test coverage detected