bytes returns the decompressor internal buffer, resliced up until byte n.
(n int)
| 107 | |
| 108 | // bytes returns the decompressor internal buffer, resliced up until byte n. |
| 109 | func (d *decompressor) bytes(n int) []byte { |
| 110 | return d.buf[:n] |
| 111 | } |
| 112 | |
| 113 | // copy copies buf at index pos of the internal buffer, growing it if necessary. |
| 114 | func (d *decompressor) copy(pos int, buf []byte) { |