removeAll method

int removeAll()

Removes (deletes) all objects in this box. Returns the number of removed objects.

Implementation

int removeAll() {
  final removedItems = malloc<Uint64>();
  try {
    checkObx(C.box_remove_all(_ptr, removedItems));
    return removedItems.value;
  } finally {
    malloc.free(removedItems);
  }
}