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

Method ReadData

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

Source from the content-addressed store, hash-verified

250}
251
252func (s encodedInt64Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
253 err := ctx.Err()
254 switch s.typeID {
255 case INT64:
256 value.SetInt(ctx.buffer.ReadInt64(err))
257 case TAGGED_INT64:
258 value.SetInt(ctx.buffer.ReadTaggedInt64(err))
259 default:
260 value.SetInt(ctx.buffer.ReadVarint64(err))
261 }
262}
263
264func (s encodedInt64Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
265 _ = hasGenerics

Callers 1

ReadMethod · 0.95

Calls 4

ErrMethod · 0.45
ReadInt64Method · 0.45
ReadTaggedInt64Method · 0.45
ReadVarint64Method · 0.45

Tested by

no test coverage detected