std::size_t HeaderParser::advance(std::streambuf& sb) { std::size_t ret = 0; while (sb.in_avail() > 0) { ++ret; if (parse(sb.sbumpc())) return ret; } return ret; }
virtual std::streamsize showmanyc() override { ASSERT(_streambuf); return _streambuf->in_avail(); }