Lines Matching refs:numBytes
215 int DiskIO::Read(void* buffer, int numBytes) { in Read() argument
228 if (numBytes <= blockSize) { in Read()
232 numBlocks = numBytes / blockSize; in Read()
233 if ((numBytes % blockSize) != 0) in Read()
244 for (i = 0; i < numBytes; i++) { in Read()
249 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Read()
250 retval = numBytes; in Read()
259 int DiskIO::Write(void* buffer, int numBytes) { in Write() argument
272 if (numBytes <= blockSize) { in Write()
276 numBlocks = numBytes / blockSize; in Write()
277 if ((numBytes % blockSize) != 0) numBlocks++; in Write()
286 for (i = 0; i < numBytes; i++) { in Write()
289 for (i = numBytes; i < numBlocks * blockSize; i++) { in Write()
296 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Write()
297 retval = numBytes; in Write()