ReadInto reads a value using a specific serializer with optional ref/type info
(value reflect.Value, serializer Serializer, refMode RefMode, readTypeInfo bool)
| 949 | |
| 950 | // ReadInto reads a value using a specific serializer with optional ref/type info |
| 951 | func (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. |
nothing calls this directly
no test coverage detected