StreamGzip v0.1.0 StreamGzip View Source

Link to this section Summary

Functions

Gunzip the stream

Gzip the stream

Link to this section Functions

Gunzip the stream.

iex> [<<31, 139, 8, 0, 0, 0, 0, 0, 0, 3, 171, 168, 172, 170, 168, 172, 2, 0, 60, 143, 60, 178, 6, 0, 0, 0>>] |> StreamGzip.gunzip |> Enum.to_list
["xyzxyz"]

Gzip the stream.

iex> ["xyzxyz"] |> StreamGzip.gzip |> Enum.to_list
[<<31, 139, 8, 0, 0, 0, 0, 0, 0, 3, 171, 168, 172, 170, 168, 172, 2, 0, 60, 143, 60, 178, 6, 0, 0, 0>>]