Method: RLTK::CG::ConstantAggregate#insert
- Defined in:
- lib/rltk/cg/value.rb
#insert(value, indices) ⇒ ConstantExpr
Insert values into a constant aggregate value.
393 394 395 396 397 398 |
# File 'lib/rltk/cg/value.rb', line 393 def insert(value, indices) indices_ptr = FFI::MemoryPointer.new(:uint, indices.length) indices_ptr.write_array_of_uint(indices) ConstantExpr.new(Bindings.const_insert_value(@ptr, value, indices_ptr, inicies.length)) end |