Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WebAssembly/wasm-c-api
/ encode_header
Function
encode_header
src/wasm-bin.cc:11–14 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9
// Encoding
10
11
void encode_header(char*& ptr) {
12
std::memcpy(ptr,
"\x00"
"asm\x01\x00\x00\x00"
, 8);
13
ptr += 8;
14
}
15
16
auto u64_size(uint64_t n) -> size_t {
17
bool done = false;
Callers
1
wrapper
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected