Class: Type::I32
Constant Summary collapse
- MAX =
2**31 - 1
- MIN =
-2**31
Class Method Summary collapse
- .signed? ⇒ Boolean
-
.size ⇒ Object
size in bytes.
- .wasm_type ⇒ Object
Instance Method Summary collapse
- #+(v) ⇒ Object
-
#initialize(v) ⇒ I32
constructor
A new instance of I32.
-
#size ⇒ Object
size in bytes.
- #wasm_type ⇒ Object
Methods inherited from Numeric
Constructor Details
Class Method Details
.signed? ⇒ Boolean
28 |
# File 'lib/rlang/parser/ext/type.rb', line 28 def self.signed?; true; end |
.size ⇒ Object
size in bytes
30 |
# File 'lib/rlang/parser/ext/type.rb', line 30 def self.size; 4; end |
.wasm_type ⇒ Object
32 |
# File 'lib/rlang/parser/ext/type.rb', line 32 def self.wasm_type; 'i32'; end |
Instance Method Details
#wasm_type ⇒ Object
31 |
# File 'lib/rlang/parser/ext/type.rb', line 31 def wasm_type; 'i32'; end |