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

Method ReadData

go/fory/primitive.go:691–698  ·  view source on GitHub ↗
(ctx *ReadContext, value reflect.Value)

Source from the content-addressed store, hash-verified

689}
690
691func (s bfloat16Serializer) ReadData(ctx *ReadContext, value reflect.Value) {
692 err := ctx.Err()
693 bits := ctx.buffer.ReadUint16(err)
694 if ctx.HasError() {
695 return
696 }
697 value.SetUint(uint64(bits))
698}
699
700func (s bfloat16Serializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
701 err := ctx.Err()

Callers 1

ReadMethod · 0.95

Calls 4

ReadUint16Method · 0.80
uint64Function · 0.50
ErrMethod · 0.45
HasErrorMethod · 0.45

Tested by

no test coverage detected