Rizin
unix-like reverse engineering framework and cli tools
rz_str_constpool.h File Reference
#include <rz_types.h>
#include <sdbht.h>
#include <stdbool.h>

Go to the source code of this file.

Classes

struct  rz_str_constpool_t
 

Typedefs

typedef struct rz_str_constpool_t RzStrConstPool
 

Functions

RZ_API bool rz_str_constpool_init (RzStrConstPool *pool)
 
RZ_API void rz_str_constpool_fini (RzStrConstPool *pool)
 
RZ_API const char * rz_str_constpool_get (RzStrConstPool *pool, const char *str)
 

Typedef Documentation

◆ RzStrConstPool

Function Documentation

◆ rz_str_constpool_fini()

◆ rz_str_constpool_get()

RZ_API const char* rz_str_constpool_get ( RzStrConstPool pool,
const char *  str 
)

◆ rz_str_constpool_init()

RZ_API bool rz_str_constpool_init ( RzStrConstPool pool)

Definition at line 10 of file str_constpool.c.

10  {
11  pool->ht = ht_pp_new(NULL, kv_fini, NULL);
12  return pool->ht != NULL;
13 }
static void kv_fini(HtPPKv *kv)
Definition: str_constpool.c:6

References rz_str_constpool_t::ht, kv_fini(), and NULL.

Referenced by rz_analysis_new(), rz_bin_new(), rz_bin_source_line_info_builder_init(), rz_cons_canvas_new(), and rz_test_test_database_new().