work around about gzip file input #338
Answered
by
ColinH
shuizaiku7
asked this question in
Q&A
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
shuizaiku7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm reading in some big gzip file.
I've got some lib to read in the gzip as input stream, but the input stream class is not derived from std::istream.
It's some class the lib defined on its own, but the gzstrem class do implement api like read/gcount/eof.
So my work around is to implement gzstream_reader which is just like the internal::istream_reader,
and then implement the gzstream_input as istream_input do.
My question is
01.Is my work around ok?
02.What does this code do?
I'm sorry it's a C++ problem, but it's hard for me to search this code on the internet.
Really appreciated if you can give me an explanation.
Beta Was this translation helpful? Give feedback.
All reactions