Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 719 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 719 Bytes

C# mapped files

FileMappedResizableDirectMemory stores the native-endian bytes of the values without a header. See the shared format.

On open, UsedCapacity is the existing length in bytes, and the default reservation rounds up to the system page size. Set UsedCapacity to the number of initialized bytes before calling Dispose or leaving the using block. The file is truncated to that length.

For a typed array, compute the element count as UsedCapacity / sizeof(T) after checking for a whole number of elements. An empty file represents zero elements. See the fixture check.