mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-12-01 01:10:29 +00:00
0df7e93a3c
Original prototype: typedef size_t (*cs_skipdata_cb_t)(const uint8_t *code, uint64_t offset, void* user_data); Now we add @code_size argument to reflect the size of the input buffer @code. Also, we change the data type of @offset to size_t because this argument indicates the distance from currently examining bytes to @code, but not the address of the byte. typedef size_t (*cs_skipdata_cb_t)(const uint8_t *code, size_t code_size, size_t offset, void* user_data); |
||
---|---|---|
.. | ||
Makefile | ||
README | ||
test_arm64.c | ||
test_arm.c | ||
test_detail.c | ||
test_mips.c | ||
test_ppc.c | ||
test_skipdata.c | ||
test_sparc.c | ||
test_systemz.c | ||
test_x86.c | ||
test_xcore.c | ||
test.c |
This directory contains some test code to show how to use Capstone API. - test.c This code shows the most simple form of API where we only want to get basic information out of disassembled instruction, such as address, mnemonic and operand string. - test_detail.c: This code shows how to access to architecture-neutral information in disassembled instructions, such as implicit registers read/written, or groups of instructions that this instruction belong to. - test_<arch>.c These code show how to access architecture-specific information for each architecture.