MCPcopy Create free account
hub / github.com/acl-dev/acl / xml2

Method xml2

lib_acl_cpp/src/stdlib/xml2.cpp:235–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233//////////////////////////////////////////////////////////////////////
234
235xml2::xml2(const char* filepath, size_t max_len, const char* data /* = NULL */,
236 size_t init_len /* = 8192 */, size_t dbuf_nblock /* = 2 */,
237 size_t dbuf_capacity /* = 100 */)
238: xml(dbuf_nblock, dbuf_capacity)
239{
240 acl_assert(filepath && max_len > 0 && init_len > 0);
241
242 if (max_len < init_len) {
243 max_len = init_len;
244 }
245
246 iter_ = NULL;
247 root_ = NULL;
248
249 xml_ = acl_xml2_mmap_file(filepath, max_len, init_len, NULL);
250
251 if (data && *data) {
252 update(data);
253 }
254}
255
256xml2::xml2(fstream& fp, size_t max_len, const char* data /* = NULL */,
257 size_t init_len /* = 8192 */, size_t dbuf_nblock /* = 2 */,

Callers

nothing calls this directly

Calls 4

acl_xml2_mmap_fileFunction · 0.85
acl_xml2_mmap_fdFunction · 0.85
file_handleMethod · 0.80
updateFunction · 0.50

Tested by

no test coverage detected