mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-27 01:45:56 +00:00

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);
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.