* Slices the underlining buffer * @param {Number} begin * @param {Number} [end] * @returns {Buffer}
(begin, end)
| 79 | * @returns {Buffer} |
| 80 | */ |
| 81 | slice(begin, end) { |
| 82 | if (typeof end === 'undefined') { |
| 83 | end = this.buf.length; |
| 84 | } |
| 85 | return this.buf.slice(begin, end); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Modifies the underlying buffer, it concatenates the given buffer with the original (internalBuffer = concat(bytes, internalBuffer) |