Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WebAssembly/wabt
/ SwapBytesSized
Function
SwapBytesSized
include/wabt/common.h:462–467 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
460
}
461
462
inline void SwapBytesSized(void* addr, size_t size) {
463
auto bytes = static_cast<uint8_t*>(addr);
464
for (size_t i = 0; i < size / 2; i++) {
465
std::swap(bytes[i], bytes[size - 1 - i]);
466
}
467
}
468
469
} // namespace wabt
470
Callers
2
ReadT
Method · 0.85
Write
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected