final void checkWritable() { if (isReadOnly()) { throw new IllegalArgumentException("Read-only buffer"); } }
/** * Assert the writability of the given buffers. * * @param buffers the buffers array * @param offs the offset in the array to start searching * @param len the number of buffers to check * @throws ReadOnlyBufferException if any of the buffers are read-only */ public static void assertWritable(Buffer[] buffers, int offs, int len) throws ReadOnlyBufferException { for (int i = 0; i < len; i ++) { if (buffers[i + offs].isReadOnly()) { throw msg.readOnlyBuffer(); } } }
if (data != null && data.isReadOnly()) { throw new IllegalArgumentException( "VertexBuffer data cannot be read-only." );
if (data.isReadOnly()) { throw new IllegalArgumentException("VertexBuffer data cannot be read-only.");
int checkPutBounds(int bytesPerElement, int length, int offset, int count) { int byteCount = bytesPerElement * count; if ((offset | count) < 0 || offset > length || length - offset < count) { throw new IndexOutOfBoundsException("offset=" + offset + ", count=" + count + ", length=" + length); } if (byteCount > remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); } return byteCount; }
public boolean isReadOnlyt( ) { return _buffer.isReadOnly( ); }
final void checkWritable() { if (isReadOnly()) { throw new IllegalArgumentException("Read-only buffer"); } }
final void checkWritable() { if (isReadOnly()) { throw new IllegalArgumentException("Read-only buffer"); } }
final void checkWritable() { if (isReadOnly()) { throw new IllegalArgumentException("Read-only buffer"); } }
final void checkWritable() { if (isReadOnly()) { throw new IllegalArgumentException("Read-only buffer"); } }
final void checkWritable() { if (isReadOnly()) { throw new IllegalArgumentException("Read-only buffer"); } }
final void checkWritable() { if (isReadOnly()) { throw new IllegalArgumentException("Read-only buffer"); } }
final void checkWritable() { if (isReadOnly()) throw new IllegalArgumentException("Read-only buffer"); }
int checkPutBounds(int bytesPerElement, int length, int offset, int count) { int byteCount = bytesPerElement * count; if ((offset | count) < 0 || offset > length || length - offset < count) throw new IndexOutOfBoundsException("offset=" + offset + ", count=" + count + ", length=" + length); if (byteCount > remaining()) throw new BufferOverflowException(); if (isReadOnly()) throw new ReadOnlyBufferException(); return byteCount; }
int checkPutBounds(int bytesPerElement, int length, int offset, int count) { int byteCount = bytesPerElement * count; if ((offset | count) < 0 || offset > length || length - offset < count) { throw new IndexOutOfBoundsException("offset=" + offset + ", count=" + count + ", length=" + length); } if (byteCount > remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); } return byteCount; }
int checkPutBounds(int bytesPerElement, int length, int offset, int count) { int byteCount = bytesPerElement * count; if ((offset | count) < 0 || offset > length || length - offset < count) { throw new IndexOutOfBoundsException("offset=" + offset + ", count=" + count + ", length=" + length); } if (byteCount > remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); } return byteCount; }
int checkPutBounds(int bytesPerElement, int length, int offset, int count) { int byteCount = bytesPerElement * count; if ((offset | count) < 0 || offset > length || length - offset < count) { throw new IndexOutOfBoundsException("offset=" + offset + ", count=" + count + ", length=" + length); } if (byteCount > remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); } return byteCount; }
int checkPutBounds(int bytesPerElement, int length, int offset, int count) { int byteCount = bytesPerElement * count; if ((offset | count) < 0 || offset > length || length - offset < count) { throw new IndexOutOfBoundsException("offset=" + offset + ", count=" + count + ", length=" + length); } if (byteCount > remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); } return byteCount; }
int checkPutBounds(int bytesPerElement, int length, int offset, int count) { int byteCount = bytesPerElement * count; if ((offset | count) < 0 || offset > length || length - offset < count) { throw new IndexOutOfBoundsException("offset=" + offset + ", count=" + count + ", length=" + length); } if (byteCount > remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); } return byteCount; }
int checkPutBounds(int bytesPerElement, int length, int offset, int count) { int byteCount = bytesPerElement * count; if ((offset | count) < 0 || offset > length || length - offset < count) { throw new IndexOutOfBoundsException("offset=" + offset + ", count=" + count + ", length=" + length); } if (byteCount > remaining()) { throw new BufferOverflowException(); } if (isReadOnly()) { throw new ReadOnlyBufferException(); } return byteCount; }