Skip to content

Tag Archives: Java-FloatBuffer

A Buffer object can be termed as a container for a fixed amount of data. The buffer acts as a storing box, or temporary staging… Read More
The reset() method of java.nio.FloatBuffer Class is used to reset the position of this buffer to a position which was previously-marked. In this, the marked… Read More
The limit() method of java.nio.FloatBuffer Class is used to modify this FloatBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The mark() method of java.nio.FloatBuffer Class is used to mark the current position of this FloatBuffer as the mark of this buffer. Syntax: public final… Read More
The rewind() method of java.nio.FloatBuffer Class is used to rewind this buffer. This method sets the position to zero and limit remains unaffected and if… Read More
The clear() method of java.nio.FloatBuffer Class is used to clear this buffer. This method set the position and limit equal to zero and capacity respectively… Read More
The flip() method of java.nio.FloatBuffer Class is used to flip this buffer. By flipping this buffer, it meant that the buffer will be trimmed to… Read More
The compareTo() method of java.nio.FloatBuffer class is used to compare one buffer to another. Two float buffers are compared by comparing their sequences of remaining… Read More
The allocate() method of java.nio.FloatBuffer Class is used to allocate a new float buffer next to the existing buffer. The new buffer’s position will be… Read More
The compact() method of java.nio.FloatBuffer Class is used to compact the given buffer. The values between the buffer’s current position and its limit are copied… Read More
The arrayOffset() method of java.nio.FloatBuffer class is used to return the offset within the buffer’s backing array of the first element of the buffer. It… Read More
The hasArray() method of java.nio.FloatBuffer class is used to ensure whether or not the given buffer is backed by an accessible float array. It returns… Read More
The slice() method of java.nio.FloatBuffer Class is used to creates a new float buffer whose content is a shared subsequence of the given buffer’s content.The… Read More
get() The get() method of java.nio.FloatBuffer Class is used to reads the float at the given buffer’s current position, and then increments the position. Syntax… Read More
wrap(float[] array) The wrap() method of java.nio.FloatBuffer Class is used to wraps a float array into a buffer. The new buffer will be backed by… Read More