StreamGzip (StreamGzip v0.4.2) View Source
Gzip or gunzip a stream.
Link to this section Summary
Link to this section Functions
Specs
gunzip(Enumerable.t()) :: Enumerable.t()
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"
Specs
gzip(Enumerable.t()) :: Enumerable.t()
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>>
Specs
gzip(Enumerable.t(), [ {:level, :none | :default | :best_compression | :best_speed | 0..9} ]) :: Enumerable.t()