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

Function WriteU32

lib/llvm/codegen.cpp:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115Expect<void> WriteU32(std::ostream &OS, uint32_t Data) noexcept {
116 do {
117 uint8_t Byte = static_cast<uint8_t>(Data & UINT32_C(0x7f));
118 Data >>= 7;
119 if (Data > UINT32_C(0)) {
120 Byte |= UINT8_C(0x80);
121 }
122 WriteByte(OS, Byte);
123 } while (Data > UINT32_C(0));
124 return {};
125}
126
127Expect<void> WriteU64(std::ostream &OS, uint64_t Data) noexcept {
128 do {

Callers 2

WriteNameFunction · 0.85
outputWasmLibraryFunction · 0.85

Calls 1

WriteByteFunction · 0.85

Tested by

no test coverage detected