Java java.nio LongBuffer fields, constructors, methods, implement or subclass

Example usage for Java java.nio LongBuffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio LongBuffer.

The text is from its open source code.

Method

LongBufferallocate(int capacity)
Creates a long buffer based on a newly allocated long array.
long[]array()
Returns the long array which this buffer is based on, if there is one.
intarrayOffset()
Returns the offset of the long array which this buffer is based on, if there is one.
LongBufferasReadOnlyBuffer()
Returns a read-only buffer that shares its content with this buffer.
intcapacity()
Returns the capacity of this buffer.
Bufferclear()
Clears this buffer.
LongBuffercompact()
Compacts this long buffer.
intcompareTo(LongBuffer otherBuffer)
Compare the remaining longs of this buffer to another long buffer's remaining longs.
LongBufferduplicate()
Returns a duplicated buffer that shares its content with this buffer.
booleanequals(Object other)
Checks whether this long buffer is equal to another object.
longget()
Returns the long at the current position and increase the position by 1.
LongBufferget(long[] dest)
Reads longs from the current position into the specified long array and increases the position by the number of longs read.
longget(int index)
Returns the long at the specified index; the position is not changed.
LongBufferget(long[] dest, int off, int len)
Reads longs from the current position into the specified long array, starting from the specified offset, and increase the position by the number of longs read.
booleanhasArray()
Indicates whether this buffer is based on a long array and is read/write.
inthashCode()
Calculates this buffer's hash code from the remaining chars.
booleanhasRemaining()
Indicates if there are elements remaining in this buffer, that is if position < limit .
booleanisDirect()
Indicates whether this buffer is direct.
ByteOrderorder()
Returns the byte order used by this buffer when converting longs from/to bytes.
intposition()
Returns the position of this buffer.
Bufferposition(int newPosition)
Sets the position of this buffer.
LongBufferput(long l)
Writes the given long to the current position and increases the position by 1.
LongBufferput(long[] src)
Writes longs from the given long array to the current position and increases the position by the number of longs written.
LongBufferput(LongBuffer src)
Writes all the remaining longs of the src long buffer to this buffer's current position, and increases both buffers' position by the number of longs copied.
LongBufferput(int index, long l)
Writes a long to the specified index of this buffer; the position is not changed.
LongBufferput(long[] src, int off, int len)
Writes longs from the given long array, starting from the specified offset, to the current position and increases the position by the number of longs written.
intremaining()
Returns the number of remaining elements in this buffer, that is limit - position .
Bufferrewind()
Rewinds this buffer.
LongBufferslice()
Returns a sliced buffer that shares its content with this buffer.
StringtoString()
Returns a string representing the state of this long buffer.
LongBufferwrap(long[] array)
Creates a new long buffer by wrapping the given long array.
LongBufferwrap(long[] array, int start, int len)
Creates a new long buffer by wrapping the given long array.