Searched refs:usedSize (Results 1 – 7 of 7) sorted by relevance
31 size_t usedSize = 0; in CfCreateFuzzTest() local33 usedSize += sizeof(CfObjectType); in CfCreateFuzzTest()36 inStream.encodingFormat = *(reinterpret_cast<enum CfEncodingFormat *>(tmpData + usedSize)); in CfCreateFuzzTest()37 usedSize += sizeof(enum CfEncodingFormat); in CfCreateFuzzTest()38 inStream.len = *(reinterpret_cast<size_t *>(tmpData + usedSize)); in CfCreateFuzzTest()39 usedSize += sizeof(size_t); in CfCreateFuzzTest()40 if (inStream.len > size - usedSize) { in CfCreateFuzzTest()47 (void)memcpy_s(inStream.data, inStream.len, tmpData + usedSize, inStream.len); in CfCreateFuzzTest()
29 cache->usedSize = 0; in InitHiviewStaticCache()49 cache->usedSize = 0; in InitHiviewCache()68 if ((uint32)cache->size < (uint32)wLen + (uint32)cache->usedSize) { in WriteToCache()78 cache->usedSize += firstLen; in WriteToCache()89 cache->usedSize += secondLen; in WriteToCache()98 cache->usedSize += wLen; in WriteToCache()119 if (cache->usedSize < rLen) { in ReadFromCache()143 cache->usedSize -= rLen; in ReadFromCache()154 if (cache->usedSize < rLen) { in PrereadFromCache()190 cache->usedSize = 0; in DiscardCacheData()[all …]
41 uint16 usedSize; // 0-65535 member
176 if (c != NULL && c->usedSize > 0) { in CloseEventOutputFile()243 if ((c->usedSize + sizeof(HiEventCommon) + event->common.len) > EVENT_CACHE_SIZE) { in OutputEvent()251 if (c->usedSize >= HIVIEW_HIEVENT_FILE_BUF_SIZE || opt == OUTPUT_OPTION_DEBUG) { in OutputEvent()269 if ((c->usedSize + sizeof(HiEventCommon) + event->common.len) > EVENT_CACHE_SIZE) { in OutputEvent()334 outputSize = c->usedSize; in Output2Flash()344 while (c->usedSize >= sizeof(HiEventCommon) && outputSize >= (len + sizeof(HiEventCommon))) { in Output2Flash()390 uint32 usedSize; in ReadEventFile() local396 usedSize = GetFileUsedSize(f); in ReadEventFile()397 if (usedSize < len) { in ReadEventFile()398 len = usedSize; in ReadEventFile()[all …]
119 if (g_logCache.usedSize > 0) { in ClearLogOutput()186 if (g_logCache.usedSize >= HIVIEW_HILOG_FILE_BUF_SIZE) { in OutputLog()242 if (g_logCache.usedSize < sizeof(HiLogCommon)) { in OutputLog2TextFile()290 uint16 outputSize = g_logCache.usedSize; in OutputLog2BinFile()301 while (g_logCache.usedSize >= sizeof(HiLogCommon) && outputSize > (len + sizeof(HiLogCommon))) { in OutputLog2BinFile()355 uint32 usedSize = GetFileUsedSize(&g_logFile); in ReadLogFile() local356 if (usedSize < len) { in ReadLogFile()357 len = usedSize; in ReadLogFile()603 if (g_logCache.usedSize > 0) { in FlushLog()
71 uint32_t usedSize = 0; member81 .append(std::to_string(usedSize)).append(" ") in ToString()
164 statInfo.usedSize = fileSize * TRACE_COMPRESS_RATIO; in UpdateTrafficInfo()