Tag Archives: Java-ShortBuffer

The limit() method of java.nio.ShortBuffer Class is used to modify this ShortBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The reset() method of java.nio.ShortBuffer 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 mark() method of java.nio.ShortBuffer Class is used to mark the current position of this ShortBuffer as the mark of this buffer. Syntax: public ShortBuffer… Read More
The rewind() method of java.nio.ShortBuffer Class is used to rewind this buffer. By rewinding this Buffer, the following actions are taken: Current position is set… Read More
The clear() method of java.nio.ShortBuffer Class is used to clear this buffer. While clearing this buffer following changes are done: the current position is set… Read More
The flip() method of java.nio.ShortBuffer Class is used to flip this buffer. By flipping this buffer, it meant that the buffer will be trimmed to… Read More
The put() method of java.nio.ShortBuffer Class is used to write the given short into this buffer at the given index. Syntax: public abstract ShortBuffer put(int… Read More
The hashCode() method of java.nio.ShortBuffer is used to return the hash code for a particular buffer. The hash code of a short buffer depends only… Read More
The isDirect() method of java.nio.ShortBuffer is used to check whether or not this short buffer is direct. Syntax: public abstract boolean isDirect() Return Value: The… Read More
The equals() method of java.nio.ShortBuffer Class is used to check whether or not the given buffer is equal to another object. Two short buffers are… Read More
The order() method of java.nio.ShortBuffer is used to retrieve the buffer’s byte order. The byte order of a short buffer created by allocation or by… Read More
The toString() method in java.nio.ShortBuffer is used to return a string summarizing the state of this buffer. Syntax: public String toString() Return Value:The method returns… Read More
The slice() method of java.nio.ShortBuffer Class is used to create a new short buffer whose content is a shared subsequence of this buffer’s content. The… Read More
The allocate() method of java.nio.ShortBuffer Class is used to allocate a new short buffer. The position of the new Buffer will be zero & it’s… Read More
The compact() method of java.nio.ShortBuffer Class is used to compact the given buffer. The shorts between the buffer’s current position and its limit, if any,… Read More