Home
last modified time | relevance | path

Searched refs:rLen (Results 1 – 4 of 4) sorted by relevance

/base/hiviewdfx/hiview_lite/
Dhiview_cache.c109 int32 ReadFromCache(HiviewCache *cache, uint8 *data, uint16 rLen) in ReadFromCache() argument
119 if (cache->usedSize < rLen) { in ReadFromCache()
124 if ((uint32)rCursor + (uint32)rLen > (uint32)cache->size) { in ReadFromCache()
131 secondLen = rLen - firstLen; in ReadFromCache()
138 if (memcpy_s(data, rLen, cache->buffer + rCursor, rLen) != EOK) { in ReadFromCache()
143 cache->usedSize -= rLen; in ReadFromCache()
146 return rLen; in ReadFromCache()
149 int32 PrereadFromCache(HiviewCache *cache, uint8 *data, uint16 rLen) in PrereadFromCache() argument
154 if (cache->usedSize < rLen) { in PrereadFromCache()
162 if ((uint32)rCursor + (uint32)rLen > (uint32)cache->size) { in PrereadFromCache()
[all …]
Dhiview_cache.h83 int32 ReadFromCache(HiviewCache *cache, uint8 *data, uint16 rLen);
94 int32 PrereadFromCache(HiviewCache *cache, uint8 *data, uint16 rLen);
Dhiview_file.c189 int32 rLen = (readLen <= (wCursor - rCursor)) ? readLen : (wCursor - rCursor); in ReadFromFile() local
193 if ((int32)rLen == HIVIEW_FileRead(fp->fhandle, data, rLen)) { in ReadFromFile()
194 h->rCursor += rLen; in ReadFromFile()
196 rLen = 0; in ReadFromFile()
198 return rLen; in ReadFromFile()
/base/startup/appspawn/interfaces/innerkits/client/
Dappspawn_socket.cpp106 ssize_t rLen = TEMP_FAILURE_RETRY(read(socketFd, buf, len)); in ReadSocketMessage() local
107 while ((rLen < 0) && (errno == EAGAIN)) { in ReadSocketMessage()
108 rLen = TEMP_FAILURE_RETRY(read(socketFd, buf, len)); in ReadSocketMessage()
110 APPSPAWN_CHECK(rLen >= 0, return -EFAULT, "Read message from fd %d error %zd: %d", in ReadSocketMessage()
111 socketFd, rLen, errno); in ReadSocketMessage()
113 return rLen; in ReadSocketMessage()