java.nio.LongBuffer
A long buffer.
1. Absolute and relative get and put methods that read and write single longs.
2. Absolute and relative bulk get methods that transfer contiguous sequences of longs from this buffer into an array.
3. Absolute and Relative bulk put methods that transfer contiguous sequences of longs from along array or some other long buffer into this buffer.
4. A method for compacting a long buffer.
Some of the Methods of LongBuffer class.
isReadOnly(): This method tells whether or not this buffer is read-only.
limit(): This method returns this buffer's limit.
limit(int): This method sets this buffer's limit.
mark(): This method sets this buffer's mark at its position.
mismatch(LongBuffer): his method finds and returns the relative index of the first mismatch between this buffer and a given buffer.
order(): This method retrieves this buffer's byte order.
position(): This method returns this buffer's position.
position(int): This method sets this buffer's position.
put(long): This method writes the given long into this buffer at the current position and then increments the position.
put(long[]): This method transfers the entire content of the given source long array into this buffer.
put(LongBuffer): This method transfers the longs remaining in the given source buffer into this buffer.
put(int, long): This method writes the given long into this buffer at the given index.
put(int, long[]): This method copies longs into this buffer from the given source array.
put(long[], int, int): This method transfers longs into this buffer from the given source array.
put(int, long[], int, int): This method transfers length longs from the given array, starting at the given offset in the array and at the given index in this buffer.
remaining(): This method returns the number of elements between the current position and the limit.
reset(): This method resets this buffer's position to the previously-marked position.
rewind(): This method rewinds this buffer.
slice(): This method creates a new long buffer whose content is a shared subsequence of this buffer's content.
slice(int, int): This method creates a new long buffer whose content is a shared subsequence of this buffer's content.
toString(): This method returns a string summarizing the state of this buffer.
LongBuffer.wrap(long[]): This method wraps a long array into a buffer.
LongBuffer.wrap(long[], int, int): This method wraps a long array into a buffer.
Some Methods of LongBuffer class Part - I
No comments:
Post a Comment