MCPcopy Create free account
hub / github.com/chrxh/alien / readBool

Function readBool

source/EngineInterface/GenomeDescriptionService.cpp:100–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 return convertByteToByteWithInfinity(readByte(data, pos));
99 }
100 bool readBool(std::vector<uint8_t> const& data, int& pos)
101 {
102 return static_cast<int8_t>(readByte(data, pos)) > 0;
103 }
104 int readWord(std::vector<uint8_t> const& data, int& pos)
105 {
106 return static_cast<int>(readByte(data, pos)) | (static_cast<int>(readByte(data, pos) << 8));

Callers 2

readGenomeFunction · 0.85

Calls 1

readByteFunction · 0.85

Tested by

no test coverage detected