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

Method asReadOnlyBuffer

classpath/java/nio/DirectByteBuffer.java:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 public ByteBuffer asReadOnlyBuffer() {
35 ByteBuffer b = new DirectByteBuffer(address, capacity, true);
36 b.position(position());
37 b.limit(limit());
38 return b;
39 }
40
41 public ByteBuffer slice() {
42 return new DirectByteBuffer(address + position, remaining(), true);

Callers

nothing calls this directly

Calls 2

positionMethod · 0.45
limitMethod · 0.45

Tested by

no test coverage detected