Language.JavaScript.Inline.Examples.Wasm
newtype I32 Source #
Constructors
Defined in Language.JavaScript.Inline.Examples.Wasm
Methods
showsPrec :: Int -> I32 -> ShowS #
show :: I32 -> String #
showList :: [I32] -> ShowS #
sizeOf :: I32 -> Int #
alignment :: I32 -> Int #
peekElemOff :: Ptr I32 -> Int -> IO I32 #
pokeElemOff :: Ptr I32 -> Int -> I32 -> IO () #
peekByteOff :: Ptr b -> Int -> IO I32 #
pokeByteOff :: Ptr b -> Int -> I32 -> IO () #
peek :: Ptr I32 -> IO I32 #
poke :: Ptr I32 -> I32 -> IO () #
rawJSType :: Proxy I32 -> RawJSType #
toRawJSType :: Proxy I32 -> JSExpr #
fromJS :: Session -> ByteString -> IO I32 #
toJS :: I32 -> JSExpr #
newtype I64 Source #
showsPrec :: Int -> I64 -> ShowS #
show :: I64 -> String #
showList :: [I64] -> ShowS #
sizeOf :: I64 -> Int #
alignment :: I64 -> Int #
peekElemOff :: Ptr I64 -> Int -> IO I64 #
pokeElemOff :: Ptr I64 -> Int -> I64 -> IO () #
peekByteOff :: Ptr b -> Int -> IO I64 #
pokeByteOff :: Ptr b -> Int -> I64 -> IO () #
peek :: Ptr I64 -> IO I64 #
poke :: Ptr I64 -> I64 -> IO () #
rawJSType :: Proxy I64 -> RawJSType #
toRawJSType :: Proxy I64 -> JSExpr #
fromJS :: Session -> ByteString -> IO I64 #
toJS :: I64 -> JSExpr #
newtype F32 Source #
showsPrec :: Int -> F32 -> ShowS #
show :: F32 -> String #
showList :: [F32] -> ShowS #
sizeOf :: F32 -> Int #
alignment :: F32 -> Int #
peekElemOff :: Ptr F32 -> Int -> IO F32 #
pokeElemOff :: Ptr F32 -> Int -> F32 -> IO () #
peekByteOff :: Ptr b -> Int -> IO F32 #
pokeByteOff :: Ptr b -> Int -> F32 -> IO () #
peek :: Ptr F32 -> IO F32 #
poke :: Ptr F32 -> F32 -> IO () #
rawJSType :: Proxy F32 -> RawJSType #
toRawJSType :: Proxy F32 -> JSExpr #
fromJS :: Session -> ByteString -> IO F32 #
toJS :: F32 -> JSExpr #
newtype F64 Source #
showsPrec :: Int -> F64 -> ShowS #
show :: F64 -> String #
showList :: [F64] -> ShowS #
sizeOf :: F64 -> Int #
alignment :: F64 -> Int #
peekElemOff :: Ptr F64 -> Int -> IO F64 #
pokeElemOff :: Ptr F64 -> Int -> F64 -> IO () #
peekByteOff :: Ptr b -> Int -> IO F64 #
pokeByteOff :: Ptr b -> Int -> F64 -> IO () #
peek :: Ptr F64 -> IO F64 #
poke :: Ptr F64 -> F64 -> IO () #
rawJSType :: Proxy F64 -> RawJSType #
toRawJSType :: Proxy F64 -> JSExpr #
fromJS :: Session -> ByteString -> IO F64 #
toJS :: F64 -> JSExpr #
importNew :: Session -> IO JSVal Source #
importAdd :: Export f => Session -> JSVal -> String -> String -> f -> IO () Source #
wasmCompile :: Session -> ByteString -> IO JSVal Source #
wasmInstantiate :: Session -> JSVal -> JSVal -> IO JSVal Source #
exportGet :: Import f => Session -> JSVal -> String -> IO f Source #