Safe Haskell | None |
---|---|
Language | Haskell2010 |
Modules.
See https://github.com/WebAssembly/binaryen/blob/master/src/binaryen-c.h for API documentation.
This module is intended to be imported qualified.
Documentation
Instances
Eq Module Source # | |
Show Module Source # | |
Storable Module Source # | |
Defined in Binaryen.Module peekElemOff :: Ptr Module -> Int -> IO Module pokeElemOff :: Ptr Module -> Int -> Module -> IO () peekByteOff :: Ptr b -> Int -> IO Module pokeByteOff :: Ptr b -> Int -> Module -> IO () |
addFunction :: Module -> Ptr CChar -> Type -> Type -> Ptr Type -> Index -> Expression -> IO Function Source #
getFunction :: Module -> Ptr CChar -> IO Function Source #
removeFunction :: Module -> Ptr CChar -> IO () Source #
getNumFunctions :: Module -> IO Index Source #
addFunctionImport :: Module -> Ptr CChar -> Ptr CChar -> Ptr CChar -> Type -> Type -> IO () Source #
addTableImport :: Module -> Ptr CChar -> Ptr CChar -> Ptr CChar -> IO () Source #
addMemoryImport :: Module -> Ptr CChar -> Ptr CChar -> Ptr CChar -> Word8 -> IO () Source #
addGlobalImport :: Module -> Ptr CChar -> Ptr CChar -> Ptr CChar -> Type -> CInt -> IO () Source #
addEventImport :: Module -> Ptr CChar -> Ptr CChar -> Ptr CChar -> Word32 -> Type -> Type -> IO () Source #
addFunctionExport :: Module -> Ptr CChar -> Ptr CChar -> IO Export Source #
addTableExport :: Module -> Ptr CChar -> Ptr CChar -> IO Export Source #
addMemoryExport :: Module -> Ptr CChar -> Ptr CChar -> IO Export Source #
addGlobalExport :: Module -> Ptr CChar -> Ptr CChar -> IO Export Source #
addEventExport :: Module -> Ptr CChar -> Ptr CChar -> IO Export Source #
removeExport :: Module -> Ptr CChar -> IO () Source #
removeEvent :: Module -> Ptr CChar -> IO () Source #
setFunctionTable :: Module -> Index -> Index -> Ptr (Ptr CChar) -> Index -> Expression -> IO () Source #
isFunctionTableImported :: Module -> IO CInt Source #
getNumFunctionTableSegments :: Module -> IO Index Source #
getFunctionTableSegmentOffset :: Module -> Index -> IO Expression Source #
setMemory :: Module -> Index -> Index -> Ptr CChar -> Ptr (Ptr CChar) -> Ptr Int8 -> Ptr Expression -> Ptr Index -> Index -> Word8 -> IO () Source #
getNumMemorySegments :: Module -> IO Word32 Source #
getMemorySegmentByteOffset :: Module -> Index -> IO Word32 Source #
getMemorySegmentByteLength :: Module -> Index -> IO CSize Source #
getMemorySegmentPassive :: Module -> Index -> IO CInt Source #
copyMemorySegmentData :: Module -> Index -> Ptr CChar -> IO () Source #
getFeatures :: Module -> IO Features Source #
setFeatures :: Module -> Features -> IO () Source #
printAsmjs :: Module -> IO () Source #
addCustomSection :: Module -> Ptr CChar -> Ptr CChar -> Index -> IO () Source #
getNumExports :: Module -> IO Index Source #
allocateAndWriteMut :: Module -> Ptr CChar -> Ptr (Ptr ()) -> Ptr CSize -> Ptr (Ptr CChar) -> IO () Source #
allocateAndWriteText :: Module -> IO (Ptr CChar) Source #
addDebugInfoFileName :: Module -> Ptr CChar -> IO Index Source #
getDebugInfoFileName :: Module -> Index -> IO (Ptr CChar) Source #
removeGlobal :: Module -> Ptr CChar -> IO () Source #