class FFI::Pointer
Public Instance Methods
read_array_of_strings()
click to toggle source
after dzone.com/articles/getting-array-strings-char-ffi
# 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