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

Function ComputeLimitsFlags

src/binary-writer.cc:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74uint32_t ComputeLimitsFlags(const Limits* limits) {
75 uint32_t flags = limits->has_max ? WABT_BINARY_LIMITS_HAS_MAX_FLAG : 0;
76 flags |= limits->is_shared ? WABT_BINARY_LIMITS_IS_SHARED_FLAG : 0;
77 flags |= limits->is_64 ? WABT_BINARY_LIMITS_IS_64_FLAG : 0;
78 return flags;
79}
80
81void WriteLimitsData(Stream* stream, const Limits* limits) {
82 if (limits->is_64) {

Callers 2

WriteTableMethod · 0.85
WriteMemoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected