Copyright | (c) 2016-present Facebook Inc. All rights reserved. |
---|---|
License | BSD3 |
Maintainer | bryano@fb.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Streaming compression and decompression support for zstd.
Documentation
The result of a streaming compression or decompression step.
Produce ByteString (IO Result) | A single frame of transformed data, and an action that when executed will yield the next step in the streaming operation. The action is ephemeral; you should discard it as soon as you use it. |
Consume (ByteString -> IO Result) | Provide the function with more input for the streaming operation to continue. This function is ephemeral. You should call it exactly once, and discard it immediately after you call it. To signal the end of a stream of data, supply an |
Error String String | An error has occurred. If an error occurs, the streaming operation cannot continue. |
Done ByteString | The streaming operation has ended. This payload may be empty. If it is not, it must be written out. A non-empty payload consists of a frame epilogue, possibly preceded by any data left over from the final streaming step. |
decompress :: IO Result Source #