MCPcopy Index your code
hub / github.com/processing/processing / allocateDirectShortBuffer

Method allocateDirectShortBuffer

core/src/processing/opengl/PGL.java:2385–2389  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

2383
2384
2385 protected static ShortBuffer allocateDirectShortBuffer(int size) {
2386 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_SHORT;
2387 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder()).
2388 asShortBuffer();
2389 }
2390
2391
2392 protected static ShortBuffer allocateShortBuffer(int size) {

Callers 2

allocateShortBufferMethod · 0.95
updateShortBufferMethod · 0.95

Calls 1

maxMethod · 0.95

Tested by

no test coverage detected