etebase_item_manager_create_raw method

Pointer<EtebaseItem> etebase_item_manager_create_raw(
  1. Pointer<EtebaseItemManager> this_,
  2. Pointer<Void> meta,
  3. int meta_size,
  4. Pointer<Void> content,
  5. int content_size,
)

Create a new item using raw metadata

Unlike etebase_item_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_item_destroy

@param this_ the object handle @param meta the metadata for the item as a byte array @param meta_size the metadata size @param content the item's content as a byte array @param content_size the content size

Implementation

ffi.Pointer<EtebaseItem> etebase_item_manager_create_raw(
  ffi.Pointer<EtebaseItemManager> this_,
  ffi.Pointer<ffi.Void> meta,
  int meta_size,
  ffi.Pointer<ffi.Void> content,
  int content_size,
) {
  return _etebase_item_manager_create_raw(
    this_,
    meta,
    meta_size,
    content,
    content_size,
  );
}