MCPcopy Create free account
hub / github.com/Geant4/geant4 / poolStoreString

Function poolStoreString

source/externals/expat/src/xmlparse.c:7262–7271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7260}
7261
7262static XML_Char *
7263poolStoreString(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
7273static size_t
7274poolBytesToAllocateFor(int blockSize) {

Callers 10

doContentFunction · 0.85
storeAttsFunction · 0.85
processXmlDeclFunction · 0.85
doPrologFunction · 0.85
appendAttributeValueFunction · 0.85
storeEntityValueFunction · 0.85
reportCommentFunction · 0.85
getAttributeIdFunction · 0.85
getElementTypeFunction · 0.85

Calls 2

poolAppendFunction · 0.85
poolGrowFunction · 0.85

Tested by

no test coverage detected