private void WriteDeflaterOutput(bool isAsync) { while (!deflater.NeedsInput()) { var compressedBytes = deflater.GetDeflateOutput(buffer); if (compressedBytes > 0) DoWrite(buffer, 0, compressedBytes, isAsync); } }
private void WriteDeflaterOutput() { while (!_deflater.NeedsInput()) { int compressedBytes = _deflater.GetDeflateOutput(_buffer); if (compressedBytes > 0) { DoWrite(_buffer, 0, compressedBytes); } } }