MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / decodeBytesValue

Function decodeBytesValue

decode_string.go:157–171  ·  view source on GitHub ↗
(d *Decoder, v reflect.Value)

Source from the content-addressed store, hash-verified

155}
156
157func decodeBytesValue(d *Decoder, v reflect.Value) error {
158 c, err := d.readCode()
159 if err != nil {
160 return err
161 }
162
163 b, err := d.bytes(c, v.Bytes())
164 if err != nil {
165 return err
166 }
167
168 v.SetBytes(b)
169
170 return nil
171}
172
173func decodeByteArrayValue(d *Decoder, v reflect.Value) error {
174 c, err := d.readCode()

Callers

nothing calls this directly

Calls 2

readCodeMethod · 0.80
bytesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…