Class: JIT::BoolType
- Inherits:
-
PrimitiveType
- Object
- Type
- PrimitiveType
- JIT::BoolType
- Defined in:
- lib/libjit/type.rb
Constant Summary
Constant Summary
Constants inherited from PrimitiveType
PrimitiveType::FFI_SYM_MAP, PrimitiveType::JIT_SYM_MAP
Instance Attribute Summary
Attributes inherited from Type
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (BoolType) initialize
constructor
A new instance of BoolType.
- - (Object) to_ffi_type
- - (Object) to_sym
Methods inherited from PrimitiveType
#floating_point?, #inspect, #integer?, #signed?, #unsigned?
Methods inherited from Type
#base_jit_t, #bool?, #boolean?, create, #float?, #floating_point?, from_ffi_type, #integer?, #pointer?, #signature?, #signed?, #size, #stringz?, #struct?, #structure?, #unsigned?, #void?
Constructor Details
- (BoolType) initialize
A new instance of BoolType
485 486 487 488 |
# File 'lib/libjit/type.rb', line 485 def initialize super(:int8) @jit_t = LibJIT.jit_type_create_tagged jit_t, :sys_bool, nil, nil, 1 end |
Class Method Details
+ (Object) wrap(jit_t)
490 491 492 493 494 |
# File 'lib/libjit/type.rb', line 490 def self.wrap jit_t type = self.allocate type.instance_variable_set(:@jit_t, jit_t) type end |
Instance Method Details
- (Object) to_ffi_type
500 501 502 |
# File 'lib/libjit/type.rb', line 500 def to_ffi_type :int8 end |
- (Object) to_sym
496 497 498 |
# File 'lib/libjit/type.rb', line 496 def to_sym :bool end |