Lines Matching refs:numBytes
222 int DiskIO::Read(void* buffer, int numBytes) { in Read() argument
235 if (numBytes <= blockSize) { in Read()
239 numBlocks = numBytes / blockSize; in Read()
240 if ((numBytes % blockSize) != 0) in Read()
251 for (i = 0; i < numBytes; i++) { in Read()
256 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Read()
257 retval = numBytes; in Read()
266 int DiskIO::Write(void* buffer, int numBytes) { in Write() argument
279 if (numBytes <= blockSize) { in Write()
283 numBlocks = numBytes / blockSize; in Write()
284 if ((numBytes % blockSize) != 0) numBlocks++; in Write()
293 for (i = 0; i < numBytes; i++) { in Write()
296 for (i = numBytes; i < numBlocks * blockSize; i++) { in Write()
303 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Write()
304 retval = numBytes; in Write()