Lines Matching refs:second
30 if (it->second.type == FORMAT_TYPE_ADDR && it->second.addr != nullptr) { in CopyFormatDataMap()
31 free(it->second.addr); in CopyFormatDataMap()
32 it->second.addr = nullptr; in CopyFormatDataMap()
39 if (it->second.type != FORMAT_TYPE_ADDR || it->second.addr == nullptr) { in CopyFormatDataMap()
44 it->second.addr = reinterpret_cast<uint8_t *>(malloc(it->second.size)); in CopyFormatDataMap()
45 if (it->second.addr == nullptr) { in CopyFormatDataMap()
51 errno_t err = memcpy_s(reinterpret_cast<void *>(it->second.addr), in CopyFormatDataMap()
52 … it->second.size, reinterpret_cast<const void *>(from.at(it->first).addr), it->second.size); in CopyFormatDataMap()
55 free(it->second.addr); in CopyFormatDataMap()
66 if (it->second.type == FORMAT_TYPE_ADDR && it->second.addr != nullptr) { in ~Format()
67 free(it->second.addr); in ~Format()
68 it->second.addr = nullptr; in ~Format()
113 return ret.second; in PutIntValue()
122 return ret.second; in PutLongValue()
131 return ret.second; in PutFloatValue()
140 return ret.second; in PutDoubleValue()
149 return ret.second; in PutStringValue()
155 if (iter == formatMap_.end() || iter->second.type != FORMAT_TYPE_STRING) { in GetStringValue()
159 value = iter->second.stringVal; in GetStringValue()
166 if (iter == formatMap_.end() || iter->second.type != FORMAT_TYPE_INT32) { in GetIntValue()
170 value = iter->second.val.int32Val; in GetIntValue()
177 if (iter == formatMap_.end() || iter->second.type != FORMAT_TYPE_INT64) { in GetLongValue()
181 value = iter->second.val.int64Val; in GetLongValue()
188 if (iter == formatMap_.end() || iter->second.type != FORMAT_TYPE_FLOAT) { in GetFloatValue()
192 value = iter->second.val.floatVal; in GetFloatValue()
199 if (iter == formatMap_.end() || iter->second.type != FORMAT_TYPE_DOUBLE) { in GetDoubleValue()
203 value = iter->second.val.doubleVal; in GetDoubleValue()
228 return ret.second; in PutBuffer()
234 if (iter == formatMap_.end() || iter->second.type != FORMAT_TYPE_ADDR) { in GetBuffer()
238 *addr = iter->second.addr; in GetBuffer()
239 size = iter->second.size; in GetBuffer()
260 return iter->second.type; in GetValueType()
267 if (iter->second.type == FORMAT_TYPE_ADDR && iter->second.addr != nullptr) { in RemoveKey()
268 free(iter->second.addr); in RemoveKey()
269 iter->second.addr = nullptr; in RemoveKey()