Rizin
unix-like reverse engineering framework and cli tools
|
#include "class_const_pool.h"
Go to the source code of this file.
Functions | |
static ConstPool * | constant_pool_copy_from_buffer (RzBuffer *buf, ConstPool *cpool, const st64 size) |
ConstPool * | java_constant_null_new (ut64 offset) |
ConstPool * | java_constant_pool_new (RzBuffer *buf, ut64 offset) |
void | java_constant_pool_free (ConstPool *cpool) |
const char * | java_constant_pool_tag_name (const ConstPool *cpool) |
bool | java_constant_pool_is_string (const ConstPool *cpool) |
bool | java_constant_pool_is_number (const ConstPool *cpool) |
bool | java_constant_pool_is_import (const ConstPool *cpool) |
bool | java_constant_pool_requires_null (const ConstPool *cpool) |
char * | java_constant_pool_stringify (const ConstPool *cpool) |
ut32 | java_constant_pool_resolve (const ConstPool *cpool, ut16 *arg0, ut16 *arg1) |
|
static |
Definition at line 6 of file class_const_pool.c.
References java_constant_pool_t::buffer, free(), malloc(), NULL, rz_buf_read(), rz_warn_if_reached, and java_constant_pool_t::size.
Referenced by java_constant_pool_new().
Definition at line 20 of file class_const_pool.c.
References NULL, java_constant_pool_t::offset, RZ_NEW0, and rz_return_val_if_fail.
Referenced by java_class_parse().
void java_constant_pool_free | ( | ConstPool * | cpool | ) |
Definition at line 78 of file class_const_pool.c.
References java_constant_pool_t::buffer, and free().
Referenced by rz_bin_java_class_free().
Definition at line 145 of file class_const_pool.c.
References CONSTANT_POOL_FIELDREF, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_METHODREF, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_as_libraries(), rz_bin_java_class_const_pool_as_imports(), and rz_bin_java_class_const_pool_as_symbols().
Definition at line 137 of file class_const_pool.c.
References CONSTANT_POOL_DOUBLE, CONSTANT_POOL_FLOAT, CONSTANT_POOL_INTEGER, CONSTANT_POOL_LONG, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_const_pool_as_json(), rz_bin_java_class_const_pool_as_text(), and rz_bin_java_class_const_pool_resolve_index().
Definition at line 132 of file class_const_pool.c.
References CONSTANT_POOL_UNICODE, CONSTANT_POOL_UTF8, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_const_pool_as_json(), rz_bin_java_class_const_pool_as_text(), rz_bin_java_class_const_pool_resolve_index(), rz_bin_java_class_fields_as_binfields(), rz_bin_java_class_fields_as_symbols(), rz_bin_java_class_language(), rz_bin_java_class_methods_as_symbols(), and rz_bin_java_class_strings().
Definition at line 27 of file class_const_pool.c.
References CONSTANT_POOL_CLASS, constant_pool_copy_from_buffer(), CONSTANT_POOL_DOUBLE, CONSTANT_POOL_DYNAMIC, CONSTANT_POOL_FIELDREF, CONSTANT_POOL_FLOAT, CONSTANT_POOL_INTEGER, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_INVOKEDYNAMIC, CONSTANT_POOL_LONG, CONSTANT_POOL_METHODHANDLE, CONSTANT_POOL_METHODREF, CONSTANT_POOL_METHODTYPE, CONSTANT_POOL_MODULE, CONSTANT_POOL_NAMEANDTYPE, CONSTANT_POOL_PACKAGE, CONSTANT_POOL_STRING, CONSTANT_POOL_UNICODE, CONSTANT_POOL_UTF8, CONSTANT_POOL_ZERO, free(), NULL, java_constant_pool_t::offset, PFMT64x, rz_buf_read8(), rz_buf_read_be16, rz_buf_seek(), RZ_LOG_ERROR, RZ_NEW0, rz_return_val_if_fail, SEEK_SET, and java_constant_pool_t::tag.
Referenced by java_class_parse().
Definition at line 152 of file class_const_pool.c.
References CONSTANT_POOL_DOUBLE, CONSTANT_POOL_LONG, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by java_class_parse().
Definition at line 215 of file class_const_pool.c.
References java_constant_pool_t::buffer, CONSTANT_POOL_CLASS, CONSTANT_POOL_DYNAMIC, CONSTANT_POOL_FIELDREF, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_INVOKEDYNAMIC, CONSTANT_POOL_METHODHANDLE, CONSTANT_POOL_METHODREF, CONSTANT_POOL_METHODTYPE, CONSTANT_POOL_MODULE, CONSTANT_POOL_NAMEANDTYPE, CONSTANT_POOL_PACKAGE, CONSTANT_POOL_STRING, rz_read_be16(), rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_as_libraries(), rz_bin_java_class_as_source_code(), rz_bin_java_class_const_pool_as_imports(), rz_bin_java_class_const_pool_as_symbols(), rz_bin_java_class_const_pool_resolve_index(), rz_bin_java_class_interfaces_as_json(), rz_bin_java_class_interfaces_as_text(), rz_bin_java_class_name(), and rz_bin_java_class_super().
Definition at line 159 of file class_const_pool.c.
References java_constant_pool_t::buffer, CONSTANT_POOL_CLASS, CONSTANT_POOL_DOUBLE, CONSTANT_POOL_DYNAMIC, CONSTANT_POOL_FIELDREF, CONSTANT_POOL_FLOAT, CONSTANT_POOL_INTEGER, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_INVOKEDYNAMIC, CONSTANT_POOL_LONG, CONSTANT_POOL_METHODHANDLE, CONSTANT_POOL_METHODREF, CONSTANT_POOL_METHODTYPE, CONSTANT_POOL_MODULE, CONSTANT_POOL_NAMEANDTYPE, CONSTANT_POOL_PACKAGE, CONSTANT_POOL_STRING, CONSTANT_POOL_UNICODE, CONSTANT_POOL_UTF8, NULL, PFMT32x, PFMT64x, rz_read_be16(), rz_read_be32(), rz_read_be64(), rz_read_be_double(), rz_read_be_float(), rz_return_val_if_fail, rz_str_escape_mutf8_for_json(), rz_str_newf(), java_constant_pool_t::size, st32, st64, java_constant_pool_t::tag, and value.
Referenced by java_class_constant_pool_stringify_at(), java_set_sdb(), resolve_const_pool_index(), rz_bin_java_class_const_pool_as_json(), rz_bin_java_class_const_pool_as_text(), rz_bin_java_class_const_pool_resolve_index(), rz_bin_java_class_fields_as_binfields(), rz_bin_java_class_fields_as_symbols(), rz_bin_java_class_language(), rz_bin_java_class_methods_as_symbols(), and rz_bin_java_class_strings().
Definition at line 86 of file class_const_pool.c.
References CONSTANT_POOL_CLASS, CONSTANT_POOL_DOUBLE, CONSTANT_POOL_DYNAMIC, CONSTANT_POOL_FIELDREF, CONSTANT_POOL_FLOAT, CONSTANT_POOL_INTEGER, CONSTANT_POOL_INTERFACEMETHODREF, CONSTANT_POOL_INVOKEDYNAMIC, CONSTANT_POOL_LONG, CONSTANT_POOL_METHODHANDLE, CONSTANT_POOL_METHODREF, CONSTANT_POOL_METHODTYPE, CONSTANT_POOL_MODULE, CONSTANT_POOL_NAMEANDTYPE, CONSTANT_POOL_PACKAGE, CONSTANT_POOL_STRING, CONSTANT_POOL_UNICODE, CONSTANT_POOL_UTF8, CONSTANT_POOL_ZERO, NULL, rz_return_val_if_fail, and java_constant_pool_t::tag.
Referenced by rz_bin_java_class_const_pool_as_json(), and rz_bin_java_class_const_pool_as_text().