Fixed ignored Stream timeout and made sure we don't read more that necessary (issue #422)

This commit is contained in:
Benoit Blanchon
2017-01-22 10:31:05 +01:00
parent fb554071dc
commit cc8c0472ca
10 changed files with 89 additions and 71 deletions

View File

@@ -29,8 +29,8 @@ struct StdStringTraits {
return static_cast<char*>(dup);
}
struct Iterator : CharPointerTraits::Iterator {
Iterator(const TString& str) : CharPointerTraits::Iterator(str.c_str()) {}
struct Reader : CharPointerTraits::Reader {
Reader(const TString& str) : CharPointerTraits::Reader(str.c_str()) {}
};
static bool equals(const TString& str, const char* expected) {