Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions csharp/Platform.Memory/ArrayMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ public class ArrayMemory<TElement> : IArrayMemory<TElement>
#region Properties

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IMemory.Size"]/*'/>
public long Size
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => _array.Length;
}

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IArrayMemory`1.Item(System.Int64)"]/*'/>
public TElement this[long index]
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down
3 changes: 0 additions & 3 deletions csharp/Platform.Memory/DirectMemoryAsArrayMemoryAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,20 @@ public class DirectMemoryAsArrayMemoryAdapter<TElement> : DisposableBase, IArray
#region Properties

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IMemory.Size"]/*'/>
public long Size
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => _memory.Size;
}

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IDirectMemory.Pointer"]/*'/>
public IntPtr Pointer
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => _memory.Pointer;
}

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IArrayMemory`1.Item(System.Int64)"]/*'/>
public TElement this[long index]
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down
2 changes: 0 additions & 2 deletions csharp/Platform.Memory/FileArrayMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ public class FileArrayMemory<TElement> : DisposableBase, IArrayMemory<TElement>
#region Properties

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IMemory.Size"]/*'/>
public long Size
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => _file.Length;
}

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IArrayMemory`1.Item(System.Int64)"]/*'/>
public TElement this[long index]
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down
2 changes: 0 additions & 2 deletions csharp/Platform.Memory/FileMappedResizableDirectMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ private bool UnmapFile(IntPtr pointer)
#region ResizableDirectMemoryBase Methods

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="M:Platform.Memory.ResizableDirectMemoryBase.OnReservedCapacityChanged(System.Int64,System.Int64)"]/*'/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected override void OnReservedCapacityChanged(long oldReservedCapacity, long newReservedCapacity)
{
Expand All @@ -123,7 +122,6 @@ protected override void OnReservedCapacityChanged(long oldReservedCapacity, long
}

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="M:Platform.Memory.ResizableDirectMemoryBase.DisposePointer(System.IntPtr,System.Int64)"]/*'/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected override void DisposePointer(IntPtr pointer, long usedCapacity)
{
Expand Down
2 changes: 0 additions & 2 deletions csharp/Platform.Memory/HeapResizableDirectMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ public HeapResizableDirectMemory() : this(MinimumCapacity) { }
#region ResizableDirectMemoryBase Methods

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="M:Platform.Memory.ResizableDirectMemoryBase.DisposePointer(System.IntPtr,System.Int64)"]/*'/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected override void DisposePointer(IntPtr pointer, long usedCapacity) => Marshal.FreeHGlobal(pointer);

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="M:Platform.Memory.ResizableDirectMemoryBase.OnReservedCapacityChanged(System.Int64,System.Int64)"]/*'/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected override void OnReservedCapacityChanged(long oldReservedCapacity, long newReservedCapacity)
{
Expand Down
4 changes: 0 additions & 4 deletions csharp/Platform.Memory/ResizableDirectMemoryBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public abstract class ResizableDirectMemoryBase : DisposableBase, IResizableDire
#region Properties

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IMemory.Size"]/*'/>
/// <exception cref="ObjectDisposedException"><para>The memory block is disposed.</para><para>Блок памяти уже высвобожден.</para></exception>
public long Size
{
Expand All @@ -46,7 +45,6 @@ public long Size
}

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IDirectMemory.Pointer"]/*'/>
/// <exception cref="ObjectDisposedException"><para>The memory block is disposed.</para><para>Блок памяти уже высвобожден.</para></exception>
public IntPtr Pointer
{
Expand All @@ -65,7 +63,6 @@ protected set
}

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IResizableDirectMemory.ReservedCapacity"]/*'/>
/// <exception cref="ObjectDisposedException"><para>The memory block is disposed.</para><para>Блок памяти уже высвобожден.</para></exception>
/// <exception cref="ArgumentOutOfRangeException"><para>Attempted to set the reserved capacity to a value that is less than the used capacity.</para><para>Была выполнена попытка установить зарезервированную емкость на значение, которое меньше используемой емкости.</para></exception>
public long ReservedCapacity
Expand All @@ -90,7 +87,6 @@ public long ReservedCapacity
}

/// <inheritdoc/>
/// <include file='bin\Release\netstandard2.0\Platform.Memory.xml' path='doc/members/member[@name="P:Platform.Memory.IResizableDirectMemory.UsedCapacity"]/*'/>
/// <exception cref="ObjectDisposedException"><para>The memory block is disposed.</para><para>Блок памяти уже высвобожден.</para></exception>
/// <exception cref="ArgumentOutOfRangeException"><para>Attempted to set the used capacity to a value that is greater than the reserved capacity or less than zero.</para><para>Была выполнена попытка установить используемую емкость на значение, которое больше, чем зарезервированная емкость или меньше нуля.</para></exception>
public long UsedCapacity
Expand Down
Loading