code: public void getBytes(int index, OutputStream out, int length)
              throws IOException
      {
          checkIndexLength(index, length);
  
          out.write(base, index, length);
      }
docs: Transfers a portion of data from this slice into the specified stream starting at the
  specified absolute {@code index}.
  
  @param length the number of bytes to transfer
  @throws IndexOutOfBoundsException if the specified {@code index} is less than {@code 0} or
  if {@code index + length} is greater than
  {@code this.length()}
  @throws java.io.IOException if the specified stream threw an exception during I/O