Copyright | (c) 2024 Finley McIlwaine |
---|---|
License | BSD-3-Clause (see LICENSE) |
Maintainer | Finley McIlwaine <finley@well-typed.com> |
Safe Haskell | None |
Language | Haskell2010 |
Raw format Snappy compression/decompression.
import Codec.Compression.SnappyC.Raw qualified as Snappy
Synopsis
- compress :: ByteString -> ByteString
- decompress :: ByteString -> Maybe ByteString
Compression
compress :: ByteString -> ByteString Source #
Compress the input using Snappy.
The result is in Snappy raw format, not the framing format.
Decompression
decompress :: ByteString -> Maybe ByteString Source #