I assume this should be const std::vector<unsigned char*>& endNodesIn.