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

Method Read

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

Source from the content-addressed store, hash-verified

698}
699
700func (s bfloat16Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
701 err := ctx.Err()
702 if refMode != RefModeNone {
703 if ctx.buffer.ReadInt8(err) == NullFlag {
704 return
705 }
706 }
707 if readType && !ctx.readExpectedTypeID(BFLOAT16) {
708 return
709 }
710 if ctx.HasError() {
711 return
712 }
713 s.ReadData(ctx, value)
714}
715
716func (s bfloat16Serializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) {
717 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