Skip to content

Tag Archives: Java-LongBuffer

The rewind() method of java.nio.LongBuffer Class is used to rewind this buffer. By rewinding this Buffer, the following actions are taken: Current position is set… Read More
The flip() method of java.nio.LongBuffer Class is used to flip this buffer. By flipping this buffer, it meant that the buffer will be trimmed to… Read More
The mark() method of java.nio.LongBuffer Class is used to mark the current position of this LongBuffer as the mark of this buffer. Syntax: public LongBuffer… Read More
The reset() method of java.nio.LongBuffer Class is used to reset this buffer’s position to the previously-marked position. The mark’s value remain unchanged during this process.… Read More
The limit() method of java.nio.LongBuffer Class is used to modify this LongBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The clear() method of java.nio.LongBuffer Class is used to clear this buffer. While clearing this buffer following changes are done: the position is set to… Read More
The equals() method of java.nio.LongBuffer Class is used to check whether or not the given buffer is equal to another object. Two Long buffers are… Read More
get() The get() method of java.nio.LongBuffer Class is used to read the Long at the given buffer’s current position, and then increment the position. Syntax… Read More
The allocate() method of java.nio.LongBuffer Class is used to allocate a new Long buffer next to the existing buffer. The new buffer’s position will be… Read More
wrap(Long[] array) The wrap() method of java.nio.LongBuffer Class is used to wrap a Long array, Longo, a buffer. The new buffer will be backed by… Read More
The arrayOffset() method of java.nio.LongBuffer class is used to return the offset within the buffer’s backing array of the first element of the buffer. It… Read More
The asReadOnlyBuffer() method of java.nio.LongBuffer Class is used to create a new, read-only Long buffer with this buffer’s content. The new buffer is a replica… Read More
The compact() method of java.nio.LongBuffer Class is used to compact the given buffer. The values between the buffer’s current position and its limit are copied… Read More
The slice() method of java.nio.LongBuffer Class is used to creates a new Long buffer whose content is a shared subsequence of the given buffer’s content.… Read More
The array() method of java.nio.LongBuffer Class is used to Return the Long array that backs this buffer. Modifications to this buffer’s content will cause the… Read More