Example #1
0
    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;
    }
Example #2
0
 virtual std::streamsize showmanyc() override {
   ASSERT(_streambuf);
   return _streambuf->in_avail();
 }