pointer to the instance
pointer to the key
length of the key
big int buffer as serialized leb128
length of the buffer
ErrorCode
HiBONT h; int rt = tagion_hibon_create(&h); assert(rt == ErrorCode.none, "could not create hibon"); string key = "some_key"; auto big_number = BigNumber(321); auto big_number_data = big_number.serialize; rt = tagion_hibon_add_bigint(&h, &key[0], key.length, &big_number_data[0], big_number_data.length); assert(rt == ErrorCode.none); HiBON result = cast(HiBON) h.hibon; assert(result[key].get!(BigNumber) == big_number);
Add big number to hibon