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

Method DecodePipeline

PathCopyCopy/src/PluginPipelineDecoder.cpp:76–88  ·  view source on GitHub ↗

Decodes a series of elements that were encoded by the settings application in a string and produces a list of corresponding pipeline element objects. @param p_EncodedElements Elements encoded in a string. @return Vector of resulting elements.

Source from the content-addressed store, hash-verified

74 // @return Vector of resulting elements.
75 //
76 auto PipelineDecoder::DecodePipeline(const std::wstring& p_EncodedElements) -> PipelineElementSPV
77 {
78 EncodedElementsStream stream(p_EncodedElements);
79 const size_t numElements = stream.ReadElementCount();
80
81 PipelineElementSPV vspPipelineElements;
82 vspPipelineElements.reserve(numElements);
83 for (size_t i = 0; i < numElements; ++i) {
84 vspPipelineElements.emplace_back(DecodePipelineElement(stream));
85 }
86
87 return vspPipelineElements;
88 }
89
90 //
91 // Decodes a pipeline element found in an encoded pipeline elements stream.

Callers

nothing calls this directly

Calls 1

ReadElementCountMethod · 0.80

Tested by

no test coverage detected