Lines Matching refs:numBlocks
216 int blockSize = 512, i, numBlocks; in Read() local
229 numBlocks = 1; in Read()
232 numBlocks = numBytes / blockSize; in Read()
234 numBlocks++; in Read()
235 tempSpace = new char [numBlocks * blockSize]; in Read()
243 ReadFile(fd, tempSpace, numBlocks * blockSize, &retval, NULL); in Read()
249 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Read()
260 int blockSize = 512, i, numBlocks, retval = 0; in Write() local
273 numBlocks = 1; in Write()
276 numBlocks = numBytes / blockSize; in Write()
277 if ((numBytes % blockSize) != 0) numBlocks++; in Write()
278 tempSpace = new char [numBlocks * blockSize]; in Write()
289 for (i = numBytes; i < numBlocks * blockSize; i++) { in Write()
292 WriteFile(fd, tempSpace, numBlocks * blockSize, &numWritten, NULL); in Write()
296 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Write()