Class BoundedOutputBuffer
- Namespace
- Oscova.Agents.Toolsets
- Assembly
- Oscova.Agents.dll
Captures combined shell output without letting a long-running command exhaust memory.
public sealed class BoundedOutputBufferInheritance
Inherited Members
Constructors
- BoundedOutputBuffer(int)
-
Creates a bounded output buffer with the supplied byte capacity.
Fields
- DefaultCapacityBytes
-
The default retained output size per job: 1 MiB.
Properties
- TotalSize
-
Gets the logical byte length of everything appended to the buffer.
- Truncated
-
True once output exceeded the retained capacity and middle bytes were dropped.
Methods
- Append(ReadOnlySpan<byte>)
-
Appends bytes to the logical output stream.
- AppendGap(long)
-
Records unavailable bytes in the logical output stream.
- ReadFrom(long, int)
-
Reads retained output after an absolute logical stream offset.