Access items in TeaFiles via safe memory mapping using MemoryMappedFile.Namespace: TeaTime
Assembly: DiscreteLogics.TeaFiles (in DiscreteLogics.TeaFiles.dll) Version: 22.214.171.124 (126.96.36.199)
public sealed class ManagedMemoryMapping<T> : IDisposable where T : struct, new()
[Missing <typeparam name="T"/> documentation for "T:TeaTime.ManagedMemoryMapping`1"]
RemarksThis safe way of memory mapping incurs significant overhead such that performance gains are far behind using unsafe P/Invoke Memory Mapping.
If pure managed code is required, this class might be prefered over RawMemoryMapping<(Of <(<'T>)>)>. It also provides a type safe interface, while RawMemoryMapping<(Of <(<'T>)>)> provides raw byte* only. For performance reasons however, MemoryMappedTeaFile is much faster.