Home | History | Annotate | Download | only in gptfdisk

Lines Matching full:numbytes

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