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

Method Read

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

Source from the content-addressed store, hash-verified

49}
50
51func (s boolSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
52 _ = hasGenerics // not used for primitive types
53 err := ctx.Err()
54 if refMode != RefModeNone {
55 if ctx.buffer.ReadInt8(err) == NullFlag {
56 return
57 }
58 }
59 if readType && !ctx.readExpectedTypeID(BOOL) {
60 return
61 }
62 if ctx.HasError() {
63 return
64 }
65 s.ReadData(ctx, value)
66}
67
68func (s boolSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) {
69 // typeInfo is already read, don't read it again

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