Thank you. It is working. I modified your solution to get first indexes of all patterns in array:

```
a = [0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x70, 0x20, 0x61, 0x70, 0x20, 0x61, 0x73, 0x20, 0x69, 0x20]
b = [0x73, 0x20, 0x69]
function find_sub_array_index(pattern, arr)
findfirst(firstindex(arr):(lastindex(arr) - length(pattern))) do i
@view(arr[i:(i + length(pattern) - 1)]) == pattern
end
end
function find_sub_array_indexes(pattern, arr)
arrResult = []
result = 0
resultLast = 1-size(pattern,1)
patternSize = size(pattern,1)
while result !== nothing
nextIndex = (resultLast + patternSize)
if nextIndex > size(arr, 1)
return arrResult
end
result = resultLast + patternSize + find_sub_array_index(pattern, arr[nextIndex:end])
if result === nothing
return arrResult
end
push!(arrResult, result-1)
resultLast = result
end
end
println(find_sub_array_indexes(b, a))
```

This is not optimized solution, just working example.