MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsValid

Method IsValid

src/network/core/tcp_content.cpp:49–52  ·  view source on GitHub ↗

* Is the information from this content info valid? * @return true iff it's valid */

Source from the content-addressed store, hash-verified

47 * @return true iff it's valid
48 */
49bool ContentInfo::IsValid() const
50{
51 return this->state < ContentInfo::State::Invalid && this->type >= CONTENT_TYPE_BEGIN && this->type < CONTENT_TYPE_END;
52}
53
54/**
55 * Search a textfile file next to this file in the content list.

Callers 3

Receive_SERVER_INFOMethod · 0.45
BeforeDownloadMethod · 0.45
CargoReserveInfoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected