return new Pointer(runtime, NativeMemoryIO.wrap(runtime, buffer.getAddress(index))); final long address = buffer.getAddress(index);
return new Pointer(runtime, NativeMemoryIO.wrap(runtime, buffer.getAddress(index))); final long address = buffer.getAddress(index);
return new Pointer(runtime, NativeMemoryIO.wrap(runtime, buffer.getAddress(index))); final long address = buffer.getAddress(index);
return new Pointer(runtime, NativeMemoryIO.wrap(runtime, buffer.getAddress(index))); final long address = buffer.getAddress(index);
/** * Converts a native string value into a ruby string object. * * @param runtime The ruby runtime to create the ruby string in * @param buffer The JFFI Closure parameter buffer. * @param index The index of the parameter in the buffer. * @return A new Ruby string object or nil if string is NULL. */ private static final IRubyObject getStringParameter(Ruby runtime, Closure.Buffer buffer, int index) { return FFIUtil.getString(runtime, buffer.getAddress(index)); }
/** * Converts a native string value into a ruby string object. * * @param runtime The ruby runtime to create the ruby string in * @param buffer The JFFI Closure parameter buffer. * @param index The index of the parameter in the buffer. * @return A new Ruby string object or nil if string is NULL. */ private static final IRubyObject getStringParameter(Ruby runtime, Closure.Buffer buffer, int index) { return FFIUtil.getString(runtime, buffer.getAddress(index)); }
/** * Converts a native string value into a ruby string object. * * @param runtime The ruby runtime to create the ruby string in * @param buffer The JFFI Closure parameter buffer. * @param index The index of the parameter in the buffer. * @return A new Ruby string object or nil if string is NULL. */ private static final IRubyObject getStringParameter(Ruby runtime, Closure.Buffer buffer, int index) { return FFIUtil.getString(runtime, buffer.getAddress(index)); }
/** * Converts a native string value into a ruby string object. * * @param runtime The ruby runtime to create the ruby string in * @param buffer The JFFI Closure parameter buffer. * @param index The index of the parameter in the buffer. * @return A new Ruby string object or nil if string is NULL. */ private static final IRubyObject getStringParameter(Ruby runtime, Closure.Buffer buffer, int index) { return FFIUtil.getString(runtime, buffer.getAddress(index)); }