MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / convAddrTypeToTypeCode

Function convAddrTypeToTypeCode

lib/validator/formchecker.cpp:28–37  ·  view source on GitHub ↗

Helper function for extracting address type to TypeCode.

Source from the content-addressed store, hash-verified

26
27// Helper function for extracting address type to TypeCode.
28TypeCode convAddrTypeToTypeCode(const AddressType AT) noexcept {
29 switch (AT) {
30 case AddressType::I32:
31 return TypeCode::I32;
32 case AddressType::I64:
33 return TypeCode::I64;
34 default:
35 assumingUnreachable();
36 }
37};
38
39// Helper function for packing TypeCode to address type.
40AddressType convTypeCodeToAddrType(const TypeCode TC) noexcept {

Callers 2

addTableMethod · 0.85
addMemoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected