public interface BaseBuffer extends BaseState
defaultMemReqSvr| Modifier and Type | Method and Description |
|---|---|
long |
getEnd()
Gets the end position
|
long |
getPosition()
Gets the current position
|
long |
getRemaining()
The number of elements remaining between the current position and the end position
|
long |
getStart()
Gets start position
|
boolean |
hasRemaining()
Returns true if there are elements remaining between the current position and the end position
|
BaseBuffer |
incrementAndCheckPosition(long increment)
Increments the current position by the given increment.
|
BaseBuffer |
incrementPosition(long increment)
Increments the current position by the given increment.
|
BaseBuffer |
resetPosition()
Resets the current position to the start position,
This does not modify any data.
|
BaseBuffer |
setAndCheckPosition(long position)
Sets the current position.
|
BaseBuffer |
setAndCheckStartPositionEnd(long start,
long position,
long end)
Sets start position, current position, and end position.
|
BaseBuffer |
setPosition(long position)
Sets the current position.
|
BaseBuffer |
setStartPositionEnd(long start,
long position,
long end)
Sets start position, current position, and end position.
|
checkValidAndBounds, equals, equalTo, getByteBuffer, getCapacity, getCumulativeOffset, getCumulativeOffset, getCurrentDirectMemoryAllocated, getCurrentDirectMemoryAllocations, getCurrentDirectMemoryMapAllocated, getCurrentDirectMemoryMapAllocations, getRegionOffset, getRegionOffset, getTypeByteOrder, hasArray, hasByteBuffer, hashCode, isByteOrderCompatible, isDirect, isReadOnly, isSameResource, isValid, toHexString, xxHash64, xxHash64BaseBuffer incrementPosition(long increment)
AssertionError.increment - the given incrementBaseBuffer incrementAndCheckPosition(long increment)
IllegalArgumentException.increment - the given incrementlong getEnd()
long getPosition()
long getStart()
long getRemaining()
(end - position)boolean hasRemaining()
(end - position) > 0BaseBuffer resetPosition()
BaseBuffer setPosition(long position)
AssertionError.position - the given current position.BaseBuffer setAndCheckPosition(long position)
IllegalArgumentException.position - the given current position.BaseBuffer setStartPositionEnd(long start, long position, long end)
AssertionError.start - the start position in the bufferposition - the current position between the start and endend - the end position in the bufferBaseBuffer setAndCheckStartPositionEnd(long start, long position, long end)
IllegalArgumentException.start - the start position in the bufferposition - the current position between the start and endend - the end position in the bufferCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.