libeuropa/io: Clean up TeeInOut()
Remove debugging stuff that didn't need to to be there anymore.
This commit is contained in:
parent
5657cdd0af
commit
361cd12437
1 changed files with 5 additions and 10 deletions
|
@ -86,14 +86,9 @@ namespace europa::io::impl {
|
||||||
|
|
||||||
void TeeInOut(std::istream& is, std::ostream& os) {
|
void TeeInOut(std::istream& is, std::ostream& os) {
|
||||||
std::uint8_t buffer[1024] {};
|
std::uint8_t buffer[1024] {};
|
||||||
//int i = 0;
|
|
||||||
|
|
||||||
while(!is.eof()) {
|
while(!is.eof()) {
|
||||||
is.read(reinterpret_cast<char*>(&buffer[0]), sizeof(buffer));
|
is.read(reinterpret_cast<char*>(&buffer[0]), sizeof(buffer));
|
||||||
auto c = is.gcount();
|
os.write(reinterpret_cast<char*>(&buffer[0]), is.gcount());
|
||||||
//fprintf(stderr, "loop %d: Read %d bytes\n", i, c);
|
|
||||||
os.write(reinterpret_cast<char*>(&buffer[0]), c);
|
|
||||||
//i++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue