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

Method copy

lib/java/nio/ReadWriteFloatArrayBuffer.java:34–42  ·  view source on GitHub ↗
(FloatArrayBuffer other,
            int markOfOther)

Source from the content-addressed store, hash-verified

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

Callers 1

duplicateMethod · 0.95

Calls 3

limitMethod · 0.80
positionMethod · 0.80
capacityMethod · 0.45

Tested by

no test coverage detected