Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_types.h>
Go to the source code of this file.
Classes | |
struct | RzStrBuf |
Macros | |
#define | RZ_STRBUF_SAFEGET(sb) (rz_strbuf_get(sb) ? rz_strbuf_get(sb) : "") |
#define RZ_STRBUF_SAFEGET | ( | sb | ) | (rz_strbuf_get(sb) ? rz_strbuf_get(sb) : "") |
Definition at line 18 of file rz_strbuf.h.
Definition at line 222 of file strbuf.c.
References rz_return_val_if_fail, rz_strbuf_append_n(), s, and sb.
Referenced by _6502_analysis_esil_update_flags(), _6502_op(), __draw_menu(), __draw_modal(), __esil_step_range_cb(), __generic_io_dest(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), argv_get_help(), base_type_to_format_no_unfold(), base_type_to_format_unfold(), callable_as_string(), cil_dis(), clear_flags(), close_optionals(), cmd_pxr(), construct_reloc_name(), dex_resolve_proto_id(), diff_unified_lines_hl(), disassemble(), do_handle_ts_unescape_arg(), do_print_child_help(), es_sign_n_64(), esil_branch_check_mask(), esil_branch_compare(), esil_branch_compare_single(), esil_call(), esil_callx(), fill_args(), fill_children_chars(), fill_colored_args(), fill_modes_children_chars(), fill_usage_strbuf(), fill_wrapped_comment(), flirt_pat_append_prelude(), flirt_pat_write_line(), format_cmd_kv(), gb_analysis_add_sp(), gb_analysis_esil_ret(), gb_analysis_load_hl(), gb_analysis_mov_hl_sp(), gb_analysis_mov_ime(), gb_analysis_xoaasc_imm(), generic_array_obj_to_string(), hex_disasm_with_templates(), il_op_effect_resolve(), il_op_pure_resolve(), il_opdmp_blk(), il_opdmp_bool_false(), il_opdmp_bool_true(), il_opdmp_cast(), il_opdmp_let(), il_opdmp_load(), il_opdmp_loadw(), il_opdmp_seq(), il_opdmp_seq_inner(), il_opdmp_set(), il_opdmp_store(), il_opdmp_storew(), lang_byte_array_asm(), lang_byte_array_bash(), lang_byte_array_c_cpp(), lang_byte_array_golang(), lang_byte_array_java(), lang_byte_array_kotlin(), lang_byte_array_nodejs(), lang_byte_array_objective_c_cpp(), lang_byte_array_rizin(), lua53_disasm(), lua54_disasm(), mnemonics(), opex(), opex64(), out_printf(), parse_function(), parse_simple_type(), parse_type(), parsed_args_iterateargs(), pdb_types_print_standard(), pj_raw(), print_byte(), print_cursor_l(), print_cursor_r(), prompt_add_file(), prompt_add_offset(), prompt_add_section(), read_string_val(), replace_directives_for(), replace_lines(), rz_analysis_cc_get(), rz_analysis_data_to_string(), rz_analysis_fcn_format_sig(), rz_analysis_var_get_constraints_readable(), rz_analysis_var_global_get_constraints_readable(), rz_arm_cs_analysis_op_32_esil(), rz_arm_cs_analysis_op_64_esil(), rz_asm_mdisassemble(), rz_bin_java_class_as_source_code(), rz_cmd_parsed_args_execstr(), rz_cons_echo(), rz_cons_grepbuf(), rz_cons_html_filter(), rz_core_analysis_all_vars_display(), rz_core_analysis_il_step_with_events(), rz_core_analysis_var_display(), rz_core_assembly_of_hex(), rz_core_bin_method_flags_str(), rz_core_bin_pdb_gvars_as_string(), rz_core_bin_relocs_print(), rz_core_print_hexdump_byline_str(), rz_core_print_string_c_cpp(), rz_core_types_as_c_all(), rz_core_types_enum_as_c_all(), rz_core_types_struct_as_c_all(), rz_core_types_typedef_as_c_all(), rz_core_types_union_as_c_all(), rz_graph_drawable_to_dot(), rz_il_event_stringify(), rz_pkcs7_cms_to_string(), rz_print_colorize_asm_str(), rz_print_hexdiff_str(), rz_print_hexdump_str(), rz_pseudo_convert(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_str_array_join(), rz_str_format_msvc_argv(), rz_str_list_join(), rz_str_repeat(), rz_str_stringify_raw_buffer(), rz_str_version(), rz_strbuf_vappendf(), rz_table_tocsv(), rz_table_tosimplestring(), rz_table_visual_list(), rz_type_format_10bytes(), rz_type_format_byte(), rz_type_format_char(), rz_type_format_data_internal(), rz_type_format_decchar(), rz_type_format_double(), rz_type_format_float(), rz_type_format_hex(), rz_type_format_hexflag(), rz_type_format_hexpairs(), rz_type_format_int(), rz_type_format_nulltermstring(), rz_type_format_nulltermwidestring(), rz_type_format_num(), rz_type_format_octal(), rz_type_format_quadword(), rz_type_format_string(), rz_type_format_time(), rz_type_format_u128(), rz_type_format_uleb(), rz_type_format_word(), sh_op_param_to_str(), strbuf_append_calc(), strings_print(), type_as_pretty_string(), type_decl_as_pretty_string(), type_to_format(), type_to_format_pair(), and update_flags().
Definition at line 229 of file strbuf.c.
References malloc(), memcpy(), p, realloc(), RZ_FREE, rz_return_val_if_fail, s, and sb.
Referenced by __parse_string_on_cursor(), dex_resolve_proto_id(), diff_unified_append_data(), diff_unified_lines_hl(), hex_disasm_with_templates(), read_to_strbuf(), replace_lines(), rz_buf_get_nstring(), rz_cons_html_filter(), rz_print_colorize_asm_str(), rz_pseudo_convert(), rz_str_format_msvc_argv(), rz_strbuf_append(), and set_attr().
Referenced by __draw_menu(), __draw_modal(), __op_refs(), __panels_refresh(), __strbuf_append_col_aligned(), __strbuf_append_col_aligned_fancy(), analop_esil(), anop_esil(), arm32math(), arm32mathaddsub(), arm64math(), base_type_to_format_no_unfold(), base_type_to_format_unfold(), callable_as_string(), cmd_pxr(), construct_reloc_name(), decode_array(), decode_buffer(), diff_unified_append_data(), diff_unified_append_ranges(), diff_unified_lines_hl(), disassemble(), do_print_child_help(), dump_element(), es_add_ck(), es_sign_n_64(), esil_abs_neg(), esil_add_imm(), esil_add_sub(), esil_bitwise_op(), esil_branch_check_bit(), esil_branch_check_bit_imm(), esil_branch_check_mask(), esil_branch_compare(), esil_branch_compare_imm(), esil_branch_compare_single(), esil_callx(), esil_extract_unsigned(), esil_load_imm(), esil_load_relative(), esil_move(), esil_move_conditional(), esil_move_imm(), esil_push_signed_imm(), esil_set_shift_amount(), esil_set_shift_amount_imm(), esil_shift_logic_imm(), esil_shift_logic_sar(), esil_sign_extend(), esil_store_imm(), fcnjoin(), fill_args(), fill_children_chars(), fill_colored_args(), fill_details_do(), fill_usage_strbuf(), fill_wrapped_comment(), flirt_pat_append_prelude(), format_cmd_kv(), gdb_to_rz_profile(), hex_disasm_with_templates(), il_op_effect_resolve(), il_op_pure_resolve(), il_opdmp_bitv(), il_opdmp_blk(), il_opdmp_cast(), il_opdmp_goto(), il_opdmp_let(), il_opdmp_load(), il_opdmp_loadw(), il_opdmp_set(), il_opdmp_store(), il_opdmp_storew(), il_opdmp_var(), java_field_access_flags_readable(), java_method_access_flags_readable(), lang_byte_array_asm(), lang_byte_array_bash(), lang_byte_array_c_cpp(), lang_byte_array_golang(), lang_byte_array_java(), lang_byte_array_kotlin(), lang_byte_array_nodejs(), lang_byte_array_objective_c_cpp(), lang_byte_array_rizin(), local_var_meet_known_cb(), mcs96_len(), node_malformed_error(), pad(), parse_array_type(), parse_function_args_and_vars(), print_addr(), print_byte(), print_section(), prompt_add_offset(), read_InlineBrTarget(), read_InlineMethod(), read_ShortInlineBrTarget(), replace_directives_for(), resolve_method_flags(), riscv_op(), rz_analysis_cc_get(), rz_analysis_data_to_string(), rz_analysis_fcn_format_sig(), rz_analysis_var_get_constraints_readable(), rz_analysis_var_global_get_constraints_readable(), rz_arm_cs_analysis_op_32_esil(), rz_arm_cs_analysis_op_64_esil(), rz_asn1_print_hexdump_padded(), rz_asn1_print_padded(), rz_asn1_to_string(), rz_base_type_as_format(), rz_bin_dex_access_flags_readable(), rz_bin_java_class_access_flags_readable(), rz_bin_java_class_as_source_code(), rz_bin_java_class_as_text(), rz_bin_java_class_const_pool_as_text(), rz_bin_java_class_fields_as_text(), rz_bin_java_class_interfaces_as_text(), rz_bin_java_class_methods_as_text(), rz_cmd_shell_mkdir_handler(), rz_cons_canvas_box(), rz_cons_html_filter(), rz_core_analysis_hasrefs_to_depth(), rz_core_analysis_var_display(), rz_core_bin_field_build_flag_name(), rz_core_bin_method_build_flag_name(), rz_core_bin_pdb_gvars_as_string(), rz_core_bin_relocs_print(), rz_core_bin_sections_mapping_print(), rz_core_esil_of_assembly(), rz_core_esil_of_hex(), rz_core_hex_of_assembly(), rz_core_print_hexdump_byline_str(), rz_core_print_string_c_cpp(), rz_core_visual_append_help(), rz_core_visual_view_rop(), rz_core_vmenu_append_help(), rz_core_yank_as_string(), rz_debug_thread_list(), rz_diff_unified_text(), rz_graph_drawable_to_dot(), rz_il_event_stringify(), rz_list_to_str(), rz_pkcs7_cms_to_string(), rz_print_format_register(), rz_print_hexdiff_str(), rz_print_hexdump_str(), rz_pyc_disasm(), rz_run_get_environ_profile(), rz_str_stringify_raw_buffer(), rz_str_trim_lines(), rz_str_version(), rz_str_widget_list(), rz_table_tocsv(), rz_table_tofancystring(), rz_table_tosimplestring(), rz_type_as_format_pair(), rz_type_format_10bytes(), rz_type_format_bitfield(), rz_type_format_byte(), rz_type_format_char(), rz_type_format_data_internal(), rz_type_format_decchar(), rz_type_format_double(), rz_type_format_enum(), rz_type_format_float(), rz_type_format_hex(), rz_type_format_hexflag(), rz_type_format_hexpairs(), rz_type_format_int(), rz_type_format_nulltermstring(), rz_type_format_nulltermwidestring(), rz_type_format_num(), rz_type_format_num_specifier(), rz_type_format_octal(), rz_type_format_quadword(), rz_type_format_string(), rz_type_format_struct(), rz_type_format_time(), rz_type_format_u128(), rz_type_format_uleb(), rz_type_format_word(), rz_x509_certificate_dump(), rz_x509_crl_to_string(), rz_x509_crlentry_dump(), rz_x509_extensions_dump(), rz_x509_name_dump(), rz_x509_signedinfo_dump(), rz_x509_subjectpublickeyinfo_dump(), rz_x509_tbscertificate_dump(), rz_x509_validity_dump(), rzil_print_register_bitv(), rzil_print_register_bool(), save_enum(), save_struct(), save_union(), sdb_save_dwarf_function(), set_prompt(), sh_op_param_to_str(), sh_op_to_str(), shifted_reg64_append(), show_config_options(), strings_print(), type_as_pretty_string(), type_decl_as_pretty_string(), type_to_format(), type_to_format_pair(), ut64_to_hex(), ut64join(), v810_op(), v850_op(), VALIDATOR_EFFECT(), VALIDATOR_PURE(), visual_help(), and wasm_dis().
Definition at line 48 of file strbuf.c.
References dst, free(), malloc(), memcpy(), p, RZ_FREE, rz_return_val_if_fail, and src.
Referenced by disassemble(), and rz_analysis_op_copy().
Definition at line 342 of file strbuf.c.
References drain(), free(), NULL, rz_return_val_if_fail, and sb.
Referenced by __config_toggle_cb(), __config_value_cb(), __op_refs(), __open_menu_cb(), __update_help(), __update_menu_contents(), argv_get_help(), avr_op(), cmd_print_fromage(), cmd_pxr(), construct_reloc_name(), dex_resolve_proto_id(), do_handle_ts_unescape_arg(), ds_build_op_str(), gdb_to_rz_profile(), group_get_help(), java_field_access_flags_readable(), java_method_access_flags_readable(), mnemonics(), parse_simple_type(), read_string_val(), replace_directives_for(), rz_analysis_cc_get(), rz_analysis_data_to_string(), rz_analysis_fcn_format_sig(), rz_asm_mdisassemble(), rz_asn1_print_hexdump_padded(), rz_asn1_to_string(), rz_axml_decode(), rz_base_type_as_format(), rz_bin_dex_access_flags_readable(), rz_bin_java_class_access_flags_readable(), rz_buf_get_nstring(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_get_help_json(), rz_cmd_help_search_handler(), rz_cmd_parsed_args_argstr(), rz_cmd_parsed_args_execstr(), rz_cmd_shell_mkdir_handler(), rz_cons_echo(), rz_cons_grepbuf(), rz_cons_html_filter(), rz_core_analysis_all_vars_display(), rz_core_analysis_hasrefs_to_depth(), rz_core_analysis_il_vm_status(), rz_core_analysis_var_display(), rz_core_assembly_of_hex(), rz_core_bin_method_flags_str(), rz_core_bin_relocs_print(), rz_core_disasm_instruction(), rz_core_esil_of_assembly(), rz_core_esil_of_hex(), rz_core_hex_of_assembly(), rz_core_print_hexdump_byline_str(), rz_core_print_string_c_cpp(), rz_core_types_as_c_all(), rz_core_types_enum_as_c_all(), rz_core_types_struct_as_c_all(), rz_core_types_typedef_as_c_all(), rz_core_types_union_as_c_all(), rz_core_visual_analysis(), rz_core_visual_analysis_refresh(), rz_core_visual_view_rop(), rz_core_yank_as_string(), rz_diff_unified_text(), rz_list_to_str(), rz_load_panels_layout(), rz_parse_pseudocode(), rz_pkcs7_cms_to_string(), rz_print_hexdiff_str(), rz_print_hexdump_str(), rz_protobuf_decode(), rz_run_get_environ_profile(), rz_str_array_join(), rz_str_list_join(), rz_str_repeat(), rz_str_trim_lines(), rz_str_version(), rz_str_widget_list(), rz_table_tocsv(), rz_table_tofancystring(), rz_table_tosimplestring(), rz_table_visual_list(), rz_type_as_format(), rz_type_as_format_pair(), rz_type_callable_as_string(), rz_type_callable_ptr_as_string(), rz_type_format_data(), rz_x509_crl_to_string(), sh_op_param_to_str(), sh_op_to_str(), show_config_options(), spp_eval_str(), strings_print(), type_as_pretty_string(), ut64_to_hex(), and wasm_dis().
Definition at line 349 of file strbuf.c.
References drain(), NULL, rz_return_val_if_fail, and sb.
Referenced by fill_children_chars(), format_cmd_kv(), parse_enum_type(), parse_struct_member(), parse_typedef(), pj_drain(), replace_lines(), rz_analysis_var_get_constraints_readable(), rz_analysis_var_global_get_constraints_readable(), rz_core_bin_field_build_flag_name(), rz_core_bin_method_build_flag_name(), rz_graph_drawable_to_dot(), rz_il_validate_effect(), rz_il_validate_pure(), rz_print_addr(), rz_print_byte(), rz_print_section_str(), rz_pseudo_convert(), rz_str_format_msvc_argv(), rz_str_stringify_raw_buffer(), rz_type_parse_string_declaration_single(), rz_type_parse_string_single(), set_prompt(), and type_parse_string().
Definition at line 16 of file strbuf.c.
References RzStrBuf::len, rz_return_val_if_fail, rz_strbuf_get(), and sb.
Definition at line 365 of file strbuf.c.
References NULL, RZ_FREE, and sb.
Referenced by analop(), analysis_mask_avr(), calc_padding_len(), cil_analyze_op(), count_newlines(), database_load(), diff_unified_append_data(), diff_unified_json_data(), diff_unified_lines_hl(), disassemble(), ds_print_cmt_il(), fcnjoin(), fill_children_chars(), get_atomic_type(), get_callable_type(), get_enum_type(), get_struct_type(), get_typedef_type(), get_union_type(), get_word_from_canvas(), handle_skip_next_instruction(), mips_op(), parse_function(), parse_function_args_and_vars(), parse_typedef(), pj_free(), print_and_check_il(), runword(), rz_analysis_cc_del(), rz_analysis_cc_set_error(), rz_analysis_cc_set_self(), rz_analysis_esil_free(), rz_analysis_op_fini(), rz_asm_op_fini(), rz_core_analysis_il_vm_status(), rz_core_print_disasm(), rz_il_validate_effect(), rz_il_validate_pure(), rz_serialize_analysis_blocks_save(), rz_serialize_analysis_functions_save(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_sign_flirt_write_string_pattern_to_buffer(), rz_strbuf_free(), rz_subprocess_err(), rz_subprocess_free(), rz_subprocess_out(), rz_subprocess_stdout_read(), rz_subprocess_stdout_readline(), rz_subprocess_wait(), rz_test_test_database_load_fuzz(), save_atomic_type(), save_callable(), save_enum(), save_struct(), save_typedef(), save_union(), sdb_save_dwarf_function(), set_attr(), update_stat_for_op(), and ut64join().
Definition at line 358 of file strbuf.c.
References free(), rz_strbuf_fini(), and sb.
Referenced by __config_toggle_cb(), __config_value_cb(), __esil_step_range_cb(), __init_menu_color_settings_layout(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), __panels_refresh(), __parse_string_on_cursor(), __update_help_title(), __update_modal(), __update_panel_title(), argv_get_help(), c_parser_state_free(), c_parser_state_free_keep_ht(), c_parser_state_reset_keep_ht(), cmd_pxr(), core_analysis_bytes_standard(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), dex_resolve_proto_id(), ds_build_op_str(), fill_usage_strbuf(), gdb_to_rz_profile(), generic_array_obj_to_string(), INST_HANDLER(), main(), mk_reg_str(), parse_localvar(), pdb_types_print_standard(), print_rop(), read_string_val(), replace_directives_for(), rz_analysis_data_to_string(), rz_asm_token_string_free(), rz_axml_decode(), rz_buf_get_nstring(), rz_cmd_javac_handler(), rz_cmd_javaf_handler(), rz_cmd_javai_handler(), rz_cmd_javam_handler(), rz_cmd_javap_handler(), rz_cmd_javas_handler(), rz_cons_canvas_box(), rz_cons_grepbuf(), rz_core_analysis_il_step_with_events(), rz_core_analysis_il_vm_status(), rz_core_assembly_of_hex(), rz_core_bin_pdb_gvars_as_string(), rz_core_bin_sections_mapping_print(), rz_core_disasm_pdi_with_buf(), rz_core_esil_of_assembly(), rz_core_esil_of_hex(), rz_core_hex_of_assembly(), rz_core_print_disasm_all(), rz_core_visual_bit_editor(), rz_core_visual_esil(), rz_core_yank_as_string(), rz_debug_thread_list(), rz_diff_unified_text(), rz_parse_pseudocode(), rz_print_colorize_asm_str(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_table_visual_list(), rz_type_as_format_pair(), rz_type_callable_as_string(), rz_type_callable_ptr_as_string(), spp_run_str(), type_as_pretty_string(), and visual_help().
Definition at line 321 of file strbuf.c.
References NULL, rz_return_val_if_fail, and sb.
Referenced by __config_toggle_cb(), __config_value_cb(), __core_cmd_search_asm_byteswap(), __esil_step_range_cb(), __init_menu_color_settings_layout(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), __isInvalid(), __panels_refresh(), __parse_string_on_cursor(), __update_help_title(), __update_modal(), __update_panel_title(), assemble(), avr_op_analyze(), check_token_coverage(), core_analysis_bytes_standard(), count_newlines(), database_load(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), diff_unified_append_data(), diff_unified_json_data(), diff_unified_lines_hl(), disassemble(), do_assemble(), do_disassemble(), do_ref_search(), ds_atabs_option(), ds_print_cmt_il(), extract_arg(), fcnjoin(), fill_usage_strbuf(), flirt_pat_parse_line(), flirt_pat_write_line(), gbAsm(), generic_array_obj_to_string(), get_src_regname(), get_word_from_canvas(), hex_disasm_with_templates(), INST_HANDLER(), main(), mk_reg_str(), parse_function(), parse_function_args_and_vars(), parse_localvar(), parseHeap(), pdb_types_print_standard(), pj_string(), print_and_check_il(), print_rop(), run_basic_block_analysis(), rz_analysis_esil_trace_op(), rz_analysis_op_to_esil_string(), rz_asm_assemble(), rz_asm_massemble(), rz_asm_mdisassemble(), rz_asm_op_get_asm(), rz_asm_op_get_buf(), rz_asm_op_get_hex(), rz_asm_pseudo_intN(), rz_asm_rasm_assemble(), rz_asm_token_string_clone(), rz_asm_tokenize_asm_regex(), rz_cmd_javac_handler(), rz_cmd_javaf_handler(), rz_cmd_javai_handler(), rz_cmd_javam_handler(), rz_cmd_javap_handler(), rz_cmd_javas_handler(), rz_cmd_print(), rz_cons_canvas_box(), rz_core_analysis_il_step_with_events(), rz_core_analysis_il_vm_status(), rz_core_analysis_op(), rz_core_asm_back_disassemble(), rz_core_asm_strsearch(), rz_core_bin_pdb_gvars_as_string(), rz_core_bin_sections_mapping_print(), rz_core_cmp_disasm(), rz_core_disasm_instruction(), rz_core_disasm_pde(), rz_core_disasm_pdi_with_buf(), rz_core_op_str(), rz_core_print_disasm_all(), rz_core_visual_bit_editor(), rz_core_visual_esil(), rz_debug_thread_list(), rz_print_colorize_asm_str(), rz_serialize_analysis_blocks_save(), rz_serialize_analysis_functions_save(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_strbuf_equals(), rz_strbuf_set(), rz_strbuf_slice(), rz_subprocess_stdout_readline(), rz_table_tofancystring(), rz_table_tosimplestring(), rz_test_test_database_load_fuzz(), save_enum(), save_struct(), save_union(), sdb_save_dwarf_function(), set_attr(), showanalysis(), spp_run_str(), tokenize_asm_generic(), update_stat_for_op(), ut64join(), and visual_help().
Definition at line 326 of file strbuf.c.
References len, NULL, rz_return_val_if_fail, and sb.
Referenced by rz_cons_grepbuf(), rz_subprocess_err(), and rz_subprocess_out().
Definition at line 33 of file strbuf.c.
References memset(), rz_return_if_fail, and sb.
Referenced by _6502_op(), analop_esil(), analysis_mask_avr(), calc_padding_len(), cil_dis(), count_newlines(), database_load(), diff_unified_append_data(), diff_unified_json_data(), diff_unified_lines_hl(), ds_print_cmt_il(), fcnjoin(), fill_children_chars(), format_cmd_kv(), get_word_from_canvas(), handle_skip_next_instruction(), hex_disasm_with_templates(), main(), opex(), opex64(), parse_enum_type(), parse_function(), parse_function_args_and_vars(), parse_struct_member(), parse_typedef(), pj_new(), print_and_check_il(), replace_lines(), rz_analysis_esil_new(), rz_analysis_op_copy(), rz_analysis_var_get_constraints_readable(), rz_analysis_var_global_get_constraints_readable(), rz_arm_cs_analysis_op_32_esil(), rz_arm_cs_analysis_op_64_esil(), rz_asm_rasm_assemble(), rz_core_print_disasm(), rz_graph_drawable_to_dot(), rz_il_validate_effect(), rz_il_validate_pure(), rz_print_addr(), rz_print_byte(), rz_print_section_str(), rz_serialize_analysis_functions_save(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_sign_flirt_write_string_pattern_to_buffer(), rz_str_format_msvc_argv(), rz_str_stringify_raw_buffer(), rz_strbuf_initf(), rz_strbuf_set(), rz_subprocess_start_opt(), rz_subprocess_stdout_read(), rz_subprocess_stdout_readline(), rz_subprocess_wait(), rz_test_test_database_load_fuzz(), save_atomic_type(), save_callable(), save_enum(), save_struct(), save_typedef(), save_union(), sdb_save_dwarf_function(), set_attr(), set_prompt(), spp_eval_str(), update_stat_for_op(), and ut64join().
Definition at line 38 of file strbuf.c.
References NULL, r, rz_return_val_if_fail, rz_strbuf_init(), rz_strbuf_vsetf(), and sb.
Referenced by get_atomic_type(), get_callable_type(), get_enum_type(), get_struct_type(), get_typedef_type(), get_union_type(), rz_analysis_cc_del(), rz_analysis_cc_set_error(), rz_analysis_cc_set_self(), rz_core_bin_field_build_flag_name(), and rz_core_bin_method_build_flag_name().
Definition at line 24 of file strbuf.c.
References sb.
Referenced by fill_children_chars(), get_src_regname(), rz_core_bin_relocs_print(), rz_il_validate_effect(), rz_il_validate_pure(), and tokenize_asm_generic().
Definition at line 28 of file strbuf.c.
References rz_return_val_if_fail, and sb.
Referenced by __panels_refresh(), __strbuf_append_col_aligned(), __strbuf_append_col_aligned_fancy(), calc_padding_len(), count_newlines(), diff_unified_append_data(), diff_unified_json_data(), diff_unified_lines_hl(), ds_atabs_option(), fill_children_chars(), flirt_pat_parse_line(), flirt_pat_write_line(), rz_analysis_fcn_format_sig(), rz_asm_massemble(), rz_asm_op_get_hex(), rz_cons_grepbuf(), rz_core_analysis_il_vm_status(), rz_core_disasm_instruction(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_str_list_join(), rz_subprocess_stdout_readline(), show_config_options(), type_as_pretty_string(), and ut64_to_hex().
Definition at line 8 of file strbuf.c.
References RZ_NEW0, rz_strbuf_set(), s, and cmd_descs_generate::str.
Referenced by __config_toggle_cb(), __config_value_cb(), __draw_menu(), __esil_step_range_cb(), __generic_io_dest(), __init_menu_color_settings_layout(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), __op_refs(), __panels_refresh(), __parse_string_on_cursor(), __update_help(), __update_help_title(), __update_modal(), __update_panel_title(), argv_get_help(), avr_op(), c_parser_state_new(), c_parser_state_reset_keep_ht(), cmd_print_fromage(), cmd_pxr(), construct_reloc_name(), core_analysis_bytes_standard(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), dex_resolve_proto_id(), do_handle_ts_unescape_arg(), ds_build_op_str(), fill_usage_strbuf(), gdb_to_rz_profile(), generic_array_obj_to_string(), group_get_help(), java_field_access_flags_readable(), java_method_access_flags_readable(), main(), mk_reg_str(), mnemonics(), parse_localvar(), parse_simple_type(), pdb_types_print_standard(), print_rop(), read_string_val(), replace_directives_for(), rz_analysis_cc_get(), rz_analysis_data_to_string(), rz_analysis_fcn_format_sig(), rz_asm_mdisassemble(), rz_asm_rasm_assemble(), rz_asm_token_string_clone(), rz_asm_token_string_new(), rz_asn1_print_hexdump_padded(), rz_asn1_to_string(), rz_axml_decode(), rz_base_type_as_format(), rz_bin_dex_access_flags_readable(), rz_bin_java_class_access_flags_readable(), rz_buf_get_nstring(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_get_help_json(), rz_cmd_help_search_handler(), rz_cmd_javac_handler(), rz_cmd_javaf_handler(), rz_cmd_javai_handler(), rz_cmd_javam_handler(), rz_cmd_javap_handler(), rz_cmd_javas_handler(), rz_cmd_parsed_args_argstr(), rz_cmd_parsed_args_execstr(), rz_cmd_shell_mkdir_handler(), rz_cons_canvas_box(), rz_cons_echo(), rz_cons_grepbuf(), rz_cons_html_filter(), rz_core_analysis_all_vars_display(), rz_core_analysis_hasrefs_to_depth(), rz_core_analysis_il_step_with_events(), rz_core_analysis_il_vm_status(), rz_core_analysis_var_display(), rz_core_assembly_of_hex(), rz_core_bin_method_flags_str(), rz_core_bin_pdb_gvars_as_string(), rz_core_bin_relocs_print(), rz_core_bin_sections_mapping_print(), rz_core_disasm_instruction(), rz_core_disasm_pdi_with_buf(), rz_core_esil_of_assembly(), rz_core_esil_of_hex(), rz_core_hex_of_assembly(), rz_core_print_hexdump_byline_str(), rz_core_print_string_c_cpp(), rz_core_types_as_c_all(), rz_core_types_enum_as_c_all(), rz_core_types_struct_as_c_all(), rz_core_types_typedef_as_c_all(), rz_core_types_union_as_c_all(), rz_core_visual_analysis(), rz_core_visual_analysis_refresh(), rz_core_visual_view_rop(), rz_core_yank_as_string(), rz_debug_thread_list(), rz_diff_unified_text(), rz_list_to_str(), rz_load_panels_layout(), rz_parse_pseudocode(), rz_pkcs7_cms_to_string(), rz_print_colorize_asm_str(), rz_print_hexdiff_str(), rz_print_hexdump_str(), rz_protobuf_decode(), rz_run_get_environ_profile(), rz_sign_flirt_parse_string_pattern_from_buffer(), rz_str_array_join(), rz_str_list_join(), rz_str_repeat(), rz_str_trim_lines(), rz_str_version(), rz_str_widget_list(), rz_table_tocsv(), rz_table_tofancystring(), rz_table_tosimplestring(), rz_table_visual_list(), rz_type_as_format(), rz_type_as_format_pair(), rz_type_callable_as_string(), rz_type_callable_ptr_as_string(), rz_type_format_data(), rz_x509_crl_to_string(), sh_op_param_to_str(), sh_op_to_str(), show_config_options(), spp_eval_str(), spp_run_str(), strings_print(), type_as_pretty_string(), ut64_to_hex(), visual_help(), and wasm_dis().
Definition at line 201 of file strbuf.c.
References free(), malloc(), memcpy(), rz_return_val_if_fail, rz_strbuf_set(), s, and sb.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), fill_children_chars(), rz_table_tofancystring(), and ut64_to_hex().
Definition at line 67 of file strbuf.c.
References len, memcpy(), realloc(), rz_return_val_if_fail, and sb.
Referenced by rz_analysis_data_to_string(), and rz_parse_pseudocode().
Definition at line 153 of file strbuf.c.
References len, NULL, rz_return_val_if_fail, rz_strbuf_get(), rz_strbuf_init(), rz_strbuf_setbin(), s, and sb.
Referenced by _6502_op(), _6502Disass(), __generic_io_dest(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), __panels_refresh(), analop_esil(), assemble_8051(), avr_op_analyze(), avr_unique(), construct_reloc_name(), dalvik_disassemble(), disassemble(), fill_children_chars(), gb_analysis_id(), gb_analysis_jmp_hl(), gb_analysis_load(), gb_analysis_load_hl(), gb_analysis_mov_scf(), gb_analysis_mov_sp_hl(), gb_analysis_store(), gb_analysis_store_hl(), gb_analysis_xor_ccf(), gb_analysis_xor_cpl(), gb_anop(), gbAsm(), hexagon_reverse_opcode(), i4004dis(), java_disassemble(), line_stringify(), mcs96_len(), parse(), parseHeap(), pj_reset(), rsp_op(), runword(), rz_analysis_op_hint(), rz_arm_cs_analysis_op_32_esil(), rz_arm_cs_analysis_op_64_esil(), rz_asm_disassemble(), rz_asm_op_set_asm(), rz_asm_pseudo_string(), rz_pseudo_convert(), rz_pyc_disasm(), rz_strbuf_new(), rz_strbuf_prepend(), rz_strbuf_vsetf(), set_invalid_op(), snesDisass(), spc700_disas(), strbuf_rev_append_char(), strbuf_rev_prepend_char(), update_stat_for_op(), and wasm_dis().
Definition at line 85 of file strbuf.c.
References malloc(), memcpy(), RZ_FREE, rz_return_val_if_fail, s, and sb.
Referenced by _write_asm(), assemble(), assemble_8051(), binutils_assemble(), dalvik_assemble(), java_assemble(), rz_asm_op_set_buf(), rz_asm_op_set_hex(), rz_luac_asm(), rz_strbuf_set(), and update_stat_for_op().
Referenced by _6502_analysis_esil_ccall(), _6502_analysis_esil_flags(), _6502_analysis_esil_inc_reg(), _6502_analysis_esil_mov(), _6502_analysis_esil_pop(), _6502_analysis_esil_push(), _6502_op(), __generic_io_dest(), __init_menu_color_settings_layout(), __panels_refresh(), __update_help_title(), __update_panel_title(), add_imm(), analop_esil(), analysis_pic_pic18_op(), arm64math(), avr_AAAAAbbb(), avr_AAdddddAAAA(), avr_AArrrrrAAAA(), avr_dddcrrr(), avr_ddddcccc(), avr_dddddcbbb(), avr_dddddcccc(), avr_dddddcccc_load32(), avr_dddddcccc_store32(), avr_dddddcccc_x(), avr_dddddcccc_xm(), avr_dddddcccc_xp(), avr_dddddcccc_y(), avr_dddddcccc_ym(), avr_dddddcccc_yp(), avr_dddddcccc_z(), avr_dddddcccc_zm(), avr_dddddcccc_zp(), avr_ddddrrrr(), avr_ddddrrrr_2x(), avr_KKddKKKK(), avr_kkkddddkkkk_load16(), avr_kkkddddkkkk_store16(), avr_KKKKcccc(), avr_KKKKddddKKKK(), avr_kkkkkccck(), avr_kkkkkkkccc(), avr_kkkkkkkkkkkk(), avr_qcqqcdddddcqqq_y(), avr_qcqqcdddddcqqq_z(), avr_qcqqcrrrrrcqqq_y(), avr_qcqqcrrrrrcqqq_z(), avr_rdddddrrrr(), avr_rrrrrcbbb(), avr_rrrrrcccc_x(), avr_rrrrrcccc_xm(), avr_rrrrrcccc_xp(), avr_rrrrrcccc_y(), avr_rrrrrcccc_ym(), avr_rrrrrcccc_yp(), avr_rrrrrcccc_z(), avr_rrrrrcccc_zm(), avr_rrrrrcccc_zp(), avr_spmz(), bra(), bsr(), byte_stringify(), bytecode_snprint(), class_stringify(), class_stringify_addr(), database_load(), entry_stringify(), field_stringify(), field_stringify_addr(), first_nibble_is_0(), first_nibble_is_2(), first_nibble_is_3(), first_nibble_is_4(), first_nibble_is_6(), first_nibble_is_8(), first_nibble_is_c(), gb_analysis_add_hl(), gb_analysis_add_sp(), gb_analysis_and_bit(), gb_analysis_and_res(), gb_analysis_cb_rl(), gb_analysis_cb_rlc(), gb_analysis_cb_rr(), gb_analysis_cb_rrc(), gb_analysis_cb_sla(), gb_analysis_cb_sra(), gb_analysis_cb_srl(), gb_analysis_cb_swap(), gb_analysis_esil_call(), gb_analysis_esil_ccall(), gb_analysis_esil_cjmp(), gb_analysis_esil_cret(), gb_analysis_esil_jmp(), gb_analysis_id(), gb_analysis_load(), gb_analysis_load_hl(), gb_analysis_mov_hl_sp(), gb_analysis_mov_ime(), gb_analysis_mov_imm(), gb_analysis_mov_reg(), gb_analysis_or_set(), gb_analysis_pp(), gb_analysis_store(), gb_analysis_store_hl(), gb_analysis_xoaasc(), gb_analysis_xoaasc_imm(), get_atomic_type(), get_callable_type(), get_word_from_canvas(), import_stringify(), java_disassemble(), libs_stringify(), mk_reg_str(), mov_imm_reg(), movl_pcdisp_reg(), movl_rdisp_reg(), movl_reg_rdisp(), movw_pcdisp_reg(), parse(), parse_localvar(), pic18_cond_branch(), rsp_op(), rz_analysis_cc_del(), rz_arm_cs_analysis_op_32_esil(), rz_arm_cs_analysis_op_64_esil(), rz_arm_cs_esil_prefix_cond(), rz_pseudo_convert(), rz_serialize_analysis_blocks_save(), rz_serialize_analysis_functions_save(), rz_test_test_database_load_fuzz(), save_atomic_type(), save_callable(), save_enum(), save_struct(), save_typedef(), save_union(), section_stringify(), section_stringify_addr(), spc700_disas(), string_stringify(), string_stringify_addr(), symbol_stringify(), symbol_stringify_addr(), wasm_dis(), and wasm_op().
Cuts the current string into a substring.
Only to be used on strings, not binary buffers. If len > sb->len - from
, then the resulting size will be truncated appropriately.
Definition at line 122 of file strbuf.c.
References from, len, RZ_MIN, rz_return_val_if_fail, rz_strbuf_get(), s, and sb.
Referenced by __update_panel_title(), flirt_pat_write_line(), parse_function_args_and_vars(), rz_analysis_fcn_format_sig(), sdb_save_dwarf_function(), and type_as_pretty_string().
Definition at line 290 of file strbuf.c.
References free(), malloc(), p, rz_return_val_if_fail, rz_strbuf_append(), sb, and vsnprintf.
Referenced by parser_debug(), parser_error(), parser_warning(), and rz_strbuf_appendf().
RZ_API const char RZ_API const char* rz_strbuf_vsetf | ( | RzStrBuf * | sb, |
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 177 of file strbuf.c.
References done, free(), malloc(), NULL, p, rz_return_val_if_fail, rz_strbuf_set(), sb, and vsnprintf.
Referenced by rz_strbuf_initf(), and rz_strbuf_setf().