tagion.api.hibon

API for using hibon

Members

Functions

tagion_hibon_add_bigint
int tagion_hibon_add_bigint(const(HiBONT*) instance, char* key, size_t key_len, uint8_t* bigint_buf, size_t bigint_buf_len)

Add big number to hibon

tagion_hibon_add_binary
int tagion_hibon_add_binary(const(HiBONT*) instance, char* key, size_t key_len, uint8_t* buf, size_t buf_len)

Add binary data to hibon instance

tagion_hibon_add_bool
int tagion_hibon_add_bool(const(HiBONT*) h, char* key, size_t key_len, bool value)

Add boolean to hibon instance

tagion_hibon_add_document
int tagion_hibon_add_document(HiBONT* instance, char* key, size_t key_len, const(uint8_t*) buf, size_t buf_len)

Add document to hibon

tagion_hibon_add_float32
int tagion_hibon_add_float32(const(HiBONT*) h, char* key, size_t key_len, float value)

Add float32 to hibon instance

tagion_hibon_add_float64
int tagion_hibon_add_float64(const(HiBONT*) h, char* key, size_t key_len, double value)

Add float64 to hibon instance

tagion_hibon_add_hibon
int tagion_hibon_add_hibon(const(HiBONT*) instance, char* key, size_t key_len, const(HiBONT*) sub_instance)

Add hibon to hibon instance

tagion_hibon_add_index_binary
int tagion_hibon_add_index_binary(const(HiBONT*) instance, size_t index, uint8_t* buf, size_t buf_len)

Add binary data to hibon instance by index

tagion_hibon_add_index_document
int tagion_hibon_add_index_document(HiBONT* instance, size_t index, const(uint8_t*) buf, size_t buf_len)

Add document to hibon by index

tagion_hibon_add_index_hibon
int tagion_hibon_add_index_hibon(const(HiBONT*) instance, size_t index, const(HiBONT*) sub_instance)

Add hibon to hibon instance by index

tagion_hibon_add_int32
int tagion_hibon_add_int32(const(HiBONT*) h, char* key, size_t key_len, int32_t value)

Add int32 to hibon instance

tagion_hibon_add_int64
int tagion_hibon_add_int64(const(HiBONT*) h, char* key, size_t key_len, long value)

Add int64 to hibon instance

tagion_hibon_add_string
int tagion_hibon_add_string(const(HiBONT*) instance, char* key, size_t key_len, char* value, size_t value_len)

Insert string into hibon

tagion_hibon_add_time
int tagion_hibon_add_time(const(HiBONT*) instance, char* key, size_t key_len, const(int64_t) time)
tagion_hibon_add_uint32
int tagion_hibon_add_uint32(const(HiBONT*) h, char* key, size_t key_len, uint32_t value)

Add uint32 to hibon instance

tagion_hibon_add_uint64
int tagion_hibon_add_uint64(const(HiBONT*) h, char* key, size_t key_len, ulong value)

Add uint64 to hibon instance

tagion_hibon_create
int tagion_hibon_create(HiBONT* instance)

Create new hibon object

tagion_hibon_free
void tagion_hibon_free(HiBONT* instance)

Free a HiBON object

tagion_hibon_get_document
int tagion_hibon_get_document(const(HiBONT*) instance, uint8_t** buf, size_t* buf_len)

Convert a hibon to a document

tagion_hibon_get_text
int tagion_hibon_get_text(const(HiBONT*) instance, int text_format, char** str, size_t* str_len)

* Get the string representation of a hibon * * Params: * instance = Reference to the hibon object instance * text_format = tagion.api.document.DocumentTextFormat * str = reference to the returned string * str_len = The length of the returned string * Returns: tagion.api.errors.ErrorCode

tagion_hibon_has_member
int tagion_hibon_has_member(HiBONT* instance, char* str, size_t str_len, bool* result)
tagion_hibon_has_member_index
int tagion_hibon_has_member_index(HiBONT* instance, size_t index, bool* result)
tagion_hibon_remove_by_index
int tagion_hibon_remove_by_index(HiBONT* instance, size_t index)
tagion_hibon_remove_by_key
int tagion_hibon_remove_by_key(HiBONT* instance, char* str, size_t str_len)

Structs

HiBONT
struct HiBONT

HiBON Type