Repository navigation
Unify the mapped-file format across C#, C++ and Rust - #134
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #101
Working session summaryPR #134 implements issue #101 and is ready for review. C#, C++, and Rust now share a headerless, native-endian format. They reserve whole pages by default while open and truncate to the stored byte length on successful close. Rust rejects trailing partial elements on typed reopen, and the PR pins the Rust changes through the existing submodule. All nine writer–reader combinations and all seven PR checks passed, including the C++ suite, Rust tests on Linux and Windows, and Codacy. The regression tests reproduced the previous failures and passed with the fix. CI results The PR remains open. No review feedback arrived during the 15-minute review window. Total elapsed time was about 40 minutes. This summary was automatically extracted from the AI working session output. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (232.1K + 9.8M cached) input tokens, 59.8K output tokens, $3.790368 cost 🤖 Models used:
📎 Log file uploaded as Gist (840KB)This AI session has ended. Monitoring of this pull request continues. Feel free to review and add feedback while checks are running. |
🎉 Auto-mergedThis pull request has been automatically merged by hive-mind.
Linked issues |
Fixes #101.
Changes
Close()flush, unmap and truncate toUsedCapacity. C# keeps its existing dispose behavior and stops allocating an extra page on aligned reopen.closeandDropremove spare capacity. Typedopenandadopt_storedreport incomplete elements as invalid data. Rust retains the original bytes when a caller adopts only part of an existing file and reports an error if truncation would invalidate an independently owned view.Reproduction and verification
u64values usingFileMappedand close it. The close regression test found 4,096 bytes on the previous release and 24 bytes with the fix. The partial-element regression test also failed on the previous release and passed with the fix.The fixture check writes empty, short, page-aligned and cross-page files in all three languages. Every reader opens every writer's files and checks the logical size, values, and final bytes. All nine combinations passed locally. Fixture commands
The 67 focused Rust tests passed locally and cover explicit close, drop, legacy input, partial elements, resize failures and mapper behavior. GitHub Actions runs the fixture and checks Rust on Linux and Windows. Workflow runs