MCPcopy Create free account
hub / github.com/davidgiven/luje / copy

Method copy

lib/java/nio/ReadWriteIntArrayBuffer.java:33–40  ·  view source on GitHub ↗
(IntArrayBuffer other, int markOfOther)

Source from the content-addressed store, hash-verified

31final class ReadWriteIntArrayBuffer extends IntArrayBuffer {
32
33 static ReadWriteIntArrayBuffer copy(IntArrayBuffer other, int markOfOther) {
34 ReadWriteIntArrayBuffer buf = new ReadWriteIntArrayBuffer(other
35 .capacity(), other.backingArray, other.offset);
36 buf.limit = other.limit();
37 buf.position = other.position();
38 buf.mark = markOfOther;
39 return buf;
40 }
41
42 ReadWriteIntArrayBuffer(int[] array) {
43 super(array);

Callers 1

duplicateMethod · 0.95

Calls 3

limitMethod · 0.80
positionMethod · 0.80
capacityMethod · 0.45

Tested by

no test coverage detected