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

Method fillByteBuffer

core/src/processing/opengl/PGL.java:2374–2382  ·  view source on GitHub ↗
(ByteBuffer buf, int i0, int i1,
                                       byte val)

Source from the content-addressed store, hash-verified

2372
2373
2374 protected static void fillByteBuffer(ByteBuffer buf, int i0, int i1,
2375 byte val) {
2376 int n = i1 - i0;
2377 byte[] temp = new byte[n];
2378 Arrays.fill(temp, 0, n, val);
2379 buf.position(i0);
2380 buf.put(temp, 0, n);
2381 buf.rewind();
2382 }
2383
2384
2385 protected static ShortBuffer allocateDirectShortBuffer(int size) {

Callers

nothing calls this directly

Calls 2

fillMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected