pointer to the instance
pointer to the key
key length
pointer to the buffer to insert.
length of the buffer
HiBONT h; int rt = tagion_hibon_create(&h); assert(rt == ErrorCode.none, "could not create hibon"); string key = "some_key"; immutable(ubyte[]) binary_data = [0, 1, 0, 1]; rt = tagion_hibon_add_binary(&h, &key[0], key.length, &binary_data[0], binary_data.length); assert(rt == ErrorCode.none); HiBON result = cast(HiBON) h.hibon; assert(result[key].get!(immutable(ubyte[])) == binary_data);
Add binary data to hibon instance