MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / ReadData

Method ReadData

PathCopyCopy/src/PluginPipelineDecoder.cpp:472–480  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers 2

DecodePipelineElementMethod · 0.80

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected