()
| 32 | } |
| 33 | |
| 34 | func (d *Decoder) DecodeString() (string, error) { |
| 35 | if intern := d.flags&useInternedStringsFlag != 0; intern || len(d.dict) > 0 { |
| 36 | return d.decodeInternedString(intern) |
| 37 | } |
| 38 | |
| 39 | c, err := d.readCode() |
| 40 | if err != nil { |
| 41 | return "", err |
| 42 | } |
| 43 | return d.string(c) |
| 44 | } |
| 45 | |
| 46 | func (d *Decoder) string(c byte) (string, error) { |
| 47 | n, err := d.bytesLen(c) |