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

Method ReadData

go/fory/decimal.go:89–95  ·  view source on GitHub ↗
(ctx *ReadContext, value reflect.Value)

Source from the content-addressed store, hash-verified

87}
88
89func (s decimalSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
90 scale, unscaled := readDecimalParts(ctx)
91 if ctx.HasError() {
92 return
93 }
94 value.Set(reflect.ValueOf(NewDecimal(unscaled, scale)))
95}
96
97func (s decimalSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) {
98 s.Read(ctx, refMode, false, false, value)

Callers 1

ReadMethod · 0.95

Calls 4

readDecimalPartsFunction · 0.85
NewDecimalFunction · 0.85
HasErrorMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected