Access items in TeaFiles via safe memory mapping using MemoryMappedFile.

Namespace: TeaTime
Assembly: DiscreteLogics.TeaFiles (in DiscreteLogics.TeaFiles.dll) Version: (


public sealed class ManagedMemoryMapping<T> : IDisposable
where T : struct, new()

Type Parameters


[Missing <typeparam name="T"/> documentation for "T:TeaTime.ManagedMemoryMapping`1"]


This 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.

See Also