public ByteArray slice(int start, int end) {
    checkOffsets(start, end);
    byte[] slicedOut = Arrays.copyOfRange(bytes, start, end);
    return new ByteArray(slicedOut);
  }
Returns a slice (that is, a sub-array) of this instance.

@param start {@code >= 0;} start index of the slice (inclusive)
@param end {@code >= start, <= size();} end index of the slice (exclusive)
@return {@code non-null;} the slice
android/android_framework/dex-maker/src/main/java/com/android/dx/util/ByteArray.java