MCPcopy Create free account
hub / github.com/comaps/comaps / xsgetn

Method xsgetn

libs/coding/reader_streambuf.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12ReaderStreamBuf::~ReaderStreamBuf() = default;
13
14std::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
25ReaderStreamBuf::int_type ReaderStreamBuf::underflow()
26{

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected