class ArraySlice extends Slice {
    /** The wrapped byte array. */
    public byte[] arr;

    /**
     * Constructor for treating a range of an array as a slice.
     *
     * @param parentSlice
     *            the parent slice
     * @param offset
     *            the offset of the sub-slice within the parent slice
     * @param length
     *            the length of the sub-slice
     * @param isDeflatedZipEntry
     *            true if this is a deflated zip entry
     * @param inflatedLengthHint
     *            the uncompressed size of a deflated zip entry, or -1 if unknown, or 0 of this is not a deflated
     *            zip entry.
     * @param nestedJarHandler
     *            the nested jar handler
     */
    private ArraySlice(final ArraySlice parentSlice, final long offset, final long length,
            final boolean isDeflatedZipEntry, final long inflatedLengthHint,
            final NestedJarHandler nestedJarHandler) {
        super(parentSlice, offset, length, isDeflatedZipEntry, inflatedLengthHint, nestedJarHandler);
        this.arr = parentSlice.arr;
    }

    /**
     * Constructor for treating a whole array as a slice.
     *
     * @param arr
     *            the array containing the slice.
     * @param isDeflatedZipEntry
     *            true if this is a deflated zip entry
     * @param inflatedLengthHint
     *            the uncompressed size of a deflated zip entry, or -1 if unknown, or 0 of this is not a deflated
     *            zip entry.
     * @param nestedJarHandler
     *            the nested jar handler
     */
    public ArraySlice(final byte[] arr, final boolean isDeflatedZipEntry, final long inflatedLengthHint,
            final NestedJarHandler nestedJarHandler) {
        super(arr.length, isDeflatedZipEntry, inflatedLengthHint, nestedJarHandler);
        this.arr = arr;
    }

    /**
     * Slice this slice to form a sub-slice.
     *
     * @param offset
     *            the offset relative to the start of this slice to use as the start of the sub-slice.
     * @param length
     *            the length of the sub-slice.
     * @param isDeflatedZipEntry
     *            the is deflated zip entry
     * @param inflatedLengthHint
     *            the uncompressed size of a deflated zip entry, or -1 if unknown, or 0 of this is not a deflated
     *            zip entry.
     * @return the slice
     */
    @Override
    public Slice slice(final long offset, final long length, final boolean isDeflatedZipEntry,
            final long inflatedLengthHint) {<FILL_FUNCTION_BODY>}

    /**
     * Load the slice as a byte array.
     *
     * @return the byte[]
     * @throws IOException
     *             Signals that an I/O exception has occurred.
     */
    @Override
    public byte[] load() throws IOException {
        if (isDeflatedZipEntry) {
            // Deflate into RAM if necessary
            try (InputStream inputStream = open()) {
                return NestedJarHandler.readAllBytesAsArray(inputStream, inflatedLengthHint);
            }
        } else if (sliceStartPos == 0L && sliceLength == arr.length) {
            // Fast path -- return whole array, if the array is the whole slice and is not deflated
            return arr;
        } else {
            // Copy range of array, if it is a slice and it is not deflated
            return Arrays.copyOfRange(arr, (int) sliceStartPos, (int) (sliceStartPos + sliceLength));
        }
    }

    /**
     * Return a new random access reader.
     *
     * @return the random access reader
     */
    @Override
    public RandomAccessReader randomAccessReader() {
        return new RandomAccessArrayReader(arr, (int) sliceStartPos, (int) sliceLength);
    }

    @Override
    public boolean equals(final Object o) {
        return super.equals(o);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}

        if (this.isDeflatedZipEntry) {
            throw new IllegalArgumentException("Cannot slice a deflated zip entry");
        }
        return new ArraySlice(this, offset, length, isDeflatedZipEntry, inflatedLengthHint, nestedJarHandler);
    
<methods>public void close() throws java.io.IOException,public boolean equals(java.lang.Object) ,public int hashCode() ,public abstract byte[] load() throws java.io.IOException,public java.lang.String loadAsString() throws java.io.IOException,public java.io.InputStream open() throws java.io.IOException,public java.io.InputStream open(io.github.classgraph.Resource) throws java.io.IOException,public abstract nonapi.io.github.classgraph.fileslice.reader.RandomAccessReader randomAccessReader() ,public java.nio.ByteBuffer read() throws java.io.IOException,public abstract nonapi.io.github.classgraph.fileslice.Slice slice(long, long, boolean, long) <variables>private int hashCode,public final non-sealed long inflatedLengthHint,public final non-sealed boolean isDeflatedZipEntry,protected final non-sealed nonapi.io.github.classgraph.fastzipfilereader.NestedJarHandler nestedJarHandler,protected final non-sealed nonapi.io.github.classgraph.fileslice.Slice parentSlice,public long sliceLength,public final non-sealed long sliceStartPos