Skip to content

Tag Archives: Java-ByteBuffer

putLong(int value) The putLong(int value) method of java.nio.ByteBuffer Class is used to write eight bytes containing the given long value, in the current byte order,… Read More
The toString() method of ByteBuffer class is the inbuilt method used to returns a string representing the data contained by ByteBuffer Object. A new String… Read More
putInt(int value) The putInt(int value) method of java.nio.ByteBuffer Class is used to write four bytes containing the given int value, in the current byte order,… Read More
wrap(byte[] array) The wrap() method of java.nio.ByteBuffer Class is used to wraps a byte array into a buffer. The new buffer will be backed by… Read More
putShort(int value) The putShort(int value) method of java.nio.ByteBuffer Class is used to write two bytes containing the given short value, in the current byte order,… Read More
getShort() The getShort() method of java.nio.ByteBuffer class is used to read the next two bytes at this buffer’s current position, composing them into a short… Read More
getDouble() The getDouble() method of java.nio.ByteBuffer class is used to read the next eight bytes at this buffer’s current position, composing them into a double… Read More
order() The order() method of java.nio.ByteBuffer class is used to retrieve this buffer’s byte order. The byte order is used when reading or writing multibyte… Read More
getLong() The getLong() method of java.nio.ByteBuffer class is used to read the next eight bytes at this buffer’s current position, composing them into a long… Read More
The hasArray() method of java.nio.ByteBuffer class is used to ensure whether or not the given buffer is backed by an accessible byte array. It returns… Read More
getChar() The getChar() method of java.nio.ByteBuffer class is used to get method for reading a char value Reads the next two bytes at this buffer’s… Read More
getInt() The getInt() method of java.nio.ByteBuffer class is used to read the next four bytes at this buffer’s current position, composing them into an int… Read More
The hashCode() method of java.nio.ByteBuffer class is used to return the current hash code of this buffer. The hash code of a byte buffer depends… Read More
getFloat() The getFloat() method of java.nio.ByteBuffer class is used to read the next four bytes at this buffer’s current position, composing them into a float… Read More
The arrayOffset() method of java.nio.ByteBuffer class is used to return the offset within the given buffer’s backing array of the first element of the buffer.… Read More

Start Your Coding Journey Now!