public IRubyObject allocate(Ruby runtime, RubyClass klazz) { return new Buffer(runtime, klazz); } }
public IRubyObject allocate(Ruby runtime, RubyClass klazz) { return new Buffer(runtime, klazz); } }
public IRubyObject allocate(Ruby runtime, RubyClass klazz) { return new Buffer(runtime, klazz); } }
public IRubyObject allocate(Ruby runtime, RubyClass klazz) { return new Buffer(runtime, klazz); } }
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)); }
private static Buffer allocate(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, int count, int flags) { final int typeSize = calculateTypeSize(context, sizeArg); final int total = typeSize * count; return new Buffer(context.runtime, recv, allocateMemoryIO(context.runtime, total), total, typeSize, flags); }
private static Buffer allocate(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, int count, int flags) { final int typeSize = calculateTypeSize(context, sizeArg); final int total = typeSize * count; return new Buffer(context.runtime, recv, allocateMemoryIO(context.runtime, total), total, typeSize, flags); }
private static Buffer allocate(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, int count, int flags) { final int typeSize = calculateTypeSize(context, sizeArg); final int total = typeSize * count; return new Buffer(context.runtime, recv, allocateMemoryIO(context.runtime, total), total, typeSize, flags); }
private static Buffer allocate(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, int count, int flags) { final int typeSize = calculateTypeSize(context, sizeArg); final int total = typeSize * count; return new Buffer(context.runtime, recv, allocateMemoryIO(context.runtime, total), total, typeSize, flags); }
protected AbstractMemory slice(Ruby runtime, long offset, long size) { return new Buffer(runtime, getMetaClass(), getMemoryIO().slice(offset, size), size, this.typeSize, this.inout); }
protected AbstractMemory slice(Ruby runtime, long offset) { return new Buffer(runtime, getMetaClass(), getMemoryIO().slice(offset), this.size - offset, this.typeSize, this.inout); }
protected AbstractMemory slice(Ruby runtime, long offset) { return new Buffer(runtime, getMetaClass(), getMemoryIO().slice(offset), this.size - offset, this.typeSize, this.inout); }
protected AbstractMemory slice(Ruby runtime, long offset) { return new Buffer(runtime, getMetaClass(), getMemoryIO().slice(offset), this.size - offset, this.typeSize, this.inout); }
public final AbstractMemory order(Ruby runtime, ByteOrder order) { return new Buffer(runtime, getMetaClass(), order.equals(getMemoryIO().order()) ? getMemoryIO() : new SwappedMemoryIO(runtime, getMemoryIO()), size, typeSize, inout); }
public final AbstractMemory order(Ruby runtime, ByteOrder order) { return new Buffer(runtime, getMetaClass(), order.equals(getMemoryIO().order()) ? getMemoryIO() : new SwappedMemoryIO(runtime, getMemoryIO()), size, typeSize, inout); }
public final AbstractMemory order(Ruby runtime, ByteOrder order) { return new Buffer(runtime, getMetaClass(), order.equals(getMemoryIO().order()) ? getMemoryIO() : new SwappedMemoryIO(runtime, getMemoryIO()), size, typeSize, inout); }
public final AbstractMemory order(Ruby runtime, ByteOrder order) { return new Buffer(runtime, getMetaClass(), order.equals(getMemoryIO().order()) ? getMemoryIO() : new SwappedMemoryIO(runtime, getMemoryIO()), size, typeSize, inout); }