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

Method Read

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

Source from the content-addressed store, hash-verified

262}
263
264func (s encodedInt64Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
265 _ = hasGenerics
266 err := ctx.Err()
267 if refMode != RefModeNone {
268 if ctx.buffer.ReadInt8(err) == NullFlag {
269 return
270 }
271 }
272 if readType {
273 _ = ctx.buffer.ReadUint8(err)
274 }
275 if ctx.HasError() {
276 return
277 }
278 s.ReadData(ctx, value)
279}
280
281func (s encodedInt64Serializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) {
282 s.Read(ctx, refMode, false, false, value)

Callers 1

ReadWithTypeInfoMethod · 0.95

Calls 5

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

Tested by

no test coverage detected