50 const char *
lydict_insert(
struct ly_ctx *ctx,
const char *value,
size_t len);
const char * lydict_insert_zc(struct ly_ctx *ctx, char *value)
Insert string into dictionary - zerocopy version. If the string is already present, only a reference counter is incremented and no memory allocation is performed. This insert function variant avoids duplication of specified value - it is inserted into the dictionary directly.
const char * lydict_insert(struct ly_ctx *ctx, const char *value, size_t len)
Insert string into dictionary. If the string is already present, only a reference counter is incremen...
void lydict_remove(struct ly_ctx *ctx, const char *value)
Remove specified string from the dictionary. It decrement reference counter for the string and if it ...