MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / WriteData

Method WriteData

src/render/app/app_shared_info.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 void AppSharedInfo::WriteData(const std::string& shm_name, const std::string& data) {
22 GuaranteeTargetMemory(shm_name);
23// auto shm = target_memories_[shm_name];
24// if (data.size() > kAppSharedInfoBuffSize) {
25// LOGE("Write to : {} failed, over size.", shm_name);
26// return;
27// }
28// memcpy(shm->begin(), data.data(), data.size());
29// LOGI("write to shm : {}, data size: {}", shm_name, data.size());
30 }
31
32 void AppSharedInfo::GuaranteeTargetMemory(const std::string& shm_name) {
33// if (target_memories_.find(shm_name) != target_memories_.end()) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected