docs: public byte[] toArray(int start, int end) {
          checkIndex(start);
          checkIndex(end);
          byte[] result = new byte[start > end ? 0 : end - start];
          
          for (int i = start; i < end; i++) {
              result[i] = getByte(i);
          }
          
          return result;
      }