()
| 245 | } |
| 246 | |
| 247 | func (d *decoder) readCompactString() string { |
| 248 | if n := d.readUnsignedVarInt(); n < 1 { |
| 249 | return "" |
| 250 | } else { |
| 251 | return bytesToString(d.read(int(n - 1))) |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | func (d *decoder) readBytes() []byte { |
| 256 | if n := d.readInt32(); n < 0 { |
no test coverage detected