Is there an iterator like eachline
but using readuntil
instead of readline
? I want to iterate over 0-terminated byte sequences.
my use case:
b = IOBuffer()
run(pipeline(`git ls-files -z`; stdout=b))
seekstart(b)
while !Base.eof(b)
@show readuntil(b, '\0')
end
Last updated: Nov 22 2024 at 04:41 UTC