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); }
protected Pointer getPointer(Ruby runtime, long offset) { return new Pointer(runtime, getMemoryIO().getMemoryIO(offset)); } public int getInOutFlags() {
protected Pointer getPointer(Ruby runtime, long offset) { return new Pointer(runtime, getMemoryIO().getMemoryIO(offset)); } public int getInOutFlags() {
protected Pointer getPointer(Ruby runtime, long offset) { return new Pointer(runtime, getMemoryIO().getMemoryIO(offset)); } public int getInOutFlags() {
protected Pointer getPointer(Ruby runtime, long offset) { return new Pointer(runtime, getMemoryIO().getMemoryIO(offset)); } public int getInOutFlags() {
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, long size) { return new Buffer(runtime, getMetaClass(), getMemoryIO().slice(offset, size), size, this.typeSize, this.inout); }
/** * */ @JRubyMethod(required = 1, visibility=PRIVATE) public IRubyObject initialize_copy(ThreadContext context, IRubyObject other) { if (this == other) { return this; } Buffer orig = (Buffer) other; this.typeSize = orig.typeSize; this.size = orig.size; this.inout = orig.inout; setMemoryIO(orig.getMemoryIO().dup()); return this; }
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, long size) { return new Buffer(runtime, getMetaClass(), getMemoryIO().slice(offset, size), size, this.typeSize, this.inout); }
/** * */ @JRubyMethod(required = 1, visibility=PRIVATE) public IRubyObject initialize_copy(ThreadContext context, IRubyObject other) { if (this == other) { return this; } Buffer orig = (Buffer) other; this.typeSize = orig.typeSize; this.size = orig.size; this.inout = orig.inout; setMemoryIO(orig.getMemoryIO().dup()); return this; }
protected AbstractMemory slice(Ruby runtime, long offset) { return new Buffer(runtime, getMetaClass(), getMemoryIO().slice(offset), this.size - offset, this.typeSize, this.inout); }
/** * */ @JRubyMethod(required = 1, visibility=PRIVATE) public IRubyObject initialize_copy(ThreadContext context, IRubyObject other) { if (this == other) { return this; } Buffer orig = (Buffer) other; this.typeSize = orig.typeSize; this.size = orig.size; this.inout = orig.inout; setMemoryIO(orig.getMemoryIO().dup()); return this; }
/** * */ @JRubyMethod(required = 1, visibility=PRIVATE) public IRubyObject initialize_copy(ThreadContext context, IRubyObject other) { if (this == other) { return this; } Buffer orig = (Buffer) other; this.typeSize = orig.typeSize; this.size = orig.size; this.inout = orig.inout; setMemoryIO(orig.getMemoryIO().dup()); return this; }