Lines Matching refs:pool
242 xmlDictStringsPtr pool; in xmlDictAddString() local
250 pool = dict->strings; in xmlDictAddString()
251 while (pool != NULL) { in xmlDictAddString()
252 if (pool->end - pool->free > namelen) in xmlDictAddString()
254 if (pool->size > size) size = pool->size; in xmlDictAddString()
255 limit += pool->size; in xmlDictAddString()
256 pool = pool->next; in xmlDictAddString()
261 if (pool == NULL) { in xmlDictAddString()
270 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddString()
271 if (pool == NULL) in xmlDictAddString()
273 pool->size = size; in xmlDictAddString()
274 pool->nbStrings = 0; in xmlDictAddString()
275 pool->free = &pool->array[0]; in xmlDictAddString()
276 pool->end = &pool->array[size]; in xmlDictAddString()
277 pool->next = dict->strings; in xmlDictAddString()
278 dict->strings = pool; in xmlDictAddString()
284 ret = pool->free; in xmlDictAddString()
285 memcpy(pool->free, name, namelen); in xmlDictAddString()
286 pool->free += namelen; in xmlDictAddString()
287 *(pool->free++) = 0; in xmlDictAddString()
288 pool->nbStrings++; in xmlDictAddString()
308 xmlDictStringsPtr pool; in xmlDictAddQString() local
318 pool = dict->strings; in xmlDictAddQString()
319 while (pool != NULL) { in xmlDictAddQString()
320 if (pool->end - pool->free > namelen + plen + 1) in xmlDictAddQString()
322 if (pool->size > size) size = pool->size; in xmlDictAddQString()
323 limit += pool->size; in xmlDictAddQString()
324 pool = pool->next; in xmlDictAddQString()
329 if (pool == NULL) { in xmlDictAddQString()
338 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddQString()
339 if (pool == NULL) in xmlDictAddQString()
341 pool->size = size; in xmlDictAddQString()
342 pool->nbStrings = 0; in xmlDictAddQString()
343 pool->free = &pool->array[0]; in xmlDictAddQString()
344 pool->end = &pool->array[size]; in xmlDictAddQString()
345 pool->next = dict->strings; in xmlDictAddQString()
346 dict->strings = pool; in xmlDictAddQString()
352 ret = pool->free; in xmlDictAddQString()
353 memcpy(pool->free, prefix, plen); in xmlDictAddQString()
354 pool->free += plen; in xmlDictAddQString()
355 *(pool->free++) = ':'; in xmlDictAddQString()
356 memcpy(pool->free, name, namelen); in xmlDictAddQString()
357 pool->free += namelen; in xmlDictAddQString()
358 *(pool->free++) = 0; in xmlDictAddQString()
359 pool->nbStrings++; in xmlDictAddQString()
769 xmlDictStringsPtr pool, nextp; in xmlDictFree() local
809 pool = dict->strings; in xmlDictFree()
810 while (pool != NULL) { in xmlDictFree()
811 nextp = pool->next; in xmlDictFree()
812 xmlFree(pool); in xmlDictFree()
813 pool = nextp; in xmlDictFree()
1183 xmlDictStringsPtr pool; in xmlDictOwns() local
1187 pool = dict->strings; in xmlDictOwns()
1188 while (pool != NULL) { in xmlDictOwns()
1189 if ((str >= &pool->array[0]) && (str <= pool->free)) in xmlDictOwns()
1191 pool = pool->next; in xmlDictOwns()
1248 xmlDictStringsPtr pool; in xmlDictGetUsage() local
1253 pool = dict->strings; in xmlDictGetUsage()
1254 while (pool != NULL) { in xmlDictGetUsage()
1255 limit += pool->size; in xmlDictGetUsage()
1256 pool = pool->next; in xmlDictGetUsage()