Branch issue/9-windows-bounded-read targeting issue/3-windows-transactional-replace. Summary, tests and the documented contracts are in the commit message and the issue comment.
Closes #9.
Branch `issue/9-windows-bounded-read` targeting `issue/3-windows-transactional-replace`. Summary, tests and the documented contracts are in the commit message and the issue comment.
faumaray
changed target branch from issue/3-windows-transactional-replace to main2026-12-03 08:08:11 +00:00
The Windows read_file_bounded path was implemented together with #3 using
a single CreateFileW handle. This adds the #9 acceptance coverage and
documents the contract:
- The size is checked before allocation and every chunk is re-checked, so
growth after the initial size check still fails with limit_exceeded and
never returns partial contents.
- Windows shares read/write/delete, so another process may append,
rename or replace the path while a background read is pending; the
read continues from the opened handle and sees one coherent version.
- Tests: empty, binary, Unicode path, exact limit, over limit before
reading, and (POSIX) a stream that grows past the limit mid-read.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #9.
Branch
issue/9-windows-bounded-readtargetingissue/3-windows-transactional-replace. Summary, tests and the documented contracts are in the commit message and the issue comment.