pointer to the instance
The index to put the binary data at
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"); const index = 1; immutable(ubyte[]) binary_data = [0, 1, 0, 1]; rt = tagion_hibon_add_index_binary(&h, index, &binary_data[0], binary_data.length); assert(rt == ErrorCode.none); HiBON result = cast(HiBON) h.hibon; assert(result[index].get!(immutable(ubyte[])) == binary_data);
Add binary data to hibon instance by index