Class: Yadriggy::C::CType::IntCArray
- Defined in:
- lib/yadriggy/c/ctype.rb
Overview
Array of 32bit integers available only in C.
Constant Summary
Constants included from Yadriggy::C::CType
Float32Array, Float32Type, FloatArray, Int, IntArray, Void
Instance Attribute Summary
Attributes inherited from CArray
Instance Method Summary collapse
Methods inherited from CArray
#check_range, #initialize, #typedecl
Methods included from Yadriggy::C::CType
Constructor Details
This class inherits a constructor from Yadriggy::C::CType::CArray
Instance Method Details
#[](*indexes) ⇒ Object
82 83 84 85 86 |
# File 'lib/yadriggy/c/ctype.rb', line 82 def [](*indexes) typedecl foreign: Int check_range(indexes) raise 'IntCArray is not available in Ruby' unless @debug end |
#[]=(*indexes) ⇒ Object
88 89 90 91 92 |
# File 'lib/yadriggy/c/ctype.rb', line 88 def []=(*indexes) typedecl foreign: Void check_range(indexes[0, indexes.size - 1]) raise 'IntCArray is not available in Ruby' unless @debug end |
#type ⇒ Object
78 79 80 |
# File 'lib/yadriggy/c/ctype.rb', line 78 def type() RubyClass::Integer end |