Skip to content

Tag Archives: Java-ByteBuffer

The equals() method of java.nio.ByteBuffer class is used to check whether or not the given buffer is equal to another object. Two byte buffers are… Read More
The asShortBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as a short buffer.The content of the new buffer… Read More
The compact() method of java.nio.ByteBuffer class is used to compact the given buffer.The bytes between the buffer’s current position and its limit, if any, are… Read More
The duplicate() method of java.nio.ByteBuffer class is used to create a new byte buffer that shares this buffer’s content. The content of the new buffer… Read More
get() The get() method of java.nio.ByteBuffer class is used to read the byte at the buffer’s current position, and then increments the position. Syntax :… Read More
The compareTo() method of java.nio.ByteBuffer class is used to compare one buffer to another. Two byte buffers are compared by comparing their sequences of remaining elements… Read More
The asLongBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as a long buffer.The content of the new buffer… Read More
The asReadOnlyBuffer() method of java.nio.ByteBuffer class is used to create a new, read-only byte buffer that shares this buffer’s content. The content of the new… Read More
The asDoubleBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as a double buffer.The content of the new buffer… Read More
The allocateDirect() method of java.nio.ByteBuffer class is used Allocates a new direct byte buffer. The new buffer’s position will be zero, its limit will be… Read More
The asCharBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as a char buffer.The content of the new buffer… Read More
The array() method of java.nio.ByteBuffer class is used to return the byte array that backs the taken buffer.Modifications to this buffer’s content will cause the… Read More
The allocate() method of java.nio.ByteBuffer class is used to allocate a new byte buffer. The new buffer’s position will be zero, its limit will be… Read More
The asFloatBuffer() method of java.nio.ByteBuffer class is used to create view of this byte buffer as a float buffer.The content of the new buffer will… Read More
The asIntBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as an int buffer. The content of the new… Read More

Start Your Coding Journey Now!