MCPcopy Create free account
hub / github.com/Kitware/CMake / FileTypeValid

Method FileTypeValid

Source/cmELF.cxx:311–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310
311 bool FileTypeValid(ELF_Half et)
312 {
313 unsigned int eti = static_cast<unsigned int>(et);
314 if (eti == ET_NONE || eti == ET_REL || eti == ET_EXEC || eti == ET_DYN ||
315 eti == ET_CORE) {
316 return true;
317 }
318 if (eti >= ET_LOOS && eti <= ET_HIOS) {
319 return true;
320 }
321 if (eti >= ET_LOPROC && eti <= ET_HIPROC) {
322 return true;
323 }
324 return false;
325 }
326
327 bool Read(ELF_Ehdr& x)
328 {

Callers 1

ReadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected