| 81 | |
| 82 | |
| 83 | static int |
| 84 | repack_generic(trace::File *inFile, trace::OutStream *outFile) |
| 85 | { |
| 86 | const size_t size = 8192; |
| 87 | char *buf = new char[size]; |
| 88 | size_t read; |
| 89 | |
| 90 | while ((read = inFile->read(buf, size)) != 0) { |
| 91 | outFile->write(buf, read); |
| 92 | } |
| 93 | |
| 94 | delete [] buf; |
| 95 | |
| 96 | return EXIT_SUCCESS; |
| 97 | } |
| 98 | |
| 99 | |
| 100 | static int |