count method

int count({
  1. int limit = 0,
})

Returns the count of all stored Objects in this box. If limit is not zero, stops counting at the given limit.

Implementation

int count({int limit = 0}) {
  final count = malloc<Uint64>();
  try {
    checkObx(C.box_count(_cBox, limit, count));
    return count.value;
  } finally {
    malloc.free(count);
  }
}