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

Method stringWithLen

decode_string.go:54–60  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

52}
53
54func (d *Decoder) stringWithLen(n int) (string, error) {
55 if n <= 0 {
56 return "", nil
57 }
58 b, err := d.readN(n)
59 return string(b), err
60}
61
62func decodeStringValue(d *Decoder, v reflect.Value) error {
63 s, err := d.DecodeString()

Callers 2

stringMethod · 0.95

Calls 1

readNMethod · 0.95

Tested by

no test coverage detected