Lines Matching refs:chunk
290 bool readData(char *const chunk, const int idx, TestCase *testCase) in readData() argument
308 pid_t *pid = (pid_t*)chunk; in readData()
311 char *dest = chunk; in readData()
356 char *const chunk = new char[chunk_size]; in testRead() local
358 memset(chunk, 0xaa, chunk_size); in testRead()
359 *((pid_t *)chunk) = testCase->pid(); // write our pid at the beginning of each chunk in testRead()
385 ssize_t written = write(fd, chunk, chunk_size); in testRead()
404 if (!readData(chunk, i, testCase)) in testRead()
411 delete [] chunk; in testRead()
418 bool writeData(const char *const chunk, const int idx, TestCase *testCase) { in writeData() argument
443 const char *dest = chunk; in writeData()
568 char * const chunk = new char[testCase->chunkSize()]; in writeTestFile() local
569 memset(chunk, 0xaa, testCase->chunkSize()); in writeTestFile()
573 char *dest = chunk; in writeTestFile()
597 delete[] chunk; in writeTestFile()