Nonallocating readuntil functionality?

Hello!

Using readuntil I found that it allocates (even though I have no need for it to do so).

Reading on Github I found this post mentioning skipchars https://github.com/JuliaLang/julia/pull/36160

But in my case I need to use a string, which skipchars does not support as far as I understand. So my question is:

Would anyone of you happen to have a custom functionality to readuntil without allocation? I basically use it to find a string and move to the correct location in a file.

Kind regards

For those who might be interested in this in the future, instead consider reading the whole file and do as explained by @stevengj here:

Finding position of a sequence in a UInt8 array?

This will do 1 allocation, which is better than the about 20ish I got before

Kind regards