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

Method allocateShortBuffer

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

Source from the content-addressed store, hash-verified

2390
2391
2392 protected static ShortBuffer allocateShortBuffer(int size) {
2393 if (USE_DIRECT_BUFFERS) {
2394 return allocateDirectShortBuffer(size);
2395 } else {
2396 return ShortBuffer.allocate(size);
2397 }
2398 }
2399
2400
2401 protected static ShortBuffer allocateShortBuffer(short[] arr) {

Callers 7

allocateMethod · 0.95
expandPolyIndicesMethod · 0.95
expandLineIndicesMethod · 0.95
expandPointIndicesMethod · 0.95
trimPolyIndicesMethod · 0.95
trimLineIndicesMethod · 0.95
trimPointIndicesMethod · 0.95

Calls 4

wrapMethod · 0.80
allocateMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected