• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/libtransmission/

Lines Matching refs:array

30  * @brief simple pointer array that resizes itself dynamically.
48 void tr_ptrArrayForeach( tr_ptrArray * array,
54 tr_ptrArrayNth( tr_ptrArray * array, int i )
56 assert( array );
58 assert( i < array->n_items );
60 return array->items[i];
63 /** @brief Remove the last item from the array and return it
64 @return the pointer that's been removed from the array
66 void* tr_ptrArrayPop( tr_ptrArray * array );
69 @return the last item in a tr_ptrArray, or NULL if the array is empty
71 static inline void* tr_ptrArrayBack( tr_ptrArray * array )
73 return array->n_items > 0 ? tr_ptrArrayNth( array, array->n_items - 1 )
84 /** @brief Peek at the array pointer and its size, for easy iteration */
85 void** tr_ptrArrayPeek( tr_ptrArray * array, int * size );
89 /** @brief Insert a pointer into the array at the specified position
91 int tr_ptrArrayInsert( tr_ptrArray * array, void * insertMe, int pos );
93 /** @brief Append a pointer into the array */
94 static inline int tr_ptrArrayAppend( tr_ptrArray * array, void * appendMe )
96 return tr_ptrArrayInsert( array, appendMe, -1 );
104 /** @brief Return the number of items in the array
105 @return the number of items in the array */
111 /** @brief Return True if the array has no pointers
112 @return True if the array has no pointers */
118 int tr_ptrArrayLowerBound( const tr_ptrArray * array,
123 /** @brief Insert a pointer into the array at the position determined by the sort function
125 int tr_ptrArrayInsertSorted( tr_ptrArray * array,
129 /** @brief Remove a pointer from an array sorted by the specified sort function
131 void* tr_ptrArrayRemoveSorted( tr_ptrArray * array,
135 /** @brief Find a pointer from an array sorted by the specified sort function
137 void* tr_ptrArrayFindSorted( tr_ptrArray * array,