Lines Matching refs:rLen
109 int32 ReadFromCache(HiviewCache *cache, uint8 *data, uint16 rLen)
119 if (cache->usedSize < rLen) {
124 if ((uint32)rCursor + (uint32)rLen > (uint32)cache->size) {
131 secondLen = rLen - firstLen;
138 if (memcpy_s(data, rLen, cache->buffer + rCursor, rLen) != EOK) {
143 cache->usedSize -= rLen;
146 return rLen;
149 int32 PrereadFromCache(HiviewCache *cache, uint8 *data, uint16 rLen)
154 if (cache->usedSize < rLen) {
162 if ((uint32)rCursor + (uint32)rLen > (uint32)cache->size) {
169 secondLen = rLen - firstLen;
176 if (memcpy_s(data, rLen, cache->buffer + rCursor, rLen) != EOK) {
181 return rLen;