MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / addInt64

Method addInt64

framework/utils/CicadaJSON.cpp:407–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void CicadaJSONArray::addInt64(int64_t value)
408{
409 std::lock_guard<std::mutex> lock(mMutex);
410
411 if (mArray) {
412 cJSON *number_item = cJSON_CreateNumber((double) value);
413 cJSON_AddItemToArray(mArray, number_item);
414 }
415}
416
417cJSON *CicadaJSONArray::getJSONCopy() const
418{

Callers 1

GetOptionMethod · 0.80

Calls 2

cJSON_CreateNumberFunction · 0.85
cJSON_AddItemToArrayFunction · 0.85

Tested by

no test coverage detected