Class ByteReader

    • Constructor Detail

      • ByteReader

        public ByteReader()
    • Method Detail

      • wrap

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

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

        public static ByteReader wrap​(java.nio.ByteBuffer buff)
      • getOrder

        public java.nio.ByteOrder getOrder()
      • setOrder

        public ByteReader setOrder​(java.nio.ByteOrder order)
      • length

        public abstract int length()
      • nextUnsafe

        public abstract byte nextUnsafe()
      • getByte

        public abstract byte getByte​(int idx)
      • 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)