| 141 | private: |
| 142 | template <typename T> |
| 143 | void Write(const T& data, const char* desc, PrintChars print_chars) { |
| 144 | #if WABT_BIG_ENDIAN |
| 145 | char tmp[sizeof(T)]; |
| 146 | memcpy(tmp, &data, sizeof(tmp)); |
| 147 | SwapBytesSized(tmp, sizeof(tmp)); |
| 148 | WriteData(tmp, sizeof(tmp), desc, print_chars); |
| 149 | #else |
| 150 | WriteData(&data, sizeof(data), desc, print_chars); |
| 151 | #endif |
| 152 | } |
| 153 | |
| 154 | size_t offset_; |
| 155 | Result result_; |
nothing calls this directly
no test coverage detected