(size, encoding)
| 22629 | } |
| 22630 | |
| 22631 | string(size, encoding) { |
| 22632 | const data = this.read(size); |
| 22633 | return (encoding === 'utf-8') ? |
| 22634 | this._utf8Decoder.decode(data) : |
| 22635 | this._asciiDecoder.decode(data); |
| 22636 | } |
| 22637 | |
| 22638 | line() { |
| 22639 | const index = this._buffer.indexOf(0x0A, this._position); |