| 12 | ReaderStreamBuf::~ReaderStreamBuf() = default; |
| 13 | |
| 14 | std::streamsize ReaderStreamBuf::xsgetn(char_type * s, std::streamsize n) |
| 15 | { |
| 16 | std::streamsize const count = std::min(n, static_cast<std::streamsize>(m_size - m_pos)); |
| 17 | if (count > 0) |
| 18 | { |
| 19 | m_p->Read(m_pos, s, count); |
| 20 | m_pos += count; |
| 21 | } |
| 22 | return count; |
| 23 | } |
| 24 | |
| 25 | ReaderStreamBuf::int_type ReaderStreamBuf::underflow() |
| 26 | { |