private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) { DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
DirectReadOnlyIntBufferAdapter (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.byteOffset(), capacity); }
DirectReadOnlyShortBufferAdapter (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 1)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.byteOffset(), capacity); }
DirectReadOnlyFloatBufferAdapter (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.floatArray = TypedArrays.createFloat32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.byteOffset(), capacity); }
DirectReadOnlyIntBufferAdapter (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.byteOffset(), capacity); }
DirectReadOnlyShortBufferAdapter (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 1)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.byteOffset(), capacity); }
DirectReadOnlyFloatBufferAdapter (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.floatArray = TypedArrays.createFloat32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.byteOffset(), capacity); }
static DirectReadOnlyByteBuffer copy (DirectByteBuffer other, int markOfOther) { DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.buffer(), other.capacity(), other.byteArray.byteOffset()); buf.limit = other.limit(); buf.position = other.position(); buf.mark = markOfOther; buf.order(other.order()); return buf; }
static DirectReadOnlyByteBuffer copy (DirectByteBuffer other, int markOfOther) { DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.buffer(), other.capacity(), other.byteArray.byteOffset()); buf.limit = other.limit(); buf.position = other.position(); buf.mark = markOfOther; buf.order(other.order()); return buf; }
static DirectReadWriteByteBuffer copy (DirectByteBuffer other, int markOfOther) { DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.buffer(), other.capacity(), other.byteArray.byteOffset()); buf.limit = other.limit(); buf.position = other.position(); buf.mark = markOfOther; buf.order(other.order()); return buf; }
static DirectReadWriteByteBuffer copy (DirectByteBuffer other, int markOfOther) { DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.buffer(), other.capacity(), other.byteArray.byteOffset()); buf.limit = other.limit(); buf.position = other.position(); buf.mark = markOfOther; buf.order(other.order()); return buf; }
private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) { DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) { DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) { DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) { DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static DirectByteBuffer copy(DirectByteBuffer other, int markOfOther, boolean isReadOnly) { DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
DirectReadOnlyIntBufferAdapter (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.byteOffset(), capacity); }
DirectReadOnlyShortBufferAdapter (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 1)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.buffer(), byteBuffer.byteArray.byteOffset(), capacity); }
static DirectReadWriteByteBuffer copy (DirectByteBuffer other, int markOfOther) { DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.buffer(), other.capacity(), other.byteArray.byteOffset()); buf.limit = other.limit(); buf.position = other.position(); buf.mark = markOfOther; buf.order(other.order()); return buf; }
static DirectReadOnlyByteBuffer copy (DirectByteBuffer other, int markOfOther) { DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.buffer(), other.capacity(), other.byteArray.byteOffset()); buf.limit = other.limit(); buf.position = other.position(); buf.mark = markOfOther; buf.order(other.order()); return buf; }