Home | History | Annotate | Download | only in include

Lines Matching refs:XArray

49 typedef  struct _XArray  XArray;
53 /* Create new XArray, using given allocation and free function, and
56 extern XArray* VG_(newXA) ( void*(*alloc_fn)(const HChar*,SizeT),
61 /* Free all memory associated with an XArray. */
62 extern void VG_(deleteXA) ( XArray* );
64 /* Set the comparison function for this XArray. This clears an
67 extern void VG_(setCmpFnXA) ( XArray*, XACmpFn_t);
69 /* Add an element to an XArray. Element is copied into the XArray.
72 extern Word VG_(addToXA) ( XArray*, const void* elem );
74 /* Add a sequence of bytes to an XArray of bytes. Asserts if nbytes
77 extern Word VG_(addBytesToXA) ( XArray* xao, const void* bytesV, Word nbytes );
79 /* Sort an XArray using its comparison function, if set; else bomb.
81 extern void VG_(sortXA) ( XArray* );
88 extern Bool VG_(lookupXA) ( XArray*, const void* key,
99 extern Bool VG_(lookupXA_UNSAFE) ( XArray* xao, const void* key,
103 /* How elements are there in this XArray now? */
104 extern Word VG_(sizeXA) ( XArray* );
106 /* Index into the XArray. Checks bounds and bombs if the index is
113 extern void* VG_(indexXA) ( XArray*, Word );
115 /* Drop the last n elements of an XArray. Bombs if there are less
117 extern void VG_(dropTailXA) ( XArray*, Word );
119 /* Drop the first n elements of an XArray. Bombs if there are less
121 is the number of elements remaining in the XArray. */
122 extern void VG_(dropHeadXA) ( XArray*, Word );
124 /* Remove the specified element of an XArray, and slide all elements
128 extern void VG_(removeIndexXA)( XArray*, Word );
130 /* Insert an element into an XArray at the given index. The existing
132 as to make space. Element is copied into the XArray. This is an
135 extern void VG_(insertIndexXA)( XArray*, Word, const void* elem );
137 /* Make a new, completely independent copy of the given XArray, using
143 extern XArray* VG_(cloneXA)( const HChar* cc, XArray* xa );
151 extern void VG_(getContentsXA_UNSAFE)( XArray* sr,
155 /* Convenience function: printf into an XArray of HChar, adding stuff
157 length printf output in an XArray. Note that the resulting string
159 extern void VG_(xaprintf)( XArray* dst, const HChar* format, ... )