Lines Matching refs:chunk_size
306 size_t chunk_size = testCase->chunkSize();
308 if (chunk_size > left)
310 chunk_size = left;
315 left -= chunk_size;
319 while (chunk_size > 0)
321 ssize_t s = read(fd, dest, chunk_size);
328 chunk_size -= s;
349 size_t chunk_size = testCase->chunkSize();
350 char *const chunk = new char[chunk_size];
352 memset(chunk, 0xaa, chunk_size);
375 if (chunk_size > left)
377 chunk_size = left;
379 ssize_t written = write(fd, chunk, chunk_size);
438 size_t chunk_size = testCase->chunkSize();
440 if (chunk_size > left)
442 chunk_size = left;
447 left -= chunk_size;
452 while (chunk_size > 0)
454 ssize_t s = write(fd, dest, chunk_size);
461 chunk_size -= s;
486 size_t chunk_size = testCase->chunkSize();
487 char *data = new char[chunk_size];
489 memset(data, 0xaa, chunk_size);