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

Function WriteLimitsData

src/binary-writer.cc:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void WriteLimitsData(Stream* stream, const Limits* limits) {
82 if (limits->is_64) {
83 WriteU64Leb128(stream, limits->initial, "limits: initial");
84 if (limits->has_max) {
85 WriteU64Leb128(stream, limits->max, "limits: max");
86 }
87 } else {
88 WriteU32Leb128(stream, limits->initial, "limits: initial");
89 if (limits->has_max) {
90 WriteU32Leb128(stream, limits->max, "limits: max");
91 }
92 }
93}
94
95void WriteDebugName(Stream* stream, std::string_view name, const char* desc) {
96 std::string_view stripped_name = name;

Callers 2

WriteTableMethod · 0.85
WriteMemoryMethod · 0.85

Calls 2

WriteU64Leb128Function · 0.85
WriteU32Leb128Function · 0.70

Tested by

no test coverage detected