MCPcopy Create free account
hub / github.com/bluejekyll/wasmtime-java / ValType

Enum ValType

src/main/java/net/bluejekyll/wasmtime/ty/ValType.java:3–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package net.bluejekyll.wasmtime.ty;
2
3public enum ValType {
4 I32,
5 I64,
6 F32,
7 F64,
8 V128,
9 FuncRef,
10 ExternRef;
11
12 public boolean is_num() {
13 switch (this) {
14 case I32:
15 ;
16 case I64:
17 ;
18 case F32:
19 ;
20 case V128:
21 return true;
22 default:
23 return false;
24 }
25 }
26
27 public boolean is_ref() {
28 switch (this) {
29 case FuncRef:
30 ;
31 case ExternRef:
32 return true;
33 default:
34 return false;
35 }
36 }
37}

Callers 1

fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…