code

code

Functions

Types and Values

  AsmCode

Description

Functions

asmcode_get_arch ()

char const *
asmcode_get_arch (AsmCode *code);

asmcode_get_arch_definition ()

AsmArchDefinition const *
asmcode_get_arch_definition (AsmCode *code);

asmcode_get_arch_description ()

char const *
asmcode_get_arch_description (AsmCode *code);

asmcode_get_filename ()

char const *
asmcode_get_filename (AsmCode *code);

asmcode_get_format ()

char const *
asmcode_get_format (AsmCode *code);

asmcode_get_format_description ()

char const *
asmcode_get_format_description (AsmCode *code);

asmcode_get_function_by_id ()

AsmFunction *
asmcode_get_function_by_id (AsmCode *code,
                            AsmFunctionId id);

asmcode_get_functions ()

void
asmcode_get_functions (AsmCode *code,
                       AsmFunction **functions,
                       size_t *functions_cnt);

asmcode_set_function ()

AsmFunction *
asmcode_set_function (AsmCode *code,
                      int id,
                      char const *name,
                      off_t offset,
                      ssize_t size);

asmcode_get_arch_instruction_by_name ()

AsmArchInstruction const *
asmcode_get_arch_instruction_by_name (AsmCode *code,
                                      char const *name);

asmcode_get_arch_instructions ()

AsmArchInstruction const *
asmcode_get_arch_instructions (AsmCode *code);

asmcode_get_arch_prefix_by_name ()

AsmArchPrefix const *
asmcode_get_arch_prefix_by_name (AsmCode *code,
                                 char const *name);

asmcode_get_arch_prefixes ()

AsmArchPrefix const *
asmcode_get_arch_prefixes (AsmCode *code);

asmcode_get_arch_registers ()

AsmArchRegister const *
asmcode_get_arch_registers (AsmCode *code);

asmcode_get_section_by_id ()

AsmSection *
asmcode_get_section_by_id (AsmCode *code,
                           AsmSectionId id);

asmcode_get_section_by_name ()

AsmSection *
asmcode_get_section_by_name (AsmCode *code,
                             char const *name);

asmcode_get_sections ()

void
asmcode_get_sections (AsmCode *code,
                      AsmSection **sections,
                      size_t *sections_cnt);

asmcode_set_section ()

AsmSection *
asmcode_set_section (AsmCode *code,
                     int id,
                     unsigned int flags,
                     char const *name,
                     off_t offset,
                     ssize_t size,
                     off_t base);

asmcode_get_string_by_id ()

AsmString *
asmcode_get_string_by_id (AsmCode *code,
                          AsmStringId id);

asmcode_get_strings ()

void
asmcode_get_strings (AsmCode *code,
                     AsmString **strings,
                     size_t *strings_cnt);

asmcode_set_string ()

AsmString *
asmcode_set_string (AsmCode *code,
                    int id,
                    char const *name,
                    off_t offset,
                    ssize_t length);

asmcode_directive ()

int
asmcode_directive (AsmCode *code,
                   char const *name,
                   char const **args,
                   size_t args_cnt);

asmcode_function ()

int
asmcode_function (AsmCode *code,
                  char const *name);

asmcode_instruction ()

int
asmcode_instruction (AsmCode *code,
                     AsmArchInstructionCall *call);

asmcode_section ()

int
asmcode_section (AsmCode *code,
                 char const *name);

asmcode_decode ()

int
asmcode_decode (AsmCode *code,
                int raw);

asmcode_decode_at ()

int
asmcode_decode_at (AsmCode *code,
                   off_t offset,
                   size_t size,
                   off_t base,
                   AsmArchInstructionCall **calls,
                   size_t *calls_cnt);

asmcode_decode_buffer ()

int
asmcode_decode_buffer (AsmCode *code,
                       char const *buffer,
                       size_t size,
                       AsmArchInstructionCall **calls,
                       size_t *calls_cnt);

asmcode_decode_section ()

int
asmcode_decode_section (AsmCode *code,
                        AsmSection *section,
                        AsmArchInstructionCall **calls,
                        size_t *calls_cnt);

asmcode_print ()

int
asmcode_print (AsmCode *code,
               AsmArchInstructionCall *call);

Types and Values

AsmCode

typedef struct _AsmCode AsmCode;