public final IRubyObject allocate(Ruby runtime, RubyClass klass) { return new Struct(runtime, klass); } private static final ObjectAllocator INSTANCE = new Allocator();
public final IRubyObject allocate(Ruby runtime, RubyClass klass) { return new Struct(runtime, klass); } private static final ObjectAllocator INSTANCE = new Allocator();
public final IRubyObject allocate(Ruby runtime, RubyClass klass) { return new Struct(runtime, klass); } private static final ObjectAllocator INSTANCE = new Allocator();
public final IRubyObject allocate(Ruby runtime, RubyClass klass) { return new Struct(runtime, klass); } private static final ObjectAllocator INSTANCE = new Allocator();
private static final Struct allocateStruct(ThreadContext context, IRubyObject klass, int flags) { Ruby runtime = context.runtime; StructLayout layout = getStructLayout(runtime, klass); return new Struct(runtime, (RubyClass) klass, layout, new Buffer(runtime, layout.getSize(), flags)); }
private static final Struct allocateStruct(ThreadContext context, IRubyObject klass, int flags) { Ruby runtime = context.runtime; StructLayout layout = getStructLayout(runtime, klass); return new Struct(runtime, (RubyClass) klass, layout, new Buffer(runtime, layout.getSize(), flags)); }
private static final Struct allocateStruct(ThreadContext context, IRubyObject klass, int flags) { Ruby runtime = context.runtime; StructLayout layout = getStructLayout(runtime, klass); return new Struct(runtime, (RubyClass) klass, layout, new Buffer(runtime, layout.getSize(), flags)); }
private static final Struct allocateStruct(ThreadContext context, IRubyObject klass, int flags) { Ruby runtime = context.runtime; StructLayout layout = getStructLayout(runtime, klass); return new Struct(runtime, (RubyClass) klass, layout, new Buffer(runtime, layout.getSize(), flags)); }
@JRubyMethod(name = "order", required = 1) public final IRubyObject order(ThreadContext context, IRubyObject byte_order) { ByteOrder order = Util.parseByteOrder(context.runtime, byte_order); return new Struct(context.runtime, getMetaClass(), layout, getMemory().order(context.runtime, order)); }
@JRubyMethod(name = "order", required = 1) public final IRubyObject order(ThreadContext context, IRubyObject byte_order) { ByteOrder order = Util.parseByteOrder(context.runtime, byte_order); return new Struct(context.runtime, getMetaClass(), layout, getMemory().order(context.runtime, order)); }
@JRubyMethod(name = "order", required = 1) public final IRubyObject order(ThreadContext context, IRubyObject byte_order) { ByteOrder order = Util.parseByteOrder(context.runtime, byte_order); return new Struct(context.runtime, getMetaClass(), layout, getMemory().order(context.runtime, order)); }
@JRubyMethod(name = "order", required = 1) public final IRubyObject order(ThreadContext context, IRubyObject byte_order) { ByteOrder order = Util.parseByteOrder(context.runtime, byte_order); return new Struct(context.runtime, getMetaClass(), layout, getMemory().order(context.runtime, order)); }