private boolean isEmpty() { return words == null || words.limit() == 0; }
/** Calls {@code IntBufferIndexer(buffer, { buffer.limit() }, { 1 })}. */ public IntBufferIndexer(IntBuffer buffer) { this(buffer, new long[] { buffer.limit() }, ONE_STRIDE); }
/** Returns a string represents of the state of this int buffer. * * @return a string represents of the state of this int buffer. * @since Android 1.0 */ public String toString () { StringBuilder sb = new StringBuilder(); sb.append(getClass().getName()); sb.append(", status: capacity="); //$NON-NLS-1$ sb.append(capacity()); sb.append(" position="); //$NON-NLS-1$ sb.append(position()); sb.append(" limit="); //$NON-NLS-1$ sb.append(limit()); return sb.toString(); } }
/** Returns a string represents of the state of this int buffer. * * @return a string represents of the state of this int buffer. * @since Android 1.0 */ public String toString () { StringBuilder sb = new StringBuilder(); sb.append(getClass().getName()); sb.append(", status: capacity="); //$NON-NLS-1$ sb.append(capacity()); sb.append(" position="); //$NON-NLS-1$ sb.append(position()); sb.append(" limit="); //$NON-NLS-1$ sb.append(limit()); return sb.toString(); } }
private IntBuffer toIntBuffer (int v[], int offset, int count) { ensureBufferCapacity(count << 2); intBuffer.clear(); intBuffer.limit(count); intBuffer.put(v, offset, count); intBuffer.position(0); return intBuffer; }
private IntBuffer toIntBuffer (int v[], int offset, int count) { ensureBufferCapacity(count << 2); intBuffer.clear(); intBuffer.limit(count); intBuffer.put(v, offset, count); intBuffer.position(0); return intBuffer; }
@Override public void alDeleteEffects(final int numEffects, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numEffects) throw new AssertionError(); EXTEfx.alDeleteEffects(buffers); }
@Override public void alDeleteFilters(final int numFilters, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numFilters) throw new AssertionError(); EXTEfx.alDeleteFilters(buffers); }
@Override public void alDeleteBuffers(final int numBuffers, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numBuffers) throw new AssertionError(); AL10.alDeleteBuffers(buffers); }
public void alGenBuffers(int numBuffers, IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numBuffers) throw new AssertionError(); AL10.alGenBuffers(buffers); }
public void alDeleteBuffers(int numBuffers, IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numBuffers) throw new AssertionError(); AL10.alDeleteBuffers(buffers); }
@Override public void alSourceUnqueueBuffers(final int source, final int numBuffers, final IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numBuffers) throw new AssertionError(); AL10.alSourceUnqueueBuffers(source, buffers); }
public void alGenEffects(int numEffects, IntBuffer buffers) { if (buffers.position() != 0) throw new AssertionError(); if (buffers.limit() != numEffects) throw new AssertionError(); EFX10.alGenEffects(buffers); }
@Override public void setArg(int index, int i) { IntBuffer buf = Utils.tempBuffers[0].b16i; buf.position(0); buf.limit(1); buf.put(0, i); int ret = cl.clSetKernelArg(kernel, index, 4, buf); Utils.checkError(ret, "clSetKernelArg"); }
public Int32Array copy (IntBuffer buffer) { if (GWT.isProdMode()) { return ((Int32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining()); } else { ensureCapacity(buffer); for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) { intBuffer.set(j, buffer.get(i)); } return intBuffer.subarray(0, buffer.remaining()); } }
public Int32Array copy (IntBuffer buffer) { if (GWT.isProdMode()) { return ((Int32Array)((HasArrayBufferView)buffer).getTypedArray()).subarray(buffer.position(), buffer.remaining()); } else { ensureCapacity(buffer); for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) { intBuffer.set(j, buffer.get(i)); } return intBuffer.subarray(0, buffer.remaining()); } }
@Override public void glDeleteRenderbuffersEXT(IntBuffer param1) { checkLimit(param1); GLContext.getCurrentGL().glDeleteRenderbuffers(param1.limit(), param1); }
@Override public void glGenTextures(IntBuffer param1) { checkLimit(param1); GLContext.getCurrentGL().glGenTextures(param1.limit(), param1); }
@Override public void glGenVertexArrays(IntBuffer param1) { checkLimit(param1); GLContext.getCurrentGL().getGL2ES3().glGenVertexArrays(param1.limit(), param1); }
@Override public void glDeleteVertexArrays(IntBuffer arrays) { checkLimit(arrays); GLContext.getCurrentGL().getGL2ES3().glDeleteVertexArrays(arrays.limit(), arrays); }