class FFI::Pointer
Public Instance Methods
read_array_of_string()
click to toggle source
# File lib/sys/admin/custom.rb, line 4 def read_array_of_string elements = [] loc = self until ((element = loc.read_pointer).null?) elements << element.read_string loc += FFI::Type::POINTER.size end elements end