Class: Type::F32

Inherits:
Numeric show all
Defined in:
lib/rlang/parser/ext/type.rb

Constant Summary collapse

MAX =
3.4028235E38

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Numeric

#type

Class Method Details

.signed?Boolean

size in bytes

Returns:

  • (Boolean)


59
# File 'lib/rlang/parser/ext/type.rb', line 59

def self.signed?; true; end

.sizeObject



62
# File 'lib/rlang/parser/ext/type.rb', line 62

def self.size; 4; end

.wasm_typeObject



63
# File 'lib/rlang/parser/ext/type.rb', line 63

def self.wasm_type; 'f32'; end

Instance Method Details

#sizeObject



60
# File 'lib/rlang/parser/ext/type.rb', line 60

def size; 4; end

#wasm_typeObject



61
# File 'lib/rlang/parser/ext/type.rb', line 61

def wasm_type; 'f32'; end