Ejemplo n.º 1
0
 /// <summary>Counts memory used by the index itself (not including the AList nodes)</summary>
 public long CountMemory(int sizeOfElement) =>
 IntPtr.Size * 5 + _items.CountSizeInBytes(sizeOfElement + IntPtr.Size) +
 (_nodes?.CountSizeInBytes(IntPtr.Size * 2) ?? 0);