Bounded Windows read coverage and sharing documentation (#9) #25

Merged
faumaray merged 1 commits from issue/9-windows-bounded-read into main 2026-12-03 08:08:13 +00:00
Owner

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.

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 main 2026-12-03 08:08:11 +00:00
faumaray added 1 commit 2026-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.
faumaray merged commit 72733e2b93 into main 2026-12-03 08:08:13 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#25