MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / read_u32_swap

Function read_u32_swap

LiveRecomp/live_recompiler_test.cpp:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29uint32_t read_u32_swap(const std::vector<uint8_t>& vec, size_t offset) {
30 return byteswap(*reinterpret_cast<const uint32_t*>(&vec[offset]));
31}
32
33uint32_t read_u32(const std::vector<uint8_t>& vec, size_t offset) {
34 return *reinterpret_cast<const uint32_t*>(&vec[offset]);

Callers 1

run_testFunction · 0.85

Calls 1

byteswapFunction · 0.50

Tested by

no test coverage detected