MCPcopy Create free account
hub / github.com/apitrace/apitrace / repack_generic

Function repack_generic

cli/cli_repack.cpp:83–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83static int
84repack_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
100static int

Callers 1

repackFunction · 0.85

Calls 2

readMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected