Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_types.h>
Go to the source code of this file.
Definition at line 382 of file hex.c.
References i, setup::idx, in, len, memcpy(), out, snprintf, and autogen_x86imm::tmp.
Referenced by __dumpSections(), __system(), __write(), add_file_hash(), header(), init_items(), print_instruction_ops(), rabin_dump_symbols(), rz_asm_code_get_hex(), rz_asm_op_get_hex(), rz_asm_op_set_hexbuf(), rz_cmd_cmp_hexpair_string_handler(), rz_cmd_search(), rz_core_visual_asm(), rz_egg_raw(), and rz_egg_raw_prepend().
Definition at line 415 of file hex.c.
References i, setup::idx, in, len, malloc(), memcpy(), NULL, out, snprintf, and autogen_x86imm::tmp.
Referenced by bin_pe_compute_authentihash(), bin_pe_get_claimed_authentihash(), disassembly_as_table(), print_result_diff(), regstate(), replace_asm_test(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_core_analysis_bytes(), rz_core_asm_back_disassemble(), rz_core_bin_info_print(), rz_core_io_cache_print(), rz_debug_session_list_memory(), rz_main_rz_find(), rz_test_run_asm_test(), rz_type_format_uleb(), show_analinfo(), and showanalysis().
Definition at line 214 of file hex.c.
References code, free(), malloc(), NULL, out, rz_hex_from_c_array(), rz_hex_from_c_str(), s1, s2, and skip_comment_c().
Referenced by rz_hex_from_code().
Definition at line 177 of file hex.c.
References code, comma, free(), IS_DIGIT, n, NULL, out, rz_num_math(), rz_str_ndup(), skip_comment_c(), and ut8.
Referenced by rz_hex_from_c().
Definition at line 106 of file hex.c.
References c1, c2, code, NULL, out, and tolower.
Referenced by rz_hex_from_c(), rz_hex_from_py_str(), and rz_hex_no_code().
Definition at line 342 of file hex.c.
References rz_hex_from_c(), rz_hex_from_js(), rz_hex_from_py(), and rz_hex_no_code().
Referenced by rax().
Definition at line 76 of file hex.c.
References free(), malloc(), NULL, out, rz_hex_from_py_array(), rz_hex_from_py_str(), and skip_comment_py().
Referenced by rz_hex_from_code().
Definition at line 42 of file hex.c.
References code, comma, free(), IS_DIGIT, n, NULL, out, rz_num_math(), rz_str_ndup(), skip_comment_py(), and ut8.
Referenced by rz_hex_from_py().
Definition at line 23 of file hex.c.
References out, rz_hex_from_c_str(), and s.
Referenced by rz_hex_from_py().
Definition at line 317 of file hex.c.
References calloc(), free(), NULL, out, and rz_hex_from_c_str().
Referenced by rz_hex_from_code().
Definition at line 360 of file hex.c.
References c, d, eprintf, and rz_hex_to_byte().
Referenced by rcc_pushstr(), and rz_print_hexpair().
Convert an input string in
into the binary form in out
.
Convert an input string in the hexadecimal form (e.g. "41424344") into the raw binary form (e.g. "ABCD")
in | Input string in hexadecimal form. An optional "0x" prefix may be present. |
out | Output buffer having at least strlen(in) / 2 bytes available |
out
Definition at line 444 of file hex.c.
References in, IS_WHITESPACE, out, rz_hex_to_byte(), and autogen_x86imm::tmp.
Referenced by __open(), __read(), __reg_read(), bochs_read(), cmd_analysis_esil(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), encrypt_or_decrypt_block(), getstr(), hash_parse_hexadecimal(), old_transform_op(), rasm_disasm(), rax(), run_old_command(), rz_analysis_op_hexstr(), rz_analyze_bytes_handler(), rz_asm_massemble(), rz_asm_mdisassemble_hexstr(), rz_asm_op_set_hex(), rz_assembly_of_hex_handler(), rz_cmd_cmp_hexpair_string_handler(), rz_cmd_debug(), rz_cmd_help(), rz_cmd_search(), rz_core_cmd_subst_i(), rz_core_search_preludes(), rz_core_write_base64_at(), rz_core_write_hexpair(), rz_core_yank_hexpair(), rz_debug_dmp_init(), rz_esil_of_hex_handler(), rz_hex_str2binmask(), rz_main_rz_bin(), rz_main_rz_gg(), rz_reg_arena_set_bytes(), rz_reg_arenas_write_hex_handler(), rz_search_keyword_new_hex(), rz_search_keyword_new_str(), rz_search_keyword_new_wide(), rz_test_load_asm_test_file(), rz_test_run_asm_test(), rz_write_block_handler(), rz_write_extend_hexbytes_handler(), rz_write_mask_set_handler(), rz_write_unified_patch_handler(), show_analinfo(), visual_search(), and write_op_val().
Definition at line 490 of file hex.c.
References in, IS_HEXCHAR, len, mask, memcpy(), out, and rz_hex_str2bin().
Referenced by rz_search_keyword_new_hexmask().
Definition at line 549 of file hex.c.
References i, IS_HEXCHAR, IS_WHITESPACE, len, and cmd_descs_generate::str.
Referenced by rz_reg_arena_set_bytes().
Definition at line 10 of file hex.c.
References c, IS_DIGIT, ut8, and val.
Referenced by rgbnum(), rz_hex_pair2bin(), rz_hex_str2bin(), rz_str_unescape(), and unescape_string().
Takes an unsigned 32bit integer with MSB set to 1 and returns the signed integer in hex format as string. E.g.: 0xffffffff -> "-0x1".
in | The integer to convert to the signed string. |
out | The buffer to write the signed hex string to. |
len | Length of the out buffer. |
Definition at line 405 of file hex.c.
References in, len, memcpy(), out, PFMT32x, RZ_LOG_FATAL, snprintf, and autogen_x86imm::tmp.
Referenced by hex_disasm_with_templates().