aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Target
diff options
context:
space:
mode:
authorIgor Anić <igor.anic@gmail.com>2024-03-02 17:52:31 +0100
committerIgor Anić <igor.anic@gmail.com>2024-03-11 12:22:12 +0100
commit614161a7cf65f46cb3e2461ffe2e09d972508a97 (patch)
treee421443136c21a1b24da91c18d76ece3194f00c9 /lib/std/Target
parent5ccbb196ad08fd5e58fc8874917a20f9a220d729 (diff)
downloadzig-614161a7cf65f46cb3e2461ffe2e09d972508a97.tar.gz
zig-614161a7cf65f46cb3e2461ffe2e09d972508a97.zip
std.tar make iterator interface more ergonomic
for the then end users: 1. Don't require user to call file.skip() on file returned from iterator.next if file is not read. Iterator will now handle this. Previously that returned header parsing error, without knowing some tar internals it is hard to understand what is required from user. 2. Use iterator.File.kind enum which is similar to fs.File.Kind, something familiar. Internal Header.Kind has many types which are not exposed but the user needs to have else in kind switch to cover those cases. 3. Add reader interface to the iterator.File.
Diffstat (limited to 'lib/std/Target')
0 files changed, 0 insertions, 0 deletions