| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Compression.BZip.Foreign
Description
This module uses exceptions behind the scenes
Consult the upstream documentation for how to use this library.
For struct accessors, I recommend using c2hs.
Synopsis
- data BZAction
- data BZError
- data BzStream
- type BzStreamPtr = Ptr BzStream
- data BzFile
- type BzFilePtr = Ptr BzFile
- data FilePtr
- bZ2BzCompressInit :: BzStreamPtr -> CInt -> CInt -> CInt -> IO ()
- bZ2BzCompress :: BzStreamPtr -> BZAction -> IO BZError
- bZ2BzCompressEnd :: BzStreamPtr -> IO ()
- bZ2BzDecompressInit :: BzStreamPtr -> CInt -> Bool -> IO ()
- bZ2BzDecompress :: BzStreamPtr -> IO BZError
- bZ2BzDecompressEnd :: BzStreamPtr -> IO ()
- bZ2BzReadOpen :: FilePtr -> CInt -> Bool -> Ptr a -> CInt -> IO (BzFilePtr, BZError)
- bZ2BzReadClose :: BzFilePtr -> IO BZError
- bZ2BzReadGetUnused :: BzFilePtr -> IO (BZError, Ptr a, CInt)
- bZ2BzRead :: BzFilePtr -> Ptr a -> CInt -> IO (CInt, BZError)
- bZ2BzWriteOpen :: FilePtr -> CInt -> CInt -> CInt -> IO (BzFilePtr, BZError)
- bZ2BzWrite :: BzFilePtr -> Ptr a -> CInt -> IO BZError
- bZ2BzWriteClose :: BzFilePtr -> Bool -> IO (BZError, CUInt, CUInt)
- bZ2BzWriteClose64 :: BzFilePtr -> Bool -> IO (BZError, CUInt, CUInt, CUInt, CUInt)
- bZMaxUnused :: Integral a => a
- bZ2BzBuffToBuffCompress :: Ptr a -> Ptr a -> CUInt -> CInt -> CInt -> CInt -> IO CUInt
- bZ2BzBuffToBuffDecompress :: Ptr a -> Ptr a -> CUInt -> Bool -> CInt -> IO (BZError, CUInt)
- bZ2BzlibVersion :: String
Types
Instances
| Enum BZAction Source # | |
Defined in Codec.Compression.BZip.Foreign | |
Constructors
| BzConfigError | |
| BzOutbuffFull | |
| BzUnexpectedEof | |
| BzIoError | |
| BzDataErrorMagic | |
| BzDataError | |
| BzMemError | |
| BzParamError | |
| BzSequenceError | |
| BzOk | |
| BzRunOk | |
| BzFlushOk | |
| BzFinishOk | |
| BzStreamEnd |
Instances
| Enum BZError Source # | |
| Eq BZError Source # | |
| Show BZError Source # | |
| Exception BZError Source # | |
Defined in Codec.Compression.BZip.Foreign Methods toException :: BZError -> SomeException # fromException :: SomeException -> Maybe BZError # displayException :: BZError -> String # | |
type BzStreamPtr = Ptr BzStream Source #
Low-level functions
bZ2BzCompressInit :: BzStreamPtr -> CInt -> CInt -> CInt -> IO () Source #
bZ2BzCompress :: BzStreamPtr -> BZAction -> IO BZError Source #
bZ2BzCompressEnd :: BzStreamPtr -> IO () Source #
bZ2BzDecompressInit :: BzStreamPtr -> CInt -> Bool -> IO () Source #
bZ2BzDecompress :: BzStreamPtr -> IO BZError Source #
bZ2BzDecompressEnd :: BzStreamPtr -> IO () Source #
High-level functions
Macros
bZMaxUnused :: Integral a => a Source #
Utility functions
bZ2BzBuffToBuffDecompress :: Ptr a -> Ptr a -> CUInt -> Bool -> CInt -> IO (BZError, CUInt) Source #