Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type MemoryOffset = Word64
- type InputOffset = Word64
- type MemoryLength = Word64
- type InputLength = Word64
- extismSetOutput :: MemoryOffset -> MemoryLength -> IO ()
- extismSetError :: MemoryOffset -> IO ()
- extismLogInfo :: MemoryOffset -> IO ()
- extismLogWarn :: MemoryOffset -> IO ()
- extismLogDebug :: MemoryOffset -> IO ()
- extismLogError :: MemoryOffset -> IO ()
- extismStoreU8 :: MemoryOffset -> Word8 -> IO ()
- extismStoreU64 :: MemoryOffset -> Word64 -> IO ()
- extismLoadU8 :: MemoryOffset -> IO Word8
- extismLoadU64 :: MemoryOffset -> IO Word64
- extismAlloc :: MemoryLength -> IO MemoryOffset
- extismLength :: MemoryOffset -> IO MemoryLength
- extismLengthUnsafe :: MemoryOffset -> IO MemoryLength
- extismFree :: MemoryOffset -> IO ()
- extismInputLength :: IO InputLength
- extismInputLoadU8 :: InputOffset -> IO Word8
- extismInputLoadU64 :: InputOffset -> IO Word64
- extismGetConfig :: MemoryOffset -> IO MemoryOffset
- extismGetVar :: MemoryOffset -> IO MemoryOffset
- extismSetVar :: MemoryOffset -> MemoryOffset -> IO ()
- extismHTTPRequest :: MemoryOffset -> MemoryOffset -> IO MemoryOffset
- extismHTTPStatusCode :: IO Int32
- wasmConstructor :: IO ()
- wasmDestructor :: IO ()
- bsToWord64 :: ByteString -> IO Word64
- word64ToBS :: Word64 -> ByteString
- readLoop :: (Word64 -> IO Word8) -> (Word64 -> IO Word64) -> Word64 -> Word64 -> [ByteString] -> IO ByteString
- readInputBytes :: InputLength -> IO ByteString
- readBytes :: MemoryOffset -> MemoryLength -> IO ByteString
- writeBytesLoop :: MemoryOffset -> MemoryOffset -> ByteString -> IO ()
- writeBytes :: MemoryOffset -> MemoryLength -> ByteString -> IO ()
Documentation
type MemoryOffset = Word64 Source #
Offset in Extism memory
type InputOffset = Word64 Source #
Offset of input from 0 to InputLength
type MemoryLength = Word64 Source #
Length of allocated block of memory
type InputLength = Word64 Source #
Total length of the input
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 #