etebase_collection_manager_create_raw method
Create a new collection using raw metadata
Unlike etebase_collection_manager_create
, this receives the metadata as valid EtebaseItemMetadata
-like struct encoded using msgpack
.
This can be used to create collections with custom metadata types.
Should be destroyed with etebase_collection_destroy
@param this_ the object handle
@param collection_type the type of Item
s stored in the collection
@param meta the metadata for the collection as a byte array
@param meta_size the metadata size
@param content the collection's content as a byte array. This is unrelated to the Item
s in the collection.
@param content_size the content size
Implementation
ffi.Pointer<EtebaseCollection> etebase_collection_manager_create_raw(
ffi.Pointer<EtebaseCollectionManager> this_,
ffi.Pointer<ffi.Char> collection_type,
ffi.Pointer<ffi.Void> meta,
int meta_size,
ffi.Pointer<ffi.Void> content,
int content_size,
) {
return _etebase_collection_manager_create_raw(
this_,
collection_type,
meta,
meta_size,
content,
content_size,
);
}