etebase_collection_manager_create_raw method

Pointer<EtebaseCollection> etebase_collection_manager_create_raw(
  1. Pointer<EtebaseCollectionManager> this_,
  2. Pointer<Char> collection_type,
  3. Pointer<Void> meta,
  4. int meta_size,
  5. Pointer<Void> content,
  6. int content_size,
)

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 Items 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 Items 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,
  );
}