StreamGzip v0.4.1 StreamGzip View Source
Gzip or gunzip a stream.
Link to this section Summary
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>>]
iex> |> StreamGzip.gunzip
iex> |> Enum.into("")
"xyzxyz"
Gzip the stream.
iex> ["xyzxyz"] |> StreamGzip.gzip |> Enum.into("")
<<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>>
Link to this function
gzip(enum, opts)
View Sourcegzip(Enumerable.t(), [ {:level, :none | :default | :best_compression | :best_speed | 0..9} ]) :: Enumerable.t()