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

Function ToSegmentMode

src/interp/binary-reader-interp.cc:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41SegmentMode ToSegmentMode(uint8_t flags) {
42 if ((flags & SegDeclared) == SegDeclared) {
43 return SegmentMode::Declared;
44 } else if ((flags & SegPassive) == SegPassive) {
45 return SegmentMode::Passive;
46 } else {
47 return SegmentMode::Active;
48 }
49}
50
51// This is only used to distinguish try blocks and all other blocks,
52// so there are only two kinds.

Callers 2

BeginElemSegmentMethod · 0.85
BeginDataSegmentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected