| 7260 | } |
| 7261 | |
| 7262 | static XML_Char * |
| 7263 | poolStoreString(STRING_POOL *pool, const ENCODING *enc, const char *ptr, |
| 7264 | const char *end) { |
| 7265 | if (! poolAppend(pool, enc, ptr, end)) |
| 7266 | return NULL; |
| 7267 | if (pool->ptr == pool->end && ! poolGrow(pool)) |
| 7268 | return NULL; |
| 7269 | *(pool->ptr)++ = 0; |
| 7270 | return pool->start; |
| 7271 | } |
| 7272 | |
| 7273 | static size_t |
| 7274 | poolBytesToAllocateFor(int blockSize) { |
no test coverage detected