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

Method ReadData

go/fory/field_serializer.go:311–321  ·  view source on GitHub ↗
(ctx *ReadContext, value reflect.Value)

Source from the content-addressed store, hash-verified

309}
310
311func (s encodedUint64Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
312 err := ctx.Err()
313 switch s.typeID {
314 case UINT64:
315 value.SetUint(ctx.buffer.ReadUint64(err))
316 case TAGGED_UINT64:
317 value.SetUint(ctx.buffer.ReadTaggedUint64(err))
318 default:
319 value.SetUint(ctx.buffer.ReadVarUint64(err))
320 }
321}
322
323func (s encodedUint64Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
324 _ = hasGenerics

Callers 1

ReadMethod · 0.95

Calls 4

ReadUint64Method · 0.80
ReadTaggedUint64Method · 0.80
ReadVarUint64Method · 0.80
ErrMethod · 0.45

Tested by

no test coverage detected