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
6 changes: 6 additions & 0 deletions csharp/Platform.Collections/BitString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@

namespace Platform.Collections
{
/// <summary>
/// <para>
/// Represents a high-performance bit string with support for vectorized and parallel operations.
/// </para>
/// <para></para>
/// </summary>
/// <remarks>
/// А что если хранить карту значений, где каждый бит будет означать присутствует ли блок в 64 бит в массиве значений.
/// 64 бита по 0 бит, будут означать отсутствие 64-х блоков по 64 бита. Т.е. упаковка 512 байт в 8 байт.
Expand Down
14 changes: 14 additions & 0 deletions csharp/Platform.Collections/Segments/CharSegment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ bool contentEqualityComparer(IList<char> left, IList<char> right)
/// </returns>
public override bool Equals(object obj) => obj is Segment<char> charSegment ? Equals(charSegment) : false;

/// <summary>
/// <para>
/// Performs an implicit conversion from <see cref="CharSegment"/> to <see cref="string"/>.
/// </para>
/// <para></para>
/// </summary>
/// <param name="segment">
/// <para>The segment.</para>
/// <para></para>
/// </param>
/// <returns>
/// <para>The result of the conversion.</para>
/// <para></para>
/// </returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static implicit operator string(CharSegment segment)
{
Expand Down
Loading