MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlHashCreateDict

Function xmlHashCreateDict

ThirdParty/libxml2/vtklibxml2/hash.c:208–218  ·  view source on GitHub ↗

* xmlHashCreateDict: * @size: the size of the hash table * @dict: a dictionary to use for the hash * * Create a new hash table backed by a dictionary. This can reduce * resource usage considerably if most keys passed to API functions * originate from this dictionary. * * Returns the newly created object, or NULL if a memory allocation failed. */

Source from the content-addressed store, hash-verified

206 * Returns the newly created object, or NULL if a memory allocation failed.
207 */
208xmlHashTablePtr
209xmlHashCreateDict(int size, xmlDictPtr dict) {
210 xmlHashTablePtr hash;
211
212 hash = xmlHashCreate(size);
213 if (hash != NULL) {
214 hash->dict = dict;
215 xmlDictReference(dict);
216 }
217 return(hash);
218}
219
220/**
221 * xmlHashFree:

Callers 12

xmlAddElementDeclFunction · 0.85
xmlAddAttributeDeclFunction · 0.85
xmlAddNotationDeclFunction · 0.85
xmlAddIDInternalFunction · 0.85
xmlAddRefFunction · 0.85
xmlGetDtdElementDesc2Function · 0.85
xmlAddEntityFunction · 0.85
xmlSchemaBucketCreateFunction · 0.85
xmlSchemaSubstGroupAddFunction · 0.85
xmlSchemaAddComponentsFunction · 0.85
xmlAddDefAttrsFunction · 0.85
xmlAddSpecialAttrFunction · 0.85

Calls 2

xmlHashCreateFunction · 0.85
xmlDictReferenceFunction · 0.85

Tested by

no test coverage detected