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

Method ReadData

go/fory/time.go:300–305  ·  view source on GitHub ↗
(ctx *ReadContext, value reflect.Value)

Source from the content-addressed store, hash-verified

298}
299
300func (s timeSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
301 err := ctx.Err()
302 seconds := ctx.buffer.ReadInt64(err)
303 nanos := ctx.buffer.ReadUint32(err)
304 value.Set(reflect.ValueOf(CreateTimeFromUnixSecondsAndNanos(seconds, nanos)))
305}
306
307func (s timeSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
308 err := ctx.Err()

Callers 1

ReadMethod · 0.95

Calls 5

ReadUint32Method · 0.80
ErrMethod · 0.45
ReadInt64Method · 0.45
SetMethod · 0.45

Tested by

no test coverage detected