Java java.nio IntBuffer fields, constructors, methods, implement or subclass

Example usage for Java java.nio IntBuffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio IntBuffer.

The text is from its open source code.

Method

IntBufferallocate(int capacity)
Creates an int buffer based on a newly allocated int array.
int[]array()
Returns the int array which this buffer is based on, if there is one.
intarrayOffset()
Returns the offset of the int array which this buffer is based on, if there is one.
IntBufferasReadOnlyBuffer()
Returns a read-only buffer that shares its content with this buffer.
intcapacity()
Returns the capacity of this buffer.
Bufferclear()
Clears this buffer.
IntBuffercompact()
Compacts this int buffer.
intcompareTo(IntBuffer otherBuffer)
Compares the remaining ints of this buffer to another int buffer's remaining ints.
IntBufferduplicate()
Returns a duplicated buffer that shares its content with this buffer.
booleanequals(Object other)
Checks whether this int buffer is equal to another object.
Bufferflip()
Flips this buffer.
intget()
Returns the int at the current position and increases the position by 1.
IntBufferget(int[] dest)
Reads ints from the current position into the specified int array and increases the position by the number of ints read.
intget(int index)
Returns an int at the specified index; the position is not changed.
IntBufferget(int[] dest, int off, int len)
Reads ints from the current position into the specified int array, starting from the specified offset, and increases the position by the number of ints read.
booleanhasArray()
Indicates whether this buffer is based on a int array and is read/write.
inthashCode()
Calculates this buffer's hash code from the remaining chars.
booleanhasRemaining()
Indicates if there are elements remaining in this buffer, that is if position < limit .
booleanisDirect()
Indicates whether this buffer is direct.
intlimit()
Returns the limit of this buffer.
Bufferlimit(int newLimit)
Sets the limit of this buffer.
ByteOrderorder()
Returns the byte order used by this buffer when converting ints from/to bytes.
intposition()
Returns the position of this buffer.
Bufferposition(int newPosition)
Sets the position of this buffer.
IntBufferput(int i)
Writes the given int to the current position and increases the position by 1.
IntBufferput(int[] src)
Writes ints from the given int array to the current position and increases the position by the number of ints written.
IntBufferput(IntBuffer src)
Writes all the remaining ints of the src int buffer to this buffer's current position, and increases both buffers' position by the number of ints copied.
IntBufferput(int[] src, int off, int len)
Writes ints from the given int array, starting from the specified offset, to the current position and increases the position by the number of ints written.
IntBufferput(int index, int i)
Write a int to the specified index of this buffer; the position is not changed.
intremaining()
Returns the number of remaining elements in this buffer, that is limit - position .
Bufferrewind()
Rewinds this buffer.
IntBufferslice()
Returns a sliced buffer that shares its content with this buffer.
StringtoString()
Returns a string represents of the state of this int buffer.
IntBufferwrap(int[] array, int start, int len)
Creates a new int buffer by wrapping the given int array.
IntBufferwrap(int[] array)
Creates a new int buffer by wrapping the given int array.