Access items in TeaFiles via safe memory mapping using MemoryMappedFile.

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

Syntax

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

Type Parameters

T

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

Remarks

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