You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cppC++ implementation (cpp/)csharpC# implementation (csharp/)documentationImprovements or additions to documentationenhancementNew feature or requestmem-rs-parityCatch up with linksplatform/mem-rs (see #94)
So a file written by mem-rs and opened by C# reports the zero page padding as used data. A file written by C# opens in mem-rs with any trailing partial element silently dropped (verified, see linksplatform/mem-rs#50).
Proposed solution (decision needed)
Write down the format in a shared spec (README of each implementation): raw native T array, no header, logical length = file length / sizeof(T).
Choose one close policy for all three. Recommended: mem-rs semantics. Keep whole pages, and record the logical length either (a) by truncating to the used length on close, which C# already does and mem-rs could do in Drop, or (b) in an optional 8-byte header / sidecar. (a) is compatible with all existing data.
Add cross-implementation fixture tests: files written by C# are read by Rust and C++, and the other way round.
cppC++ implementation (cpp/)csharpC# implementation (csharp/)documentationImprovements or additions to documentationenhancementNew feature or requestmem-rs-parityCatch up with linksplatform/mem-rs (see #94)
Activity