MCPcopy Index your code
hub / github.com/benfry/processing4 / allocateByteBuffer

Method allocateByteBuffer

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

Source from the content-addressed store, hash-verified

2356
2357
2358 protected static ByteBuffer allocateByteBuffer(int size) {
2359 if (USE_DIRECT_BUFFERS) {
2360 return allocateDirectByteBuffer(size);
2361 } else {
2362 return ByteBuffer.allocate(size);
2363 }
2364 }
2365
2366
2367 protected static ByteBuffer allocateByteBuffer(byte[] arr) {

Callers 4

initAttribMethod · 0.95
expandBoolAttributeMethod · 0.95
trimBoolAttributeMethod · 0.95
PGLMethod · 0.95

Calls 4

wrapMethod · 0.80
allocateMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected