MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _open_buffer

Method _open_buffer

core/io/xml_parser.cpp:483–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483Error XMLParser::_open_buffer(const uint8_t *p_buffer, size_t p_size) {
484 ERR_FAIL_COND_V(p_size == 0, ERR_INVALID_DATA);
485 ERR_FAIL_NULL_V(p_buffer, ERR_INVALID_DATA);
486
487 if (data_copy) {
488 memdelete_arr(data_copy);
489 data_copy = nullptr;
490 }
491
492 length = p_size;
493 data = (const char *)p_buffer;
494 P = data;
495 current_line = 0;
496
497 return OK;
498}
499
500Error XMLParser::open(const String &p_path) {
501 Error err;

Callers 4

load_xmlMethod · 0.80

Calls 1

memdelete_arrFunction · 0.85

Tested by

no test coverage detected