{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.TH.Byte.Storage where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
foreign import ccall "THStorage.h THByteStorage_data"
c_data_ :: Ptr C'THByteStorage -> IO (Ptr CUChar)
c_data :: Ptr C'THState -> Ptr C'THByteStorage -> IO (Ptr CUChar)
c_data = const c_data_
foreign import ccall "THStorage.h THByteStorage_size"
c_size_ :: Ptr C'THByteStorage -> IO CPtrdiff
c_size :: Ptr C'THState -> Ptr C'THByteStorage -> IO CPtrdiff
c_size = const c_size_
foreign import ccall "THStorage.h THByteStorage_set"
c_set_ :: Ptr C'THByteStorage -> CPtrdiff -> CUChar -> IO ()
c_set :: Ptr C'THState -> Ptr C'THByteStorage -> CPtrdiff -> CUChar -> IO ()
c_set = const c_set_
foreign import ccall "THStorage.h THByteStorage_get"
c_get_ :: Ptr C'THByteStorage -> CPtrdiff -> IO CUChar
c_get :: Ptr C'THState -> Ptr C'THByteStorage -> CPtrdiff -> IO CUChar
c_get = const c_get_
foreign import ccall "THStorage.h THByteStorage_new"
c_new_ :: IO (Ptr C'THByteStorage)
c_new :: Ptr C'THState -> IO (Ptr C'THByteStorage)
c_new = const c_new_
foreign import ccall "THStorage.h THByteStorage_newWithSize"
c_newWithSize_ :: CPtrdiff -> IO (Ptr C'THByteStorage)
c_newWithSize :: Ptr C'THState -> CPtrdiff -> IO (Ptr C'THByteStorage)
c_newWithSize = const c_newWithSize_
foreign import ccall "THStorage.h THByteStorage_newWithSize1"
c_newWithSize1_ :: CUChar -> IO (Ptr C'THByteStorage)
c_newWithSize1 :: Ptr C'THState -> CUChar -> IO (Ptr C'THByteStorage)
c_newWithSize1 = const c_newWithSize1_
foreign import ccall "THStorage.h THByteStorage_newWithSize2"
c_newWithSize2_ :: CUChar -> CUChar -> IO (Ptr C'THByteStorage)
c_newWithSize2 :: Ptr C'THState -> CUChar -> CUChar -> IO (Ptr C'THByteStorage)
c_newWithSize2 = const c_newWithSize2_
foreign import ccall "THStorage.h THByteStorage_newWithSize3"
c_newWithSize3_ :: CUChar -> CUChar -> CUChar -> IO (Ptr C'THByteStorage)
c_newWithSize3 :: Ptr C'THState -> CUChar -> CUChar -> CUChar -> IO (Ptr C'THByteStorage)
c_newWithSize3 = const c_newWithSize3_
foreign import ccall "THStorage.h THByteStorage_newWithSize4"
c_newWithSize4_ :: CUChar -> CUChar -> CUChar -> CUChar -> IO (Ptr C'THByteStorage)
c_newWithSize4 :: Ptr C'THState -> CUChar -> CUChar -> CUChar -> CUChar -> IO (Ptr C'THByteStorage)
c_newWithSize4 = const c_newWithSize4_
foreign import ccall "THStorage.h THByteStorage_newWithMapping"
c_newWithMapping_ :: Ptr CChar -> CPtrdiff -> CInt -> IO (Ptr C'THByteStorage)
c_newWithMapping :: Ptr C'THState -> Ptr CChar -> CPtrdiff -> CInt -> IO (Ptr C'THByteStorage)
c_newWithMapping = const c_newWithMapping_
foreign import ccall "THStorage.h THByteStorage_newWithData"
c_newWithData_ :: Ptr CUChar -> CPtrdiff -> IO (Ptr C'THByteStorage)
c_newWithData :: Ptr C'THState -> Ptr CUChar -> CPtrdiff -> IO (Ptr C'THByteStorage)
c_newWithData = const c_newWithData_
foreign import ccall "THStorage.h THByteStorage_newWithAllocator"
c_newWithAllocator_ :: CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THByteStorage)
c_newWithAllocator :: Ptr C'THState -> CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THByteStorage)
c_newWithAllocator = const c_newWithAllocator_
foreign import ccall "THStorage.h THByteStorage_newWithDataAndAllocator"
c_newWithDataAndAllocator_ :: Ptr CUChar -> CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THByteStorage)
c_newWithDataAndAllocator :: Ptr C'THState -> Ptr CUChar -> CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THByteStorage)
c_newWithDataAndAllocator = const c_newWithDataAndAllocator_
foreign import ccall "THStorage.h THByteStorage_setFlag"
c_setFlag_ :: Ptr C'THByteStorage -> CChar -> IO ()
c_setFlag :: Ptr C'THState -> Ptr C'THByteStorage -> CChar -> IO ()
c_setFlag = const c_setFlag_
foreign import ccall "THStorage.h THByteStorage_clearFlag"
c_clearFlag_ :: Ptr C'THByteStorage -> CChar -> IO ()
c_clearFlag :: Ptr C'THState -> Ptr C'THByteStorage -> CChar -> IO ()
c_clearFlag = const c_clearFlag_
foreign import ccall "THStorage.h THByteStorage_retain"
c_retain_ :: Ptr C'THByteStorage -> IO ()
c_retain :: Ptr C'THState -> Ptr C'THByteStorage -> IO ()
c_retain = const c_retain_
foreign import ccall "THStorage.h THByteStorage_swap"
c_swap_ :: Ptr C'THByteStorage -> Ptr C'THByteStorage -> IO ()
c_swap :: Ptr C'THState -> Ptr C'THByteStorage -> Ptr C'THByteStorage -> IO ()
c_swap = const c_swap_
foreign import ccall "THStorage.h THByteStorage_free"
c_free_ :: Ptr C'THByteStorage -> IO ()
c_free :: Ptr C'THState -> Ptr C'THByteStorage -> IO ()
c_free = const c_free_
foreign import ccall "THStorage.h THByteStorage_resize"
c_resize_ :: Ptr C'THByteStorage -> CPtrdiff -> IO ()
c_resize :: Ptr C'THState -> Ptr C'THByteStorage -> CPtrdiff -> IO ()
c_resize = const c_resize_
foreign import ccall "THStorage.h THByteStorage_fill"
c_fill_ :: Ptr C'THByteStorage -> CUChar -> IO ()
c_fill :: Ptr C'THState -> Ptr C'THByteStorage -> CUChar -> IO ()
c_fill = const c_fill_
foreign import ccall "THStorage.h &THByteStorage_data"
p_data :: FunPtr (Ptr C'THByteStorage -> IO (Ptr CUChar))
foreign import ccall "THStorage.h &THByteStorage_size"
p_size :: FunPtr (Ptr C'THByteStorage -> IO CPtrdiff)
foreign import ccall "THStorage.h &THByteStorage_set"
p_set :: FunPtr (Ptr C'THByteStorage -> CPtrdiff -> CUChar -> IO ())
foreign import ccall "THStorage.h &THByteStorage_get"
p_get :: FunPtr (Ptr C'THByteStorage -> CPtrdiff -> IO CUChar)
foreign import ccall "THStorage.h &THByteStorage_new"
p_new :: FunPtr (IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithSize"
p_newWithSize :: FunPtr (CPtrdiff -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithSize1"
p_newWithSize1 :: FunPtr (CUChar -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithSize2"
p_newWithSize2 :: FunPtr (CUChar -> CUChar -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithSize3"
p_newWithSize3 :: FunPtr (CUChar -> CUChar -> CUChar -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithSize4"
p_newWithSize4 :: FunPtr (CUChar -> CUChar -> CUChar -> CUChar -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithMapping"
p_newWithMapping :: FunPtr (Ptr CChar -> CPtrdiff -> CInt -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithData"
p_newWithData :: FunPtr (Ptr CUChar -> CPtrdiff -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithAllocator"
p_newWithAllocator :: FunPtr (CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_newWithDataAndAllocator"
p_newWithDataAndAllocator :: FunPtr (Ptr CUChar -> CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THByteStorage))
foreign import ccall "THStorage.h &THByteStorage_setFlag"
p_setFlag :: FunPtr (Ptr C'THByteStorage -> CChar -> IO ())
foreign import ccall "THStorage.h &THByteStorage_clearFlag"
p_clearFlag :: FunPtr (Ptr C'THByteStorage -> CChar -> IO ())
foreign import ccall "THStorage.h &THByteStorage_retain"
p_retain :: FunPtr (Ptr C'THByteStorage -> IO ())
foreign import ccall "THStorage.h &THByteStorage_swap"
p_swap :: FunPtr (Ptr C'THByteStorage -> Ptr C'THByteStorage -> IO ())
foreign import ccall "THStorage.h &THByteStorage_free"
p_free :: FunPtr (Ptr C'THByteStorage -> IO ())
foreign import ccall "THStorage.h &THByteStorage_resize"
p_resize :: FunPtr (Ptr C'THByteStorage -> CPtrdiff -> IO ())
foreign import ccall "THStorage.h &THByteStorage_fill"
p_fill :: FunPtr (Ptr C'THByteStorage -> CUChar -> IO ())