(num int)
| 27 | } |
| 28 | |
| 29 | func (rd *bufferedReader) readBytesString(num int) (string, error) { |
| 30 | b, err := rd.readBytes(num) |
| 31 | if err != nil { |
| 32 | return "", err |
| 33 | } |
| 34 | |
| 35 | return unsafe.String(unsafe.SliceData(b), num), nil |
| 36 | } |
| 37 | |
| 38 | func (rd *bufferedReader) fill(min int) error { |
| 39 | if rd.available() < min { |
no test coverage detected