| 9 | { |
| 10 | template <class T> |
| 11 | T reverse(T val) |
| 12 | { |
| 13 | auto view = cpp::marshal::View<uint8_t>(reinterpret_cast<uint8_t*>(&val), sizeof(T)); |
| 14 | |
| 15 | std::reverse(view.ptr.ptr, view.ptr.ptr + view.length); |
| 16 | |
| 17 | return val; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | inline cpp::marshal::View<char> cpp::marshal::Marshal::asCharView(const ::String& string) |
no outgoing calls
no test coverage detected