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

Method ReadData

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

Source from the content-addressed store, hash-verified

193}
194
195func (s encodedUint32Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
196 err := ctx.Err()
197 switch s.typeID {
198 case UINT32:
199 value.SetUint(uint64(ctx.buffer.ReadUint32(err)))
200 default:
201 value.SetUint(uint64(ctx.buffer.ReadVarUint32(err)))
202 }
203}
204
205func (s encodedUint32Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
206 _ = hasGenerics

Callers 1

ReadMethod · 0.95

Calls 4

ReadUint32Method · 0.80
uint64Function · 0.50
ErrMethod · 0.45
ReadVarUint32Method · 0.45

Tested by

no test coverage detected