code: static ByteBuffer[] subsequence(ByteBuffer[] bs, int offset, int length) {
          if ((offset == 0) && (length == bs.length))
              return bs;
          int n = length;
          ByteBuffer[] bs2 = new ByteBuffer[n];
          for (int i = 0; i < n; i++)
              bs2[i] = bs[offset + i];
          return bs2;
      }
docs: -- Random stuff --