Class ByteBufReader


  • public class ByteBufReader
    extends com.mapr.utils.ByteReader
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] copyOfRange​(int from, int to)  
      byte getByte​(int idx)  
      int length()  
      com.mapr.utils.ByteReader mark()  
      byte nextUnsafe()  
      com.mapr.utils.ByteReader reset()  
      static com.mapr.utils.ByteReader wrap​(io.netty.buffer.ByteBuf buff)  
      • Methods inherited from class com.mapr.utils.ByteReader

        getInt, getIntB, getIntL, getLong, getLongB, getLongL, getOrder, makeInt, makeLong, setOrder, wrap, wrap, wrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • length

        public int length()
        Specified by:
        length in class com.mapr.utils.ByteReader
      • nextUnsafe

        public byte nextUnsafe()
        Specified by:
        nextUnsafe in class com.mapr.utils.ByteReader
      • getByte

        public byte getByte​(int idx)
        Specified by:
        getByte in class com.mapr.utils.ByteReader
      • mark

        public com.mapr.utils.ByteReader mark()
        Specified by:
        mark in class com.mapr.utils.ByteReader
      • reset

        public com.mapr.utils.ByteReader reset()
        Specified by:
        reset in class com.mapr.utils.ByteReader
      • copyOfRange

        public byte[] copyOfRange​(int from,
                                  int to)
        Specified by:
        copyOfRange in class com.mapr.utils.ByteReader
      • wrap

        public static com.mapr.utils.ByteReader wrap​(io.netty.buffer.ByteBuf buff)