36#define AS_DIGEST_VALUE_SIZE 20
41#define AS_NAMESPACE_MAX_SIZE 32
46#define AS_SET_MAX_SIZE 64
72typedef struct as_digest_s {
89typedef union as_key_value_u {
180typedef struct as_key_s {
311 return as_key_init_strp(key, ns, set, value,
false);
368 return as_key_init_rawp(key, ns, set, value, size,
false);
439as_key_new(
const char* ns,
const char* set,
const char* value);
505 return as_key_new_strp(ns, set, value,
false);
534as_key_new_rawp(
const char* ns,
const char* set,
const uint8_t* value, uint32_t size,
bool free);
558as_key_new_raw(
const char* ns,
const char* set,
const uint8_t* value, uint32_t size)
560 return as_key_new_rawp(ns, set, value, size,
false);
#define AS_DIGEST_VALUE_SIZE
char as_namespace[AS_NAMESPACE_MAX_SIZE]
char as_set[AS_SET_MAX_SIZE]
uint8_t as_digest_value[AS_DIGEST_VALUE_SIZE]
#define AS_NAMESPACE_MAX_SIZE
AS_EXTERN as_digest * as_key_digest(as_key *key)
static as_key * as_key_init_raw(as_key *key, const char *ns, const char *set, const uint8_t *value, uint32_t size)
AS_EXTERN as_key * as_key_init_digest(as_key *key, const char *ns, const char *set, const as_digest_value digest)
AS_EXTERN as_key * as_key_new_value(const char *ns, const char *set, const as_key_value *value)
AS_EXTERN as_key * as_key_new(const char *ns, const char *set, const char *value)
static as_key * as_key_new_str(const char *ns, const char *set, const char *value)
AS_EXTERN as_status as_key_set_digest(as_error *err, as_key *key)
AS_EXTERN as_key * as_key_new_rawp(const char *ns, const char *set, const uint8_t *value, uint32_t size, bool free)
AS_EXTERN as_key * as_key_init_strp(as_key *key, const char *ns, const char *set, const char *value, bool free)
AS_EXTERN as_key * as_key_init(as_key *key, const char *ns, const char *set, const char *value)
AS_EXTERN as_key * as_key_init_int64(as_key *key, const char *ns, const char *set, int64_t value)
AS_EXTERN as_key * as_key_new_int64(const char *ns, const char *set, int64_t value)
static as_key * as_key_init_str(as_key *key, const char *ns, const char *set, const char *value)
AS_EXTERN as_key * as_key_new_strp(const char *ns, const char *set, const char *value, bool free)
static as_key * as_key_new_raw(const char *ns, const char *set, const uint8_t *value, uint32_t size)
AS_EXTERN as_key * as_key_init_value(as_key *key, const char *ns, const char *set, const as_key_value *value)
AS_EXTERN void as_key_destroy(as_key *key)
AS_EXTERN as_key * as_key_init_rawp(as_key *key, const char *ns, const char *set, const uint8_t *value, uint32_t size, bool free)
AS_EXTERN as_key * as_key_new_digest(const char *ns, const char *set, const as_digest_value digest)