* Get the content info based on a ContentID * @param cid the ContentID to search for * @return the ContentInfo or nullptr if not found */
| 830 | * @return the ContentInfo or nullptr if not found |
| 831 | */ |
| 832 | ContentInfo *ClientNetworkContentSocketHandler::GetContent(ContentID cid) const |
| 833 | { |
| 834 | for (const auto &ci : this->infos) { |
| 835 | if (ci->id == cid) return ci.get(); |
| 836 | } |
| 837 | return nullptr; |
| 838 | } |
| 839 | |
| 840 | |
| 841 | /** |
no test coverage detected