MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WriteU64

Function WriteU64

lib/llvm/codegen.cpp:127–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127Expect<void> WriteU64(std::ostream &OS, uint64_t Data) noexcept {
128 do {
129 uint8_t Byte = static_cast<uint8_t>(Data & UINT64_C(0x7f));
130 Data >>= 7;
131 if (Data > UINT64_C(0)) {
132 Byte |= UINT8_C(0x80);
133 }
134 WriteByte(OS, Byte);
135 } while (Data > UINT64_C(0));
136 return {};
137}
138
139Expect<void> WriteName(std::ostream &OS, std::string_view Data) noexcept {
140 WriteU32(OS, static_cast<uint32_t>(Data.size()));

Callers 1

outputWasmLibraryFunction · 0.85

Calls 1

WriteByteFunction · 0.85

Tested by

no test coverage detected