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

Method slice

lib/java/nio/ShortToByteBufferAdapter.java:196–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 @Override
197 public ShortBuffer slice() {
198 byteBuffer.limit(limit << 1);
199 byteBuffer.position(position << 1);
200 ShortBuffer result = new ShortToByteBufferAdapter(byteBuffer.slice());
201 byteBuffer.clear();
202 return result;
203 }
204
205}

Callers 1

wrapMethod · 0.45

Calls 3

limitMethod · 0.80
positionMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected