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

Function readWord

source/EngineInterface/GenomeDescriptionService.cpp:104–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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));
107 }
108 //between -1 and 1
109 float readFloat(std::vector<uint8_t> const& data, int& pos)
110 {

Callers 2

readGenomeFunction · 0.85

Calls 1

readByteFunction · 0.85

Tested by

no test coverage detected