Copyright | (c) Inokentiy Babushkin, 2016 |
---|---|

License | BSD3 |

Maintainer | Inokentiy Babushkin <inokentiy.babushkin@googlemail.com> |

Stability | experimental |

Safe Haskell | None |

Language | Haskell2010 |

This module contains various utility functions used to perform common actions when sanitizing data passed to and from the C functions exposed by capstone.

- peekNum :: (Integral a, Num b, Storable a) => Ptr a -> IO b
- getCULongFromEnum :: Enum e => e -> CULong
- withCast :: Storable a => a -> (Ptr b -> IO c) -> IO c
- combine :: (Enum e, Num n, Bits n) => [e] -> n
- stringLookup :: CString -> Maybe String
- fromZero :: (Eq a, Num a) => a -> Maybe a
- peekFunMaybe :: Storable a => (Ptr a -> IO a) -> Ptr a -> IO (Maybe a)