(c byte)
| 44 | } |
| 45 | |
| 46 | func (d *Decoder) string(c byte) (string, error) { |
| 47 | n, err := d.bytesLen(c) |
| 48 | if err != nil { |
| 49 | return "", err |
| 50 | } |
| 51 | return d.stringWithLen(n) |
| 52 | } |
| 53 | |
| 54 | func (d *Decoder) stringWithLen(n int) (string, error) { |
| 55 | if n <= 0 { |
no test coverage detected