Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data DuktapeHeap Source
type DuktapeCtx = ForeignPtr DuktapeHeap Source
type DukFreeFunction = Ptr () -> Ptr () -> IO () Source
type DukFatalFunction = Ptr DuktapeHeap -> CInt -> CString -> IO () Source
c_duk_create_heap :: FunPtr DukAllocFunction -> FunPtr DukReallocFunction -> FunPtr DukFreeFunction -> Ptr () -> FunPtr DukFatalFunction -> IO (Ptr DuktapeHeap) Source
c_duk_destroy_heap :: FunPtr (Ptr DuktapeHeap -> IO ()) Source
c_duk_eval_raw :: Ptr DuktapeHeap -> CString -> CSize -> CUInt -> IO CInt Source
c_duk_peval_lstring :: Ptr DuktapeHeap -> CString -> CSize -> IO CInt Source
c_duk_pop :: Ptr DuktapeHeap -> IO () Source
c_duk_push_string :: Ptr DuktapeHeap -> CString -> IO () Source
c_duk_safe_to_lstring :: Ptr DuktapeHeap -> CInt -> Ptr CSize -> IO CString Source
c_duk_safe_to_string :: Ptr DuktapeHeap -> CInt -> IO CString Source
c_duk_get_string :: Ptr DuktapeHeap -> CInt -> IO CString Source
c_duk_get_lstring :: Ptr DuktapeHeap -> CInt -> Ptr CSize -> IO CString Source
c_duk_get_int :: Ptr DuktapeHeap -> CInt -> IO CInt Source
c_duk_get_uint :: Ptr DuktapeHeap -> CInt -> IO CUInt Source
c_duk_get_number :: Ptr DuktapeHeap -> CInt -> IO CDouble Source
c_duk_get_boolean :: Ptr DuktapeHeap -> CInt -> IO CInt Source
c_duk_get_type :: Ptr DuktapeHeap -> CInt -> IO CInt Source
c_duk_json_encode :: Ptr DuktapeHeap -> CInt -> IO CString Source
c_duk_json_decode :: Ptr DuktapeHeap -> CInt -> IO () Source
createHeap :: FunPtr DukAllocFunction -> FunPtr DukReallocFunction -> FunPtr DukFreeFunction -> Ptr () -> FunPtr DukFatalFunction -> IO (Maybe DuktapeCtx) Source
createHeapF :: FunPtr DukFatalFunction -> IO (Maybe DuktapeCtx) Source