/** * Initializes a new <tt>Type.Array</tt> instance. */ public Array(Ruby runtime, RubyClass klass, Type componentType, int length) { super(runtime, klass, NativeType.ARRAY, componentType.getNativeSize() * length, componentType.getNativeAlignment()); this.componentType = componentType; this.length = length; }
/** * Initializes a new <tt>Type</tt> instance. */ protected Type(Ruby runtime, RubyClass klass, NativeType type) { super(runtime, klass); this.nativeType = type; this.size = getNativeSize(type); this.alignment = getNativeAlignment(type); }
/** * Initializes a new <tt>Type</tt> instance. */ protected Type(Ruby runtime, RubyClass klass, NativeType type) { super(runtime, klass); this.nativeType = type; this.size = getNativeSize(type); this.alignment = getNativeAlignment(type); }
private MappedType(Ruby runtime, RubyClass klass, Type nativeType, IRubyObject converter, boolean isRefererenceRequired) { super(runtime, klass, NativeType.MAPPED, nativeType.getNativeSize(), nativeType.getNativeAlignment()); this.realType = nativeType; this.converter = converter; this.isReferenceRequired = isRefererenceRequired; }
private MappedType(Ruby runtime, RubyClass klass, Type nativeType, IRubyObject converter, boolean isRefererenceRequired) { super(runtime, klass, NativeType.MAPPED, nativeType.getNativeSize(), nativeType.getNativeAlignment()); this.realType = nativeType; this.converter = converter; this.isReferenceRequired = isRefererenceRequired; }
/** * Initializes a new <tt>Type</tt> instance. */ protected Type(Ruby runtime, RubyClass klass, NativeType type) { super(runtime, klass); this.nativeType = type; this.size = getNativeSize(type); this.alignment = getNativeAlignment(type); }
/** * Initializes a new <tt>Type.Array</tt> instance. */ public Array(Ruby runtime, RubyClass klass, Type componentType, int length) { super(runtime, klass, NativeType.ARRAY, componentType.getNativeSize() * length, componentType.getNativeAlignment()); this.componentType = componentType; this.length = length; }
private MappedType(Ruby runtime, RubyClass klass, Type nativeType, IRubyObject converter, boolean isRefererenceRequired) { super(runtime, klass, NativeType.MAPPED, nativeType.getNativeSize(), nativeType.getNativeAlignment()); this.realType = nativeType; this.converter = converter; this.isReferenceRequired = isRefererenceRequired; }
private MappedType(Ruby runtime, RubyClass klass, Type nativeType, IRubyObject converter, boolean isRefererenceRequired) { super(runtime, klass, NativeType.MAPPED, nativeType.getNativeSize(), nativeType.getNativeAlignment()); this.realType = nativeType; this.converter = converter; this.isReferenceRequired = isRefererenceRequired; }
/** * Initializes a new <tt>Type</tt> instance. */ protected Type(Ruby runtime, RubyClass klass, NativeType type) { super(runtime, klass); this.nativeType = type; this.size = getNativeSize(type); this.alignment = getNativeAlignment(type); }
/** * Initializes a new <tt>Type.Array</tt> instance. */ public Array(Ruby runtime, RubyClass klass, Type componentType, int length) { super(runtime, klass, NativeType.ARRAY, componentType.getNativeSize() * length, componentType.getNativeAlignment()); this.componentType = componentType; this.length = length; }
/** * Initializes a new <tt>Type.Array</tt> instance. */ public Array(Ruby runtime, RubyClass klass, Type componentType, int length) { super(runtime, klass, NativeType.ARRAY, componentType.getNativeSize() * length, componentType.getNativeAlignment()); this.componentType = componentType; this.length = length; }
/** * Gets the native alignment of this <tt>Type</tt> in bytes * * @param context The Ruby thread context. * @return The native alignment of this Type. */ @JRubyMethod(name = "alignment") public IRubyObject alignment(ThreadContext context) { return context.runtime.newFixnum(getNativeAlignment()); }
/** * Gets the native alignment of this <tt>Type</tt> in bytes * * @param context The Ruby thread context. * @return The native alignment of this Type. */ @JRubyMethod(name = "alignment") public IRubyObject alignment(ThreadContext context) { return context.runtime.newFixnum(getNativeAlignment()); }
@JRubyMethod public final IRubyObject alignment(ThreadContext context) { return context.runtime.newFixnum(type.getNativeAlignment()); }
/** * Gets the native alignment of this <tt>Type</tt> in bytes * * @param context The Ruby thread context. * @return The native alignment of this Type. */ @JRubyMethod(name = "alignment") public IRubyObject alignment(ThreadContext context) { return context.runtime.newFixnum(getNativeAlignment()); }
/** * Gets the native alignment of this <tt>Type</tt> in bytes * * @param context The Ruby thread context. * @return The native alignment of this Type. */ @JRubyMethod(name = "alignment") public IRubyObject alignment(ThreadContext context) { return context.runtime.newFixnum(getNativeAlignment()); }
@JRubyMethod public final IRubyObject alignment(ThreadContext context) { return context.runtime.newFixnum(type.getNativeAlignment()); }
@JRubyMethod public final IRubyObject alignment(ThreadContext context) { return context.runtime.newFixnum(type.getNativeAlignment()); }
@JRubyMethod public final IRubyObject alignment(ThreadContext context) { return context.runtime.newFixnum(type.getNativeAlignment()); }