MCPcopy Create free account
hub / github.com/ReadyTalk/avian / asReadOnlyBuffer

Method asReadOnlyBuffer

classpath/java/nio/ArrayByteBuffer.java:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 public ByteBuffer asReadOnlyBuffer() {
28 ByteBuffer b = new ArrayByteBuffer(array, arrayOffset, capacity, true);
29 b.position(position());
30 b.limit(limit());
31 return b;
32 }
33
34 public boolean hasArray() {
35 return true;

Callers

nothing calls this directly

Calls 2

positionMethod · 0.45
limitMethod · 0.45

Tested by

no test coverage detected