private static ByteArrayBuffer copy(ByteArrayBuffer other, int markOfOther, boolean isReadOnly) { ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static ByteArrayBuffer copy(ByteArrayBuffer other, int markOfOther, boolean isReadOnly) { ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static ByteArrayBuffer copy(ByteArrayBuffer other, int markOfOther, boolean isReadOnly) { ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static ByteArrayBuffer copy(ByteArrayBuffer other, int markOfOther, boolean isReadOnly) { ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static ByteArrayBuffer copy(ByteArrayBuffer other, int markOfOther, boolean isReadOnly) { ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static ByteArrayBuffer copy(ByteArrayBuffer other, int markOfOther, boolean isReadOnly) { ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }
private static ByteArrayBuffer copy(ByteArrayBuffer other, int markOfOther, boolean isReadOnly) { ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); buf.limit = other.limit; buf.position = other.position(); buf.mark = markOfOther; return buf; }