Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type ZyanStatus = Word32
- type ZyanUSize = Word64
- type Offset = ZyanUSize
- type Length = ZyanUSize
- initialize :: MachineMode -> AddressWidth -> IO (Either ZyanStatus Decoder)
- decodeBuffer :: Decoder -> ByteString -> Offset -> Length -> IO (Either ZyanStatus DecodedInstruction)
- decodeFullBuffer :: Decoder -> ByteString -> IO (Either ZyanStatus (Vector DecodedInstruction))
Documentation
type ZyanStatus = Word32 Source #
initialize :: MachineMode -> AddressWidth -> IO (Either ZyanStatus Decoder) Source #
Initialize a Zydis decoder, required to decode instructions.
decodeBuffer :: Decoder -> ByteString -> Offset -> Length -> IO (Either ZyanStatus DecodedInstruction) Source #
Decode a single intruction.
decodeFullBuffer :: Decoder -> ByteString -> IO (Either ZyanStatus (Vector DecodedInstruction)) Source #
Efficiently decode an entire buffer of instructions.