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

Method Read

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

Source from the content-addressed store, hash-verified

188}
189
190func (s uint16Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
191 _ = hasGenerics
192 err := ctx.Err()
193 if refMode != RefModeNone {
194 if ctx.buffer.ReadInt8(err) == NullFlag {
195 return
196 }
197 }
198 if readType && !ctx.readExpectedTypeID(UINT16) {
199 return
200 }
201 if ctx.HasError() {
202 return
203 }
204 s.ReadData(ctx, value)
205}
206
207func (s uint16Serializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) {
208 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