MCPcopy Create free account
hub / github.com/bambulab/BambuStudio / poolStoreString

Function poolStoreString

deps/EXPAT/expat/xmlparse.c:7275–7284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7273}
7274
7275static XML_Char *
7276poolStoreString(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
7286static size_t
7287poolBytesToAllocateFor(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