Class ByteReader

java.lang.Object
com.mapr.utils.ByteReader
Direct Known Subclasses:
ByteArrayReader, ByteBufferReader

public abstract class ByteReader extends Object
  • Constructor Details

    • ByteReader

      public ByteReader()
  • Method Details

    • wrap

      public static ByteReader wrap(byte[] buff)
    • wrap

      public static ByteReader wrap(byte[] buff, int offset, int length)
    • wrap

      public static ByteReader wrap(ByteBuffer buff)
    • getOrder

      public ByteOrder getOrder()
    • setOrder

      public ByteReader setOrder(ByteOrder order)
    • length

      public abstract int length()
    • nextUnsafe

      public abstract byte nextUnsafe()
    • getByte

      public abstract byte getByte(int idx)
    • mark

      public abstract ByteReader mark()
    • reset

      public abstract ByteReader reset()
    • copyOfRange

      public abstract byte[] copyOfRange(int from, int to)
      Doesn't affect the cursor value of the object
    • getInt

      public int getInt(int idx)
    • getLong

      public long getLong(int idx)
    • getIntL

      protected int getIntL(int idx)
    • getIntB

      protected int getIntB(int idx)
    • makeInt

      protected int makeInt(byte b3, byte b2, byte b1, byte b0)
    • getLongL

      protected long getLongL(int idx)
    • getLongB

      protected long getLongB(int idx)
    • makeLong

      protected long makeLong(byte b7, byte b6, byte b5, byte b4, byte b3, byte b2, byte b1, byte b0)