Changeset 540 for trunk/thune/array.c
- Timestamp:
- 07/04/08 03:46:13 (5 months ago)
- Files:
-
- 1 modified
-
trunk/thune/array.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/array.c
r255 r540 182 182 183 183 184 /** 185 Create space in the array for count elements starting at index. 186 The memory in the new space is uninitialized. 187 */ 188 void ur_arrayExpand( UArray* arr, int elemSize, int index, int count ) 189 { 190 ur_arrayReserve( arr, elemSize, arr->used + count ); 191 192 if( index < arr->used ) 193 { 194 char* buf = arr->ptr.c + (elemSize * index); 195 memMove( buf + (elemSize * count), buf, 196 elemSize * (arr->used - index) ); 197 } 198 199 arr->used += count; 200 } 201 202 184 203 /*EOF*/
