| 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()) { |
no outgoing calls
no test coverage detected