Lines Matching refs:rCursor
117 uint16 rCursor; in ReadFromCache() local
122 rCursor = GetReadCursor(cache); in ReadFromCache()
124 if ((uint32)rCursor + (uint32)rLen > (uint32)cache->size) { in ReadFromCache()
125 firstLen = cache->size - rCursor; in ReadFromCache()
127 if (memcpy_s(data, firstLen, cache->buffer + rCursor, firstLen) != EOK) { in ReadFromCache()
138 if (memcpy_s(data, rLen, cache->buffer + rCursor, rLen) != EOK) { in ReadFromCache()
160 uint16 rCursor = GetReadCursor(cache); in PrereadFromCache() local
162 if ((uint32)rCursor + (uint32)rLen > (uint32)cache->size) { in PrereadFromCache()
163 firstLen = cache->size - rCursor; in PrereadFromCache()
165 if (memcpy_s(data, firstLen, cache->buffer + rCursor, firstLen) != EOK) { in PrereadFromCache()
176 if (memcpy_s(data, rLen, cache->buffer + rCursor, rLen) != EOK) { in PrereadFromCache()