| 7273 | } |
| 7274 | |
| 7275 | static XML_Char * |
| 7276 | poolStoreString(STRING_POOL *pool, const ENCODING *enc, const char *ptr, |
| 7277 | const char *end) { |
| 7278 | if (! poolAppend(pool, enc, ptr, end)) |
| 7279 | return NULL; |
| 7280 | if (pool->ptr == pool->end && ! poolGrow(pool)) |
| 7281 | return NULL; |
| 7282 | *(pool->ptr)++ = 0; |
| 7283 | return pool->start; |
| 7284 | } |
| 7285 | |
| 7286 | static size_t |
| 7287 | poolBytesToAllocateFor(int blockSize) { |
no test coverage detected