Home
last modified time | relevance | path

Searched refs:usedSize (Results 1 – 7 of 7) sorted by relevance

/base/security/certificate_framework/test/fuzztest/cfcreate_fuzzer/
Dcfcreate_fuzzer.cpp31 size_t usedSize = 0; in CfCreateFuzzTest() local
33 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()
/base/hiviewdfx/hiview_lite/
Dhiview_cache.c29 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 …]
Dhiview_cache.h41 uint16 usedSize; // 0-65535 member
/base/hiviewdfx/hievent_lite/frameworks/
Dhiview_output_event.c176 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() local
396 usedSize = GetFileUsedSize(f); in ReadEventFile()
397 if (usedSize < len) { in ReadEventFile()
398 len = usedSize; in ReadEventFile()
[all …]
/base/hiviewdfx/hilog_lite/frameworks/mini/
Dhiview_output_log.c119 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() local
356 if (usedSize < len) { in ReadLogFile()
357 len = usedSize; in ReadLogFile()
603 if (g_logCache.usedSize > 0) { in FlushLog()
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/include/
Dtrace_decorator.h71 uint32_t usedSize = 0; member
81 .append(std::to_string(usedSize)).append(" ") in ToString()
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/
Dtrace_decorator.cpp164 statInfo.usedSize = fileSize * TRACE_COMPRESS_RATIO; in UpdateTrafficInfo()