You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Memory-optimized preprocessing method that returns <see cref="ReadOnlyMemory{T}"/> to avoid string allocations.
33
+
/// </summary>
34
+
/// <param name="logLine">Line content as ReadOnlyMemory</param>
35
+
/// <param name="lineNum">Line number as seen by LogExpert</param>
36
+
/// <param name="realLineNum">Actual line number in the file</param>
37
+
/// <returns>The changed content as <see cref="ReadOnlyMemory{T}"/>, the original memory if unchanged, or <see cref="ReadOnlyMemory{T}"/>.Empty to drop the line </returns>
38
+
/// <remarks>
39
+
/// <para>
40
+
/// Return values:
41
+
/// - Original memory: Line unchanged, no allocation
42
+
/// - <see cref="ReadOnlyMemory{T}"/>.Empty: Drop the line
43
+
/// - New memory: Modified line content
44
+
/// </para>
45
+
/// <para>
46
+
/// When creating modified content, consider using <see cref="ArrayPool{T}"/> to reduce allocations
47
+
/// for temporary buffers, but the returned memory must be owned (not pooled).
0 commit comments