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

Method ReadData

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

Source from the content-addressed store, hash-verified

138}
139
140func (s encodedInt32Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
141 err := ctx.Err()
142 switch s.typeID {
143 case INT32:
144 value.SetInt(int64(ctx.buffer.ReadInt32(err)))
145 default:
146 value.SetInt(int64(ctx.buffer.ReadVarint32(err)))
147 }
148}
149
150func (s encodedInt32Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
151 _ = hasGenerics

Callers 1

ReadMethod · 0.95

Calls 4

int64Function · 0.50
ErrMethod · 0.45
ReadInt32Method · 0.45
ReadVarint32Method · 0.45

Tested by

no test coverage detected