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()
1145 size_t bytesToRead; in readv() local1176 bytesToRead = iov[i].iov_len; in readv()1178 size_t lenToRead = totalLen < bytesToRead ? totalLen : bytesToRead; in readv()1179 ret = memcpy_s(readBuf, bytesToRead, curBuf, lenToRead); in readv()1184 if (totalLen < (size_t)bytesToRead) { in readv()1187 curBuf += bytesToRead; in readv()1188 totalLen -= bytesToRead; in readv()