Reads a number of characters from the stream. @param p_DataSize Size of data to read, in number of characters. @return String containing the data.
| 470 | // @return String containing the data. |
| 471 | // |
| 472 | auto PipelineDecoder::EncodedElementsStream::ReadData(const std::wstring::size_type p_DataSize) -> std::wstring |
| 473 | { |
| 474 | if (m_EncodedElements.size() - m_CurIndex < p_DataSize) { |
| 475 | throw InvalidPipelineException(); |
| 476 | } |
| 477 | std::wstring data = m_EncodedElements.substr(m_CurIndex, p_DataSize); |
| 478 | m_CurIndex += p_DataSize; |
| 479 | return data; |
| 480 | } |
| 481 | |
| 482 | // |
| 483 | // Reads the number of elements in the pipeline. This must be called |
no test coverage detected