Implement dc_array_t::is_empty()

This commit is contained in:
Alexander Krotov
2019-07-23 01:32:26 +03:00
parent 1e91f6a204
commit c335348f20
2 changed files with 6 additions and 2 deletions

View File

@@ -38,6 +38,10 @@ impl dc_array_t {
pub fn add_id(&mut self, item: uint32_t) {
self.add_uint(item as uintptr_t);
}
pub fn is_empty(&self) -> bool {
self.array.is_empty()
}
}
/**