Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | WIRE_VARINT 0 |
#define | WIRE_64_BIT 1 |
#define | WIRE_LEN_DELIM 2 |
#define | WIRE_START_GRP 3 |
#define | WIRE_END_GRP 4 |
#define | WIRE_32_BIT 5 |
Typedefs | |
typedef float | ft32 |
typedef double | ft64 |
Functions | |
static const char * | s_wire (const ut8 byte) |
static void | pad (RzStrBuf *sb, ut32 count) |
static bool | is_string (const ut8 *start, const ut8 *end) |
static void | decode_array (RzStrBuf *sb, const ut8 *start, const ut8 *end) |
static void | decode_buffer (RzStrBuf *sb, const ut8 *start, const ut8 *end, ut32 padcnt, bool debug) |
RZ_API char * | rz_protobuf_decode (const ut8 *start, const ut64 size, bool debug) |
#define WIRE_32_BIT 5 |
Definition at line 15 of file protobuf.c.
#define WIRE_64_BIT 1 |
Definition at line 11 of file protobuf.c.
#define WIRE_END_GRP 4 |
Definition at line 14 of file protobuf.c.
#define WIRE_LEN_DELIM 2 |
Definition at line 12 of file protobuf.c.
#define WIRE_START_GRP 3 |
Definition at line 13 of file protobuf.c.
#define WIRE_VARINT 0 |
Definition at line 10 of file protobuf.c.
typedef float ft32 |
Definition at line 7 of file protobuf.c.
typedef double ft64 |
Definition at line 8 of file protobuf.c.
Definition at line 54 of file protobuf.c.
References test_evm::end, rz_strbuf_appendf(), sb, and start.
Referenced by decode_buffer().
|
static |
Definition at line 62 of file protobuf.c.
References debug, decode_array(), test_evm::end, eprintf, f, i, is_string(), pad(), PFMT64d, PFMT64u, read_u32_leb128(), read_u64_leb128(), rz_strbuf_appendf(), s_wire(), sb, st32, st64, start, ut64(), WIRE_32_BIT, WIRE_64_BIT, WIRE_END_GRP, WIRE_LEN_DELIM, WIRE_START_GRP, and WIRE_VARINT.
Referenced by rz_protobuf_decode().
Definition at line 43 of file protobuf.c.
References test_evm::end, IS_PRINTABLE, and start.
Referenced by decode_buffer().
Definition at line 36 of file protobuf.c.
References count, i, rz_strbuf_appendf(), and sb.
Referenced by __strbuf_append_col_aligned(), __strbuf_append_col_aligned_fancy(), decode_buffer(), ds_print_optype(), ds_print_show_bytes(), ds_show_xrefs(), flirt_pat_write_line(), md5_finish_ctx(), parse_aranges_raw(), printPadded(), rz_analysis_function_vars_stackframe_handler(), rz_asn1_print_hex(), rz_asn1_print_hexdump_padded(), rz_asn1_print_padded(), rz_bv_as_hex_string(), rz_core_help_vars_print(), rz_core_visual_esil(), rz_egg_padding(), rz_list_mne_handler(), RZ_PACKED(), rz_print_offset_sg(), rz_str_pad(), 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(), and rz_x509_validity_dump().
Definition at line 146 of file protobuf.c.
References debug, decode_buffer(), test_evm::end, eprintf, NULL, rz_strbuf_drain(), rz_strbuf_new(), sb, and start.
Referenced by cmd_print_fromage().
Definition at line 17 of file protobuf.c.
References WIRE_32_BIT, WIRE_64_BIT, WIRE_END_GRP, WIRE_LEN_DELIM, WIRE_START_GRP, and WIRE_VARINT.
Referenced by decode_buffer().