| 8064 | } |
| 8065 | |
| 8066 | static XML_Char * |
| 8067 | poolStoreString(STRING_POOL *pool, const ENCODING *enc, const char *ptr, |
| 8068 | const char *end) { |
| 8069 | if (! poolAppend(pool, enc, ptr, end)) |
| 8070 | return NULL; |
| 8071 | if (pool->ptr == pool->end && ! poolGrow(pool)) |
| 8072 | return NULL; |
| 8073 | *(pool->ptr)++ = 0; |
| 8074 | return pool->start; |
| 8075 | } |
| 8076 | |
| 8077 | static size_t |
| 8078 | poolBytesToAllocateFor(int blockSize) { |
no test coverage detected
searching dependent graphs…