Skip to content

Commit

Permalink
Update list.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanpranav authored Oct 27, 2024
1 parent d859c66 commit 551b390
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ Exception list(List instance, size_t itemSize, size_t capacity);
*/
Exception list_add(List instance, Object item);

/**
*
*
* @param instance the `List` instance.
* @param items
* @param count
* @return An exception; otherwise `0`. This method always returns `0` if the
* current capacity is sufficient.
*/
Exception list_add_range(List instance, Object items, size_t count);

/**
* Ensures that the capacity of this list is at least the specified capacity.
* If the current capacity is less than the required minimum capacity, it is
Expand Down

0 comments on commit 551b390

Please sign in to comment.