The methods of Java.Nio.ByteBuffer are listed below. For a list of all members, see the ByteBuffer Members list.
See Also: Inherited members from Java.Nio.Buffer
static | Allocate(int)Creates a byte buffer based on a newly allocated byte array. | |
static | AllocateDirect(int)Creates a direct byte buffer based on a newly allocated memory block. | |
override | ArrayOffset()Returns the offset of the byte array which this buffer is based on, if there is one. | |
abstract | AsCharBuffer()Returns a char buffer which is based on the remaining content of this byte buffer. | |
abstract | AsDoubleBuffer()Returns a double buffer which is based on the remaining content of this byte buffer. | |
abstract | AsFloatBuffer()Returns a float buffer which is based on the remaining content of this byte buffer. | |
abstract | AsIntBuffer()Returns a int buffer which is based on the remaining content of this byte buffer. | |
abstract | AsLongBuffer()Returns a long buffer which is based on the remaining content of this byte buffer. | |
abstract | AsReadOnlyBuffer()Returns a read-only buffer that shares its content with this buffer. | |
abstract | AsShortBuffer()Returns a short buffer which is based on the remaining content of this byte buffer. | |
abstract | Compact()Compacts this byte buffer. | |
CompareTo(ByteBuffer)Compares the remaining bytes of this buffer to another byte buffer's remaining bytes. | ||
abstract | Duplicate()Returns a duplicated buffer that shares its content with this buffer. | |
abstract | Get()Returns the byte at the current position and increases the position by 1. | |
Get(byte[])Reads bytes from the current position into the specified byte array and increases the position by the number of bytes read. | ||
abstract | Get(int)Returns the byte at the specified index and does not change the position. | |
Get(byte[], int, int)Reads bytes from the current position into the specified byte array, starting at the specified offset, and increases the position by the number of bytes read. | ||
abstract | GetChar(int)Returns the char at the specified index. | |
abstract | GetDouble(int)Returns the double at the specified index. | |
abstract | GetFloat(int)Returns the float at the specified index. | |
abstract | GetInt(int)Returns the int at the specified index. | |
abstract | GetLong(int)Returns the long at the specified index. | |
abstract | GetShort(int)Returns the short at the specified index. | |
Order()Returns the byte order used by this buffer when converting bytes from/to other primitive types. | ||
Order(ByteOrder)Sets the byte order of this buffer. | ||
Put(ByteBuffer)Writes all the remaining bytes of the src byte buffer to this buffer's current position, and increases both buffers' position by the number of bytes copied. | ||
Put(byte[])Writes bytes in the given byte array to the current position and increases the position by the number of bytes written. | ||
abstract | Put(sbyte)Writes the given byte to the current position and increases the position by 1. | |
abstract | Put(int, sbyte)Write a byte to the specified index of this buffer without changing the position. | |
Put(byte[], int, int)Writes bytes in the given byte array, starting from the specified offset, to the current position and increases the position by the number of bytes written. | ||
abstract | PutChar(char)Writes the given char to the current position and increases the position by 2. | |
abstract | PutChar(int, char)Writes the given char to the specified index of this buffer. | |
abstract | PutDouble(double)Writes the given double to the current position and increases the position by 8. | |
abstract | PutDouble(int, double)Writes the given double to the specified index of this buffer. | |
abstract | PutFloat(float)Writes the given float to the current position and increases the position by 4. | |
abstract | PutFloat(int, float)Writes the given float to the specified index of this buffer. | |
abstract | PutInt(int)Writes the given int to the current position and increases the position by 4. | |
abstract | PutInt(int, int)Writes the given int to the specified index of this buffer. | |
abstract | PutLong(long)Writes the given long to the current position and increases the position by 8. | |
abstract | PutLong(int, long)Writes the given long to the specified index of this buffer. | |
abstract | PutShort(short)Writes the given short to the current position and increases the position by 2. | |
abstract | PutShort(int, short)Writes the given short to the specified index of this buffer. | |
abstract | Slice()Returns a sliced buffer that shares its content with this buffer. | |
static | Wrap(byte[])Creates a new byte buffer by wrapping the given byte array. | |
static | Wrap(byte[], int, int)Creates a new byte buffer by wrapping the given byte array. |