binaryen-0.0.6.0: Haskell bindings to binaryen
Safe HaskellNone
LanguageHaskell2010

Binaryen.Global

Description

Globals.

See https://github.com/WebAssembly/binaryen/blob/master/src/binaryen-c.h for API documentation.

This module is intended to be imported qualified.

Documentation

newtype Global Source #

Constructors

Global (Ptr Global) 

Instances

Instances details
Eq Global Source # 
Instance details

Defined in Binaryen.Global

Methods

(==) :: Global -> Global -> Bool

(/=) :: Global -> Global -> Bool

Show Global Source # 
Instance details

Defined in Binaryen.Global

Methods

showsPrec :: Int -> Global -> ShowS

show :: Global -> String

showList :: [Global] -> ShowS

Storable Global Source # 
Instance details

Defined in Binaryen.Global

Methods

sizeOf :: Global -> Int

alignment :: Global -> Int

peekElemOff :: Ptr Global -> Int -> IO Global

pokeElemOff :: Ptr Global -> Int -> Global -> IO ()

peekByteOff :: Ptr b -> Int -> IO Global

pokeByteOff :: Ptr b -> Int -> Global -> IO ()

peek :: Ptr Global -> IO Global

poke :: Ptr Global -> Global -> IO ()

getName :: Global -> IO (Ptr CChar) Source #

isMutable :: Global -> IO CInt Source #

importGetModule :: Global -> IO (Ptr CChar) Source #

globalImportGetBase :: Global -> IO (Ptr CChar) Source #