code: public byte[] getBytes(int size){ 
          _checkForRead(size);
          byte[] dst = new byte[size];
         _buf.get(dst, 0, size);
         return dst;
      }
docs: Returns a byte array of length size from the buffer from current position
  @param size
  @return a new byte array with bytes read from the buffer