MCPcopy Create free account
hub / github.com/WebAssembly/wabt / Write

Method Write

include/wabt/stream.h:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls 1

SwapBytesSizedFunction · 0.85

Tested by

no test coverage detected