| 23 | {} |
| 24 | |
| 25 | bool Read() |
| 26 | { |
| 27 | char * buffer = static_cast<char *>(m_parser.GetBuffer(kBufferSize)); |
| 28 | ASSERT(buffer, ()); |
| 29 | |
| 30 | m_numRead = m_source.Read(buffer, kBufferSize); |
| 31 | if (m_numRead == 0) |
| 32 | return false; |
| 33 | |
| 34 | if (m_parser.ParseBuffer(static_cast<uint32_t>(m_numRead), false) == XML_STATUS_ERROR) |
| 35 | MYTHROW(XmlParseError, (m_parser.GetErrorMessage())); |
| 36 | |
| 37 | m_res += m_numRead; |
| 38 | return m_numRead == kBufferSize; |
| 39 | } |
| 40 | |
| 41 | private: |
| 42 | uint32_t static constexpr kBufferSize = 16 * 1024; |
nothing calls this directly
no test coverage detected