PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ get_key_index_with_size()

static uint32_t get_key_index_with_size ( mvt_agg_context ctx,
const char *  name,
size_t  size 
)
static

Definition at line 299 of file mvt.c.

300 {
301  struct mvt_kv_key *kv;
302  HASH_FIND(hh, ctx->keys_hash, name, size, kv);
303  if (!kv)
304  return UINT32_MAX;
305  return kv->id;
306 }
#define UINT32_MAX
Definition: lwin_wkt_lex.c:343
struct mvt_kv_key * keys_hash
Definition: mvt.h:69
uint32_t id
Definition: mvt.c:60
UT_hash_handle hh
Definition: mvt.c:61
char * name
Definition: mvt.c:59
Definition: mvt.c:58
#define HASH_FIND(hh, head, keyptr, keylen, out)
Definition: uthash.h:132

References HASH_FIND, mvt_kv_key::hh, mvt_kv_key::id, mvt_agg_context::keys_hash, mvt_kv_key::name, and UINT32_MAX.

Referenced by parse_jsonb().

Here is the caller graph for this function: