{-# LINE 1 "src/Codec/Lzip/Raw.chs" #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Codec.Lzip.Raw (
LZErrno (..)
, lZVersion
, lZStrerror
, lZMinDictionaryBits
, lZMinDictionarySize
, lZMaxDictionaryBits
, lZMaxDictionarySize
, lZMinMatchLenLimit
, lZMaxMatchLenLimit
, UInt8
, LZEncoder
, LZEncoderPtr
, lZCompressOpen
, lZCompressClose
, lZCompressFinish
, lZCompressRestartMember
, lZCompressSyncFlush
, lZCompressRead
, lZCompressWrite
, lZCompressWriteSize
, lZCompressErrno
, lZCompressFinished
, lZCompressMemberFinished
, lZCompressDataPosition
, lZCompressMemberPosition
, lZCompressTotalInSize
, lZCompressTotalOutSize
, LZDecoder
, LZDecoderPtr
, lZDecompressOpen
, lZDecompressClose
, lZDecompressFinish
, lZDecompressReset
, lZDecompressSyncToMember
, lZDecompressRead
, lZDecompressWrite
, lZDecompressWriteSize
, lZDecompressErrno
, lZDecompressFinished
, lZDecompressMemberFinished
, lZDecompressDictionarySize
, lZDecompressDataCrc
, lZDecompressDataPosition
, lZDecompressMemberPosition
, lZDecompressTotalInSize
, lZDecompressTotalOutSize
, lZApiVersion
) where
import qualified Foreign.C.String as C2HSImp
import qualified Foreign.C.Types as C2HSImp
import qualified Foreign.ForeignPtr as C2HSImp
import qualified Foreign.Ptr as C2HSImp
import qualified System.IO.Unsafe as C2HSImp
import Control.Exception (Exception)
import Data.Typeable (Typeable)
import Foreign.C.Types
import Foreign.Ptr (Ptr)
lZApiVersion :: Integral a => a
lZApiVersion = 1
{-# LINE 70 "src/Codec/Lzip/Raw.chs" #-}
type UInt8 = (C2HSImp.CUChar)
{-# LINE 72 "src/Codec/Lzip/Raw.chs" #-}
{-# LINE 73 "src/Codec/Lzip/Raw.chs" #-}
{-# LINE 74 "src/Codec/Lzip/Raw.chs" #-}
data LZErrno = LzOk
| LzBadArgument
| LzMemError
| LzSequenceError
| LzHeaderError
| LzUnexpectedEof
| LzDataError
| LzLibraryError
deriving (Eq,Typeable)
instance Enum LZErrno where
succ LzOk = LzBadArgument
succ LzBadArgument = LzMemError
succ LzMemError = LzSequenceError
succ LzSequenceError = LzHeaderError
succ LzHeaderError = LzUnexpectedEof
succ LzUnexpectedEof = LzDataError
succ LzDataError = LzLibraryError
succ LzLibraryError = error "LZErrno.succ: LzLibraryError has no successor"
pred LzBadArgument = LzOk
pred LzMemError = LzBadArgument
pred LzSequenceError = LzMemError
pred LzHeaderError = LzSequenceError
pred LzUnexpectedEof = LzHeaderError
pred LzDataError = LzUnexpectedEof
pred LzLibraryError = LzDataError
pred LzOk = error "LZErrno.pred: LzOk has no predecessor"
enumFromTo from to = go from
where
end = fromEnum to
go v = case compare (fromEnum v) end of
LT -> v : go (succ v)
EQ -> [v]
GT -> []
enumFrom from = enumFromTo from LzLibraryError
fromEnum LzOk = 0
fromEnum LzBadArgument = 1
fromEnum LzMemError = 2
fromEnum LzSequenceError = 3
fromEnum LzHeaderError = 4
fromEnum LzUnexpectedEof = 5
fromEnum LzDataError = 6
fromEnum LzLibraryError = 7
toEnum 0 = LzOk
toEnum 1 = LzBadArgument
toEnum 2 = LzMemError
toEnum 3 = LzSequenceError
toEnum 4 = LzHeaderError
toEnum 5 = LzUnexpectedEof
toEnum 6 = LzDataError
toEnum 7 = LzLibraryError
toEnum unmatched = error ("LZErrno.toEnum: Cannot match " ++ show unmatched)
{-# LINE 76 "src/Codec/Lzip/Raw.chs" #-}
lZVersion :: (String)
lZVersion =
C2HSImp.unsafePerformIO $
lZVersion'_ >>= \res ->
C2HSImp.peekCString res >>= \res' ->
return (res')
{-# LINE 78 "src/Codec/Lzip/Raw.chs" #-}
lZStrerror :: (LZErrno) -> (String)
lZStrerror a1 =
C2HSImp.unsafePerformIO $
let {a1' = (fromIntegral . fromEnum) a1} in
lZStrerror'_ a1' >>= \res ->
C2HSImp.peekCString res >>= \res' ->
return (res')
{-# LINE 79 "src/Codec/Lzip/Raw.chs" #-}
lZMinDictionaryBits :: (CInt)
lZMinDictionaryBits =
C2HSImp.unsafePerformIO $
lZMinDictionaryBits'_ >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 80 "src/Codec/Lzip/Raw.chs" #-}
lZMinDictionarySize :: (CInt)
lZMinDictionarySize =
C2HSImp.unsafePerformIO $
lZMinDictionarySize'_ >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 81 "src/Codec/Lzip/Raw.chs" #-}
lZMaxDictionaryBits :: (CInt)
lZMaxDictionaryBits =
C2HSImp.unsafePerformIO $
lZMaxDictionaryBits'_ >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 82 "src/Codec/Lzip/Raw.chs" #-}
lZMaxDictionarySize :: (CInt)
lZMaxDictionarySize =
C2HSImp.unsafePerformIO $
lZMaxDictionarySize'_ >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 83 "src/Codec/Lzip/Raw.chs" #-}
lZMinMatchLenLimit :: (CInt)
lZMinMatchLenLimit =
C2HSImp.unsafePerformIO $
lZMinMatchLenLimit'_ >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 84 "src/Codec/Lzip/Raw.chs" #-}
lZMaxMatchLenLimit :: (CInt)
lZMaxMatchLenLimit =
C2HSImp.unsafePerformIO $
lZMaxMatchLenLimit'_ >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 85 "src/Codec/Lzip/Raw.chs" #-}
instance Show LZErrno where
show = lZStrerror
instance Exception LZErrno where
data LZEncoder
type LZEncoderPtr = C2HSImp.ForeignPtr (LZEncoder)
{-# LINE 95 "src/Codec/Lzip/Raw.chs" #-}
lZCompressOpen :: (CInt) -> (CInt) -> (CULLong) -> IO ((Ptr LZEncoder))
lZCompressOpen a1 a2 a3 =
let {a1' = fromIntegral a1} in
let {a2' = fromIntegral a2} in
let {a3' = id a3} in
lZCompressOpen'_ a1' a2' a3' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 97 "src/Codec/Lzip/Raw.chs" #-}
lZCompressFinish :: (LZEncoderPtr) -> IO ((CInt))
lZCompressFinish a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressFinish'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 98 "src/Codec/Lzip/Raw.chs" #-}
lZCompressRestartMember :: (LZEncoderPtr) -> (CULLong) -> IO ((CInt))
lZCompressRestartMember a1 a2 =
C2HSImp.withForeignPtr a1 $ \a1' ->
let {a2' = id a2} in
lZCompressRestartMember'_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 99 "src/Codec/Lzip/Raw.chs" #-}
lZCompressSyncFlush :: (LZEncoderPtr) -> IO ((CInt))
lZCompressSyncFlush a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressSyncFlush'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 100 "src/Codec/Lzip/Raw.chs" #-}
lZCompressRead :: (LZEncoderPtr) -> (Ptr UInt8) -> (CInt) -> IO ((CInt))
lZCompressRead a1 a2 a3 =
C2HSImp.withForeignPtr a1 $ \a1' ->
let {a2' = id a2} in
let {a3' = fromIntegral a3} in
lZCompressRead'_ a1' a2' a3' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 101 "src/Codec/Lzip/Raw.chs" #-}
lZCompressWrite :: (LZEncoderPtr) -> (Ptr UInt8) -> (CInt) -> IO ((CInt))
lZCompressWrite a1 a2 a3 =
C2HSImp.withForeignPtr a1 $ \a1' ->
let {a2' = id a2} in
let {a3' = fromIntegral a3} in
lZCompressWrite'_ a1' a2' a3' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 102 "src/Codec/Lzip/Raw.chs" #-}
lZCompressWriteSize :: (LZEncoderPtr) -> IO ((CInt))
lZCompressWriteSize a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressWriteSize'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 103 "src/Codec/Lzip/Raw.chs" #-}
lZCompressErrno :: (LZEncoderPtr) -> IO ((LZErrno))
lZCompressErrno a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressErrno'_ a1' >>= \res ->
let {res' = (toEnum . fromIntegral) res} in
return (res')
{-# LINE 104 "src/Codec/Lzip/Raw.chs" #-}
lZCompressFinished :: (LZEncoderPtr) -> IO ((CInt))
lZCompressFinished a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressFinished'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 105 "src/Codec/Lzip/Raw.chs" #-}
lZCompressMemberFinished :: (LZEncoderPtr) -> IO ((CInt))
lZCompressMemberFinished a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressMemberFinished'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 106 "src/Codec/Lzip/Raw.chs" #-}
lZCompressDataPosition :: (LZEncoderPtr) -> IO ((CULLong))
lZCompressDataPosition a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressDataPosition'_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 107 "src/Codec/Lzip/Raw.chs" #-}
lZCompressMemberPosition :: (LZEncoderPtr) -> IO ((CULLong))
lZCompressMemberPosition a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressMemberPosition'_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 108 "src/Codec/Lzip/Raw.chs" #-}
lZCompressTotalInSize :: (LZEncoderPtr) -> IO ((CULLong))
lZCompressTotalInSize a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressTotalInSize'_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 109 "src/Codec/Lzip/Raw.chs" #-}
lZCompressTotalOutSize :: (LZEncoderPtr) -> IO ((CULLong))
lZCompressTotalOutSize a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZCompressTotalOutSize'_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 110 "src/Codec/Lzip/Raw.chs" #-}
data LZDecoder
type LZDecoderPtr = C2HSImp.ForeignPtr (LZDecoder)
{-# LINE 115 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressOpen :: IO ((Ptr LZDecoder))
lZDecompressOpen =
lZDecompressOpen'_ >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 117 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressFinish :: (LZDecoderPtr) -> IO ((CInt))
lZDecompressFinish a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressFinish'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 118 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressReset :: (LZDecoderPtr) -> IO ((CInt))
lZDecompressReset a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressReset'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 119 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressSyncToMember :: (LZDecoderPtr) -> IO ((CInt))
lZDecompressSyncToMember a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressSyncToMember'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 120 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressRead :: (LZDecoderPtr) -> (Ptr UInt8) -> (CInt) -> IO ((CInt))
lZDecompressRead a1 a2 a3 =
C2HSImp.withForeignPtr a1 $ \a1' ->
let {a2' = id a2} in
let {a3' = fromIntegral a3} in
lZDecompressRead'_ a1' a2' a3' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 121 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressWrite :: (LZDecoderPtr) -> (Ptr UInt8) -> (CInt) -> IO ((CInt))
lZDecompressWrite a1 a2 a3 =
C2HSImp.withForeignPtr a1 $ \a1' ->
let {a2' = id a2} in
let {a3' = fromIntegral a3} in
lZDecompressWrite'_ a1' a2' a3' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 122 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressWriteSize :: (LZDecoderPtr) -> IO ((CInt))
lZDecompressWriteSize a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressWriteSize'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 123 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressErrno :: (LZDecoderPtr) -> IO ((LZErrno))
lZDecompressErrno a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressErrno'_ a1' >>= \res ->
let {res' = (toEnum . fromIntegral) res} in
return (res')
{-# LINE 124 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressFinished :: (LZDecoderPtr) -> IO ((CInt))
lZDecompressFinished a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressFinished'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 125 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressMemberFinished :: (LZDecoderPtr) -> IO ((CInt))
lZDecompressMemberFinished a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressMemberFinished'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 126 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressDictionarySize :: (LZDecoderPtr) -> IO ((CInt))
lZDecompressDictionarySize a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressDictionarySize'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 127 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressDataCrc :: (LZDecoderPtr) -> IO ((CUInt))
lZDecompressDataCrc a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressDataCrc'_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 128 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressDataPosition :: (LZDecoderPtr) -> IO ((CULLong))
lZDecompressDataPosition a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressDataPosition'_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 129 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressMemberPosition :: (LZDecoderPtr) -> IO ((CULLong))
lZDecompressMemberPosition a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressMemberPosition'_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 130 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressTotalInSize :: (LZDecoderPtr) -> IO ((CULLong))
lZDecompressTotalInSize a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressTotalInSize'_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 131 "src/Codec/Lzip/Raw.chs" #-}
lZDecompressTotalOutSize :: (LZDecoderPtr) -> IO ((CULLong))
lZDecompressTotalOutSize a1 =
C2HSImp.withForeignPtr a1 $ \a1' ->
lZDecompressTotalOutSize'_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 132 "src/Codec/Lzip/Raw.chs" #-}
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_version"
lZVersion'_ :: (IO (C2HSImp.Ptr C2HSImp.CChar))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_strerror"
lZStrerror'_ :: (C2HSImp.CInt -> (IO (C2HSImp.Ptr C2HSImp.CChar)))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_min_dictionary_bits"
lZMinDictionaryBits'_ :: (IO C2HSImp.CInt)
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_min_dictionary_size"
lZMinDictionarySize'_ :: (IO C2HSImp.CInt)
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_max_dictionary_bits"
lZMaxDictionaryBits'_ :: (IO C2HSImp.CInt)
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_max_dictionary_size"
lZMaxDictionarySize'_ :: (IO C2HSImp.CInt)
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_min_match_len_limit"
lZMinMatchLenLimit'_ :: (IO C2HSImp.CInt)
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_max_match_len_limit"
lZMaxMatchLenLimit'_ :: (IO C2HSImp.CInt)
foreign import ccall "Codec/Lzip/Raw.chs.h &LZ_compress_close"
lZCompressClose :: C2HSImp.FinalizerPtr ()
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_open"
lZCompressOpen'_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CULLong -> (IO (C2HSImp.Ptr (LZEncoder))))))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_finish"
lZCompressFinish'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_restart_member"
lZCompressRestartMember'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (C2HSImp.CULLong -> (IO C2HSImp.CInt)))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_sync_flush"
lZCompressSyncFlush'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_read"
lZCompressRead'_ :: ((C2HSImp.Ptr (LZEncoder)) -> ((C2HSImp.Ptr UInt8) -> (C2HSImp.CInt -> (IO C2HSImp.CInt))))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_write"
lZCompressWrite'_ :: ((C2HSImp.Ptr (LZEncoder)) -> ((C2HSImp.Ptr UInt8) -> (C2HSImp.CInt -> (IO C2HSImp.CInt))))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_write_size"
lZCompressWriteSize'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_errno"
lZCompressErrno'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_finished"
lZCompressFinished'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_member_finished"
lZCompressMemberFinished'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_data_position"
lZCompressDataPosition'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CULLong))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_member_position"
lZCompressMemberPosition'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CULLong))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_total_in_size"
lZCompressTotalInSize'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CULLong))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_compress_total_out_size"
lZCompressTotalOutSize'_ :: ((C2HSImp.Ptr (LZEncoder)) -> (IO C2HSImp.CULLong))
foreign import ccall "Codec/Lzip/Raw.chs.h &LZ_decompress_close"
lZDecompressClose :: C2HSImp.FinalizerPtr ()
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_open"
lZDecompressOpen'_ :: (IO (C2HSImp.Ptr (LZDecoder)))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_finish"
lZDecompressFinish'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_reset"
lZDecompressReset'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_sync_to_member"
lZDecompressSyncToMember'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_read"
lZDecompressRead'_ :: ((C2HSImp.Ptr (LZDecoder)) -> ((C2HSImp.Ptr UInt8) -> (C2HSImp.CInt -> (IO C2HSImp.CInt))))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_write"
lZDecompressWrite'_ :: ((C2HSImp.Ptr (LZDecoder)) -> ((C2HSImp.Ptr UInt8) -> (C2HSImp.CInt -> (IO C2HSImp.CInt))))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_write_size"
lZDecompressWriteSize'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_errno"
lZDecompressErrno'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_finished"
lZDecompressFinished'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_member_finished"
lZDecompressMemberFinished'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_dictionary_size"
lZDecompressDictionarySize'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_data_crc"
lZDecompressDataCrc'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CUInt))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_data_position"
lZDecompressDataPosition'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CULLong))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_member_position"
lZDecompressMemberPosition'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CULLong))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_total_in_size"
lZDecompressTotalInSize'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CULLong))
foreign import ccall safe "Codec/Lzip/Raw.chs.h LZ_decompress_total_out_size"
lZDecompressTotalOutSize'_ :: ((C2HSImp.Ptr (LZDecoder)) -> (IO C2HSImp.CULLong))