Searched refs:bytesToRead (Results 1 – 2 of 2) sorted by relevance
793 size_t bytesToRead; in OsVfsReadv() local824 bytesToRead = iov[i].iov_len; in OsVfsReadv()826 size_t lenToRead = totalLen < bytesToRead ? totalLen : bytesToRead; in OsVfsReadv()827 ret = memcpy_s(readBuf, bytesToRead, curBuf, lenToRead); in OsVfsReadv()832 if (totalLen < (size_t)bytesToRead) { in OsVfsReadv()835 curBuf += bytesToRead; in OsVfsReadv()836 totalLen -= bytesToRead; in OsVfsReadv()
1154 size_t bytesToRead; in readv() local1185 bytesToRead = iov[i].iov_len; in readv()1187 size_t lenToRead = totalLen < bytesToRead ? totalLen : bytesToRead; in readv()1188 ret = memcpy_s(readBuf, bytesToRead, curBuf, lenToRead); in readv()1193 if (totalLen < (size_t)bytesToRead) { in readv()1196 curBuf += bytesToRead; in readv()1197 totalLen -= bytesToRead; in readv()