docs: fill missing XML docs and strip tracking IDs from src comments

Clears CommentChecker findings in src/ (3,280 -> 209, the remainder being false
positives like PLC-5/IEEE-754/M0.0) by adding missing summaries/params/returns,
normalising inheritdoc usage, and removing Gitea/review tracking IDs while keeping
the rationale they annotated. Comment-only: comment-stripped sources are identical
to the parent commit.
This commit is contained in:
Joseph Doherty
2026-10-15 06:14:58 -04:00
parent ebcbd81fca
commit 826312befe
430 changed files with 4434 additions and 3923 deletions
@@ -98,12 +98,10 @@ public sealed class FasterLogHistorizationOutbox : IHistorizationOutbox
}
/// <inheritdoc />
/// <remarks>
/// Each undecodable record is counted once — at recovery (constructor scan) or, failing that,
/// the first time a peek scans it. Such records are skipped by <see cref="PeekBatchAsync"/>,
/// passed by any later FIFO ack, and dropped by a peek once they reach the head, so a corrupt
/// record can never pin the head.
/// </remarks>
// Each undecodable record is counted once — at recovery (constructor scan) or, failing that,
// the first time a peek scans it. Such records are skipped by <see cref="PeekBatchAsync"/>,
// passed by any later FIFO ack, and dropped by a peek once they reach the head, so a corrupt
// record can never pin the head.
public long UnreadableCount
{
get
@@ -203,13 +201,11 @@ public sealed class FasterLogHistorizationOutbox : IHistorizationOutbox
}
/// <inheritdoc />
/// <remarks>
/// Undecodable records are skipped (and counted once, see <see cref="UnreadableCount"/>), never
/// thrown. Unreadable records at the HEAD — ahead of every readable entry — are also removed
/// here (truncate + commit), because nothing else ever would: a FIFO ack only passes records
/// older than the acked entry, so a corrupt record with no readable entry behind it would
/// otherwise pin the head (and the outbox count) forever.
/// </remarks>
// Undecodable records are skipped (and counted once, see <see cref="UnreadableCount"/>), never
// thrown. Unreadable records at the HEAD — ahead of every readable entry — are also removed
// here (truncate + commit), because nothing else ever would: a FIFO ack only passes records
// older than the acked entry, so a corrupt record with no readable entry behind it would
// otherwise pin the head (and the outbox count) forever.
public async ValueTask<IReadOnlyList<HistorizationOutboxEntry>> PeekBatchAsync(int max, CancellationToken ct)
{
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(max);
@@ -243,8 +243,13 @@ internal static class HistorizationOutboxEntrySerializer
private readonly ReadOnlySpan<byte> _span = span;
private int _pos = position;
/// <summary>True when every byte has been consumed.</summary>
public readonly bool AtEnd => _pos == _span.Length;
/// <summary>Takes the next <paramref name="count"/> bytes.</summary>
/// <param name="count">The number of bytes to take.</param>
/// <param name="slice">The taken bytes, or empty on failure.</param>
/// <returns>False when fewer than <paramref name="count"/> bytes remain.</returns>
public bool TryTake(int count, out ReadOnlySpan<byte> slice)
{
if (count < 0 || count > _span.Length - _pos)
@@ -258,6 +263,9 @@ internal static class HistorizationOutboxEntrySerializer
return true;
}
/// <summary>Takes a little-endian int32 length followed by that many bytes.</summary>
/// <param name="slice">The payload bytes, or empty on failure.</param>
/// <returns>False when the record is too short.</returns>
public bool TryReadLengthPrefixed(out ReadOnlySpan<byte> slice)
{
slice = default;