> > Now that there is a 6 byte chunkHeader, could the 1 byte tempBuf be
> > removed?
>
> It's better to keep it. It would be confusing to use the same buffer in
> write(int) and writeChunk(). At glance it would look like that
> writeChunk() could be overwriting the input.

I assumed that lz.fillWindow(buf, off, len); would always process the
1 byte. It is not a big deal, I am just trying to understand what is
going on a bit better.

Brett

Reply via email to