code: public static int cuModuleLoadDataEx(CUmodule phMod, String string, int numOptions, int options[], Pointer optionValues)
      {
          byte bytes[] = string.getBytes();
          byte image[] = Arrays.copyOf(bytes, bytes.length+1);
          return cuModuleLoadDataEx(phMod, Pointer.to(image), numOptions, options, optionValues);
      }
docs: A wrapper function for
  {@link JCudaDriver#cuModuleLoadDataEx(CUmodule, Pointer, int, int[], Pointer)}
  which allows passing in the image data as a string.
  
  @param module Returned module
  @param image Module data to load
  @param numOptions Number of options
  @param options Options for JIT
  @param optionValues Option values for JIT
  @return The return code from <code>cuModuleLoadDataEx</code>
  
  @see #cuModuleLoadDataEx(CUmodule, Pointer, int, int[], Pointer)