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