Lines Matching refs:blockSize
127 DWORD blockSize = 0, retBytes;
138 blockSize = geom.Geometry.BytesPerSector;
140 blockSize = SECTOR_SIZE;
144 return (blockSize);
216 int blockSize = 512, i, numBlocks;
227 blockSize = GetBlockSize();
228 if (numBytes <= blockSize) {
230 tempSpace = new char [blockSize];
232 numBlocks = numBytes / blockSize;
233 if ((numBytes % blockSize) != 0)
235 tempSpace = new char [numBlocks * blockSize];
243 ReadFile(fd, tempSpace, numBlocks * blockSize, &retval, NULL);
249 if (((numBlocks * blockSize) != numBytes) && (retval > 0))
260 int blockSize = 512, i, numBlocks, retval = 0;
271 blockSize = GetBlockSize();
272 if (numBytes <= blockSize) {
274 tempSpace = new char [blockSize];
276 numBlocks = numBytes / blockSize;
277 if ((numBytes % blockSize) != 0) numBlocks++;
278 tempSpace = new char [numBlocks * blockSize];
289 for (i = numBytes; i < numBlocks * blockSize; i++) {
292 WriteFile(fd, tempSpace, numBlocks * blockSize, &numWritten, NULL);
296 if (((numBlocks * blockSize) != numBytes) && (retval > 0))