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

Method OnMemory

src/binary-reader-ir.cc:738–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738Result BinaryReaderIR::OnMemory(Index index,
739 const Limits* page_limits,
740 uint32_t page_size) {
741 auto field = std::make_unique<MemoryModuleField>(GetLocation());
742 Memory& memory = field->memory;
743 memory.page_limits = *page_limits;
744 memory.page_size = page_size;
745 if (memory.page_limits.is_shared) {
746 module_->features_used.threads = true;
747 }
748 module_->AppendField(std::move(field));
749 return Result::Ok;
750}
751
752Result BinaryReaderIR::OnGlobalCount(Index count) {
753 WABT_TRY

Callers 1

CheckModuleMethod · 0.45

Calls 1

AppendFieldMethod · 0.80

Tested by

no test coverage detected