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

Method ReadInto

go/fory/reader.go:951–962  ·  view source on GitHub ↗

ReadInto reads a value using a specific serializer with optional ref/type info

(value reflect.Value, serializer Serializer, refMode RefMode, readTypeInfo bool)

Source from the content-addressed store, hash-verified

949
950// ReadInto reads a value using a specific serializer with optional ref/type info
951func (c *ReadContext) ReadInto(value reflect.Value, serializer Serializer, refMode RefMode, readTypeInfo bool) {
952 if !value.IsValid() {
953 c.SetError(DeserializationError("invalid reflect.Value"))
954 return
955 }
956 if serializer == nil {
957 c.SetError(DeserializationError("serializer cannot be nil"))
958 return
959 }
960
961 serializer.Read(c, refMode, readTypeInfo, false, value)
962}
963
964// ReadArrayValue handles array targets with configurable ref mode and type reading.
965// Arrays are serialized as slices in xlang protocol.

Callers

nothing calls this directly

Calls 3

SetErrorMethod · 0.95
DeserializationErrorFunction · 0.85
ReadMethod · 0.65

Tested by

no test coverage detected