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

Method OnDataSegment

src/shared-validator.cc:349–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349Result SharedValidator::OnDataSegment(const Location& loc,
350 Var memory_var,
351 SegmentKind kind) {
352 Result result = Result::Ok;
353 if (kind == SegmentKind::Active) {
354 result |= CheckMemoryIndex(memory_var);
355 }
356 return result;
357}
358
359Result SharedValidator::CheckDeclaredFunc(Var func_var) {
360 if (declared_funcs_.count(func_var.index()) == 0) {

Callers 2

CheckModuleMethod · 0.80
BeginDataSegmentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected