MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / toByteOrder

Function toByteOrder

source/core/StarBytes.hpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template <typename T>
24T toByteOrder(ByteOrder order, T const& t) {
25 T ret;
26 toByteOrder(order, &ret, &t, sizeof(t));
27 return ret;
28}
29
30template <typename T>
31T fromByteOrder(ByteOrder order, T const& t) {

Callers 3

toBigEndianFunction · 0.85
toLittleEndianFunction · 0.85
StarDataStream.cppFile · 0.85

Calls 2

platformByteOrderFunction · 0.85
swapByteOrderFunction · 0.85

Tested by

no test coverage detected