Package com.mapr.utils
Class ByteBufferReader
java.lang.Object
com.mapr.utils.ByteReader
com.mapr.utils.ByteBufferReader
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]copyOfRange(int from, int to) Doesn't affect the cursor value of the objectbytegetByte(int idx) intlength()mark()bytereset()static ByteReaderwrap(ByteBuffer buff)
-
Method Details
-
length
public int length()- Specified by:
lengthin classByteReader
-
nextUnsafe
public byte nextUnsafe()- Specified by:
nextUnsafein classByteReader
-
getByte
public byte getByte(int idx) - Specified by:
getBytein classByteReader
-
mark
- Specified by:
markin classByteReader
-
reset
- Specified by:
resetin classByteReader
-
copyOfRange
public byte[] copyOfRange(int from, int to) Description copied from class:ByteReaderDoesn't affect the cursor value of the object- Specified by:
copyOfRangein classByteReader
-
wrap
-