Class: H3::Bindings::Types::H3IndexesOut

Inherits:
H3IndexesIn show all
Defined in:
lib/h3/bindings/types.rb

Instance Attribute Summary

Attributes inherited from H3IndexesIn

#size

Instance Method Summary collapse

Methods inherited from H3IndexesIn

#ptr, to_native

Constructor Details

#initialize(size) ⇒ H3IndexesOut

Returns a new instance of H3IndexesOut.



53
54
55
# File 'lib/h3/bindings/types.rb', line 53

def initialize(size)
  @size = size
end

Instance Method Details

#readObject



57
58
59
# File 'lib/h3/bindings/types.rb', line 57

def read
  @read ||= ptr.read_array_of_ulong_long(size).reject(&:zero?)
end