Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
type MemoryOffset = Word64 Source #
type InputOffset = Word64 Source #
type MemoryLength = Word64 Source #
type InputLength = Word64 Source #
extismSetOutput :: MemoryOffset -> MemoryLength -> IO () Source #
extismSetError :: MemoryOffset -> IO () Source #
extismLogInfo :: MemoryOffset -> IO () Source #
extismLogWarn :: MemoryOffset -> IO () Source #
extismLogDebug :: MemoryOffset -> IO () Source #
extismLogError :: MemoryOffset -> IO () Source #
extismStoreU8 :: MemoryOffset -> Word8 -> IO () Source #
extismStoreU64 :: MemoryOffset -> Word64 -> IO () Source #
extismLoadU8 :: MemoryOffset -> IO Word8 Source #
extismLoadU64 :: MemoryOffset -> IO Word64 Source #
extismAlloc :: MemoryLength -> IO MemoryOffset Source #
extismFree :: MemoryOffset -> IO () Source #
extismInputLoadU8 :: InputOffset -> IO Word8 Source #
extismInputLoadU64 :: InputOffset -> IO Word64 Source #
extismSetVar :: MemoryOffset -> MemoryOffset -> IO () Source #
wasmConstructor :: IO () Source #
wasmDestructor :: IO () Source #
bsToWord64 :: ByteString -> IO Word64 Source #
word64ToBS :: Word64 -> ByteString Source #
readLoop :: (Word64 -> IO Word8) -> (Word64 -> IO Word64) -> Word64 -> Word64 -> [ByteString] -> IO ByteString Source #
readInputBytes :: InputLength -> IO ByteString Source #
readBytes :: MemoryOffset -> MemoryLength -> IO ByteString Source #
writeBytesLoop :: MemoryOffset -> MemoryOffset -> ByteString -> IO () Source #
writeBytes :: MemoryOffset -> MemoryLength -> ByteString -> IO () Source #