MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / AddString

Method AddString

src/plugin/kernel/include/AFCDataList.hpp:340–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338 }
339
340 bool AddString(const char* value) override
341 {
342 assert(value != nullptr);
343 dynamic_data_t* p = AddDynamicData();
344 p->nType = ArkDataType::DT_STRING;
345 p->mnstrValue = mnBufferUsed;
346
347 const size_t value_size = strlen(value) + 1;
348 char* data = AddBuffer(value_size);
349 memcpy(data, value, value_size);
350
351 return true;
352 }
353
354 virtual bool AddString(const char* value, const int nLength)
355 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected