MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getBytesSpan

Function getBytesSpan

src/OpenLoco/src/GameSaveCompare.cpp:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24 template<typename T>
25 std::span<const std::byte> getBytesSpan(const T& item)
26 {
27 return std::span<const std::byte>{ reinterpret_cast<const std::byte*>(std::addressof(item)), sizeof(T) };
28 }
29
30 template<typename T>
31 auto bitWiseEqual(const T& lhs, const T& rhs)

Callers 3

bitWiseEqualFunction · 0.85
bitWiseLogDivergenceFunction · 0.85
compareElementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected