Class: FFI::Pointer

Inherits:
Object
  • Object
show all
Defined in:
lib/harfbuzz/ffi_additions.rb

Instance Method Summary collapse

Instance Method Details

#read_array_of_stringsObject



5
6
7
8
9
10
11
12
13
# File 'lib/harfbuzz/ffi_additions.rb', line 5

def read_array_of_strings
  elements = []
  loc = self
  until (element = loc.read_pointer).null?
   elements << element.read_string
   loc += FFI::Type::POINTER.size
  end
  elements
end