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

Method allocateDirectByteBuffer

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

Source from the content-addressed store, hash-verified

2292
2293
2294 protected static ByteBuffer allocateDirectByteBuffer(int size) {
2295 int bytes = PApplet.max(MIN_DIRECT_BUFFER_SIZE, size) * SIZEOF_BYTE;
2296 return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder());
2297 }
2298
2299
2300 protected static ByteBuffer allocateByteBuffer(int size) {

Callers 3

allocateByteBufferMethod · 0.95
updateByteBufferMethod · 0.95
getBooleanvMethod · 0.80

Calls 1

maxMethod · 0.95

Tested by

no test coverage detected