def array_to_pointers_to_names(arr)
      arr.map do |obj|
        obj.name.nil? ? nil : FFI::MemoryPointer.from_string(obj.name)
      end
    end
def array_to_pointers_to_names(arr)
      arr.map do |obj|
        obj.name.nil? ? nil : FFI::MemoryPointer.from_string(obj.name)
      end
    end
Convert an array of objects to an FFI array of
 memory pointers to the names of each object