| 8080 | } |
| 8081 | |
| 8082 | static XML_Char * |
| 8083 | poolStoreString(STRING_POOL *pool, const ENCODING *enc, const char *ptr, |
| 8084 | const char *end) { |
| 8085 | if (! poolAppend(pool, enc, ptr, end)) |
| 8086 | return NULL; |
| 8087 | if (pool->ptr == pool->end && ! poolGrow(pool)) |
| 8088 | return NULL; |
| 8089 | *(pool->ptr)++ = 0; |
| 8090 | return pool->start; |
| 8091 | } |
| 8092 | |
| 8093 | static size_t |
| 8094 | poolBytesToAllocateFor(int blockSize) { |
no test coverage detected