Sha256: 758a88065ca986c9750ba4f4b594c35ed222cccfc33381355823fcda3b1ec894

Contents?: true

Size: 154 Bytes

Versions: 5

Compression:

Stored size: 154 Bytes

Contents

class Array

  def to_pointer(type)
    ret = Pointer.new(type, self.length)
    self.each_index do |i|
      ret[i] = self[i]
    end
    ret
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sugarcube-0.7.2 lib/sugarcube/array.rb
sugarcube-0.7.1 lib/sugarcube/array.rb
sugarcube-0.7 lib/sugarcube/array.rb
sugarcube-0.6.1 lib/sugarcube/array.rb
sugarcube-0.6 lib/sugarcube/array.rb