cacheSave method

Future<Uint8List> cacheSave(
  1. EtebaseItem item
)

Save the item object to a byte buffer for caching

The item can later be loaded using etebase_item_manager_cache_load

@param this_ the object handle @param item the item object to be cached @paramout ret_size to hold the size of the returned buffer

Implementation

Future<_i6.Uint8List> cacheSave(EtebaseItem item) async {
  final data = await _isolate.invoke<_i7.TransferableTypedData>(
    #etebase_item_manager_cache_save,
    <dynamic>[
      _pointer.address,
      item._pointer.address,
    ],
  );
  return data.materialize().asUint8List();
}