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

Method ReadData

go/fory/string.go:142–149  ·  view source on GitHub ↗
(ctx *ReadContext, value reflect.Value)

Source from the content-addressed store, hash-verified

140}
141
142func (s stringSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
143 err := ctx.Err()
144 str := readString(ctx.buffer, err)
145 if ctx.HasError() {
146 return
147 }
148 value.SetString(str)
149}
150
151func (s stringSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) {
152 err := ctx.Err()

Callers 1

ReadMethod · 0.95

Calls 3

readStringFunction · 0.85
ErrMethod · 0.45
HasErrorMethod · 0.45

Tested by

no test coverage detected