Skip to content

Tag Archives: Java-IntBuffer

IntBuffer holds a sequence of integer values to be used in an I/O operation. The IntBuffer class provides the following four categories of operations upon… Read More
The rewind() method of java.nio.IntBuffer Class is used to rewind this buffer. The position is set to zero and the mark is discarded. Invoke this… Read More
The reset() method of java.nio.IntBuffer Class is used to reset this buffer’s position to the previously-marked position. Invoking this method neither changes nor discards the… Read More
The mark() method of java.nio.IntBuffer Class is used to mark the current position of this IntBuffer as the mark of this buffer. Syntax: public final… Read More
The limit() method of java.nio.IntBuffer Class is used to modify this IntBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The flip() method of java.nio.IntBuffer Class is used to flip this buffer. By flipping this buffer, it meant that the buffer will be trimmed to… Read More
The clear() method of java.nio.IntBuffer Class is used to clear this buffer. While clearing this buffer following changes are done: the position is set to… Read More
The asReadOnlyBuffer() method of java.nio.IntBuffer Class is used to create a new, read-only int buffer with this buffer’s content. The new buffer is a replica… Read More
The compareTo() method of java.nio.IntBuffer class is used to compare one buffer to another. Two int buffers are compared by comparing their sequences of remaining… Read More
The duplicate() method of java.nio.IntBuffer Class is used to create a new IntBuffer that shares the given buffer’s content, identically in all aspects. Syntax: public… Read More
The array() method of java.nio.IntBuffer Class is used to Return the int array that backs this buffer. Modifications to this buffer’s content will cause the… Read More
The compact() method of java.nio.IntBuffer Class is used to compact the given buffer. The values between the buffer’s current position and its limit are copied… Read More
The hasArray() method of java.nio.IntBuffer class is used to ensure whether or not the given buffer is backed by an accessible int array. It returns… Read More
The allocate() method of java.nio.IntBuffer Class is used to allocate a new int buffer next to the existing buffer. The new buffer’s position will be… Read More
The slice() method of java.nio.IntBuffer Class is used to creates a new int buffer whose content is a shared subsequence of the given buffer’s content.… Read More