MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / readule16

Method readule16

framework/physfs_fs.cpp:159–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157IFileImpl::~IFileImpl() = default;
158
159bool IFile::readule16(uint16_t &val)
160{
161 this->read(reinterpret_cast<char *>(&val), sizeof(val));
162 val = le16toh(val);
163 return !!(*this);
164}
165
166bool IFile::readule32(uint32_t &val)
167{

Callers

nothing calls this directly

Calls 2

le16tohFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected