PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ get_key_index()

static uint32_t get_key_index ( mvt_agg_context ctx,
char *  name 
)
static

Definition at line 284 of file mvt.c.

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

Referenced by parse_jsonb(), and parse_values().

285 {
286  struct mvt_kv_key *kv;
287  size_t size = strlen(name);
288  HASH_FIND(hh, ctx->keys_hash, name, size, kv);
289  if (!kv)
290  return UINT32_MAX;
291  return kv->id;
292 }
uint32_t id
Definition: mvt.c:56
#define HASH_FIND(hh, head, keyptr, keylen, out)
Definition: uthash.h:132
#define UINT32_MAX
Definition: lwin_wkt_lex.c:343
Definition: mvt.c:54
struct mvt_kv_key * keys_hash
Definition: mvt.h:59
UT_hash_handle hh
Definition: mvt.c:57
char * name
Definition: mvt.c:55
Here is the caller graph for this function: