pub fn next(r: *Reader, io: Io) Error!?Entry
Entry.name is invalidated with the next call to read or next.
Entry.name
read
next
r: *Reader
io: Io
156 157 158 159 160 161 162 163
pub fn next(r: *Reader, io: Io) Error!?Entry { var buffer: [1]Entry = undefined; while (true) { const n = try read(r, io, &buffer); if (n == 1) return buffer[0]; if (r.state == .finished) return null; } }
Entry.nameis invalidated with the next call toreadornext.