Home | History | Annotate | Download | only in gptfdisk

Lines Matching full:numbytes

295 int DiskIO::Read(void* buffer, int numBytes) {
307 if (numBytes <= blockSize) {
311 numBlocks = numBytes / blockSize;
312 if ((numBytes % blockSize) != 0)
323 memcpy(buffer, tempSpace, numBytes);
326 if (((numBlocks * blockSize) != numBytes) && (retval > 0))
327 retval = numBytes;
338 int DiskIO::Write(void* buffer, int numBytes) {
350 if (numBytes <= blockSize) {
354 numBlocks = numBytes / blockSize;
355 if ((numBytes % blockSize) != 0) numBlocks++;
364 memcpy(tempSpace, buffer, numBytes);
365 for (i = numBytes; i < numBlocks * blockSize; i++) {
371 if (((numBlocks * blockSize) != numBytes) && (retval > 0))
372 retval = numBytes;