Lines Matching refs:curPos
995 int curPos = 0;
996 while (curPos < dataSize)
998 int blockSize = 1 + deRandom_getUint32(&rnd) % (dataSize-curPos);
1000 deFileResult result = deFile_write(file, &data[curPos], blockSize, &numWritten);
1005 curPos += blockSize;
1012 curPos = 0;
1013 while (curPos < dataSize)
1016 int numToRead = 1 + deRandom_getUint32(&rnd) % deMin(dataSize-curPos, DE_LENGTH_OF_ARRAY(block));
1022 DE_VERIFY(deMemCmp(block, &data[curPos], numToRead) == 0);
1024 curPos += numToRead;