Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
better now !!
  • Loading branch information
Daniel Baumert authored May 9, 2020
1 parent c070999 commit 114c9fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,9 @@ using (var ms = new MemoryStream())
/** bs.SetWindow(windowSize); **/
/** bs.SetCustomDictionary(customDict); **/
fs.CopyTo(bs);

/* IMPORTANT: Only use the destination stream after closing/disposing the BrotliStream
as the BrotliStream must be closed in order to signal that no more blocks are being written
for the final block to be flushed out
*/
bs.Dispose();
byte[] compressed = ms.ToArray();
}

byte[] compressed = ms.ToArray();
}
```

Expand Down

0 comments on commit 114c9fb

Please sign in to comment.