View Source Bzip2.Driver (bzip2 v0.1.0)

Link to this section Summary

Link to this section Types

@type compression_status() :: :cont | :next_input | :stream_end
Link to this type

decompression_status()

View Source
@type decompression_status() ::
  :cont | :next_input | {:stream_end, unused :: integer()}

Link to this section Functions

@spec compress_block!(state :: reference(), data :: binary()) ::
  {:ok, compression_status(), binary()}
@spec compress_end!(state :: reference()) :: :ok
@spec compress_init!() :: state :: reference()
@spec decompress_block!(state :: reference(), data :: binary()) ::
  {:ok, decompression_status(), binary()}
@spec decompress_end!(state :: reference()) :: :ok
@spec decompress_init!() :: state :: reference()
@spec init() :: :ok | (error :: any())