mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
Previously, --pad-to is implemented using File.setLength which does a ftruncate syscall immediately. However, for positional writers, setLength will be called again in out.end(), truncating the file back to out.pos bytes. Therefore, seekTo should be called after setLength to update out.pos.
822 lines
31 KiB
822 lines
31 KiB