v3_keyed_stream_t v3_keyed_stream_open(char *url, v3_keyed_stream_open_t open_type);
void v3_keyed_stream_close(v3_keyed_stream_t stream);
+void v3_keyed_stream_preallocate_hint_key(v3_keyed_stream_t stream, char *key, uint64_t size);
v3_keyed_stream_key_t v3_keyed_stream_open_key(v3_keyed_stream_t stream, char *key);
void v3_keyed_stream_close_key(v3_keyed_stream_t stream, char *key);
sint64_t v3_keyed_stream_write_key(v3_keyed_stream_t stream,
void (*close)(v3_keyed_stream_t stream);
+ void (*preallocate_hint_key)(v3_keyed_stream_t stream,
+ char *key,
+ uint64_t size);
+
v3_keyed_stream_key_t (*open_key)(v3_keyed_stream_t stream,
char *key);
}
+void v3_keyed_stream_preallocate_hint_key(v3_keyed_stream_t stream, char *key, uint64_t size)
+{
+ V3_ASSERT(keyed_stream_hooks != NULL);
+ V3_ASSERT(keyed_stream_hooks->preallocate_hint_key != NULL);
+
+ return keyed_stream_hooks->preallocate_hint_key(stream,key,size);
+}
+
v3_keyed_stream_key_t v3_keyed_stream_open_key(v3_keyed_stream_t stream, char *key)
{
V3_ASSERT(keyed_stream_hooks != NULL);