You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which is nontrivial to figure out. A helper functions in the root of the crate to compress a &[u8] into a Vec<u8> and to decompress a Vec<u8> into a &[u8] would help a lot with this. (Also, if these functions don't do I/O then perhaps they could be be infallible.)
The text was updated successfully, but these errors were encountered:
A common use case is compressing a
&[u8]
into aVec<u8>
without doing any I/O. The current docs don't make it clear how to do this.A google search turns up this forum post with this code snippet:
Which is nontrivial to figure out. A helper functions in the root of the crate to compress a
&[u8]
into aVec<u8>
and to decompress aVec<u8>
into a&[u8]
would help a lot with this. (Also, if these functions don't do I/O then perhaps they could be be infallible.)The text was updated successfully, but these errors were encountered: