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

Method allocateByteBuffer

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

Source from the content-addressed store, hash-verified

2298
2299
2300 protected static ByteBuffer allocateByteBuffer(int size) {
2301 if (USE_DIRECT_BUFFERS) {
2302 return allocateDirectByteBuffer(size);
2303 } else {
2304 return ByteBuffer.allocate(size);
2305 }
2306 }
2307
2308
2309 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