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
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Platform.Data.Doublets.Tests
{
public static class ResizableDirectMemoryLinksTests
{
private static readonly LinksConstants<ulong> _constants = Default<LinksConstants<ulong>>.Instance;
private static readonly LinksConstants<ulong> _constants = new LinksConstants<ulong>(enableExternalReferencesSupport: true);

[Fact]
public static void BasicFileMappedMemoryTest()
Expand Down
2 changes: 1 addition & 1 deletion csharp/Platform.Data.Doublets/Link.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public struct Link<TLinkAddress> : IEquatable<Link<TLinkAddress>>, IReadOnlyList
/// <para></para>
/// </summary>
public static readonly Link<TLinkAddress> Null = new Link<TLinkAddress>();
private static readonly LinksConstants<TLinkAddress> _constants = Default<LinksConstants<TLinkAddress>>.Instance;
private static readonly LinksConstants<TLinkAddress> _constants = new LinksConstants<TLinkAddress>(enableExternalReferencesSupport: true);
private const int Length = 3;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public SplitMemoryLinks(IResizableDirectMemory dataMemory, IResizableDirectMemor
/// <para></para>
/// </param>
[MethodImpl(methodImplOptions: MethodImplOptions.AggressiveInlining)]
public SplitMemoryLinks(IResizableDirectMemory dataMemory, IResizableDirectMemory indexMemory, long memoryReservationStep) : this(dataMemory: dataMemory, indexMemory: indexMemory, memoryReservationStep: memoryReservationStep, constants: Default<LinksConstants<TLinkAddress>>.Instance, indexTreeType: IndexTreeType.Default, useLinkedList: true) { }
public SplitMemoryLinks(IResizableDirectMemory dataMemory, IResizableDirectMemory indexMemory, long memoryReservationStep) : this(dataMemory: dataMemory, indexMemory: indexMemory, memoryReservationStep: memoryReservationStep, constants: new LinksConstants<TLinkAddress>(enableExternalReferencesSupport: true), indexTreeType: IndexTreeType.Default, useLinkedList: true) { }

/// <summary>
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected SplitMemoryLinksBase(IResizableDirectMemory dataMemory, IResizableDire
/// <para></para>
/// </param>
[MethodImpl(methodImplOptions: MethodImplOptions.AggressiveInlining)]
protected SplitMemoryLinksBase(IResizableDirectMemory dataMemory, IResizableDirectMemory indexMemory, long memoryReservationStep) : this(dataMemory: dataMemory, indexMemory: indexMemory, memoryReservationStep: memoryReservationStep, constants: Default<LinksConstants<TLinkAddress>>.Instance, useLinkedList: true) { }
protected SplitMemoryLinksBase(IResizableDirectMemory dataMemory, IResizableDirectMemory indexMemory, long memoryReservationStep) : this(dataMemory: dataMemory, indexMemory: indexMemory, memoryReservationStep: memoryReservationStep, constants: new LinksConstants<TLinkAddress>(enableExternalReferencesSupport: true), useLinkedList: true) { }

/// <summary>
/// Возвращает общее число связей находящихся в хранилище.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public UnitedMemoryLinks(IResizableDirectMemory memory) : this(memory, DefaultLi
/// <para></para>
/// </param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public UnitedMemoryLinks(IResizableDirectMemory memory, long memoryReservationStep) : this(memory, memoryReservationStep, Default<LinksConstants<TLinkAddress>>.Instance, IndexTreeType.Default) { }
public UnitedMemoryLinks(IResizableDirectMemory memory, long memoryReservationStep) : this(memory, memoryReservationStep, new LinksConstants<TLinkAddress>(enableExternalReferencesSupport: true), IndexTreeType.Default) { }

/// <summary>
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ protected UnitedMemoryLinksBase(IResizableDirectMemory memory, long memoryReserv
/// <para></para>
/// </param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected UnitedMemoryLinksBase(IResizableDirectMemory memory, long memoryReservationStep) : this(memory, memoryReservationStep, Default<LinksConstants<TLinkAddress>>.Instance) { }
protected UnitedMemoryLinksBase(IResizableDirectMemory memory, long memoryReservationStep) : this(memory, memoryReservationStep, new LinksConstants<TLinkAddress>(enableExternalReferencesSupport: true)) { }

/// <summary>
/// <para>
Expand Down
Loading