Lines Matching refs:blockSize
127 DWORD blockSize = 0, retBytes; in GetBlockSize() local
138 blockSize = geom.Geometry.BytesPerSector; in GetBlockSize()
140 blockSize = SECTOR_SIZE; in GetBlockSize()
144 return (blockSize); in GetBlockSize()
216 int blockSize = 512, i, numBlocks; in Read() local
227 blockSize = GetBlockSize(); in Read()
228 if (numBytes <= blockSize) { in Read()
230 tempSpace = new char [blockSize]; in Read()
232 numBlocks = numBytes / blockSize; in Read()
233 if ((numBytes % blockSize) != 0) 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
271 blockSize = GetBlockSize(); in Write()
272 if (numBytes <= blockSize) { in Write()
274 tempSpace = new char [blockSize]; 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()