10 references to ActiveLength
Microsoft.Extensions.AI.OpenAI (10)
src\Shared\ServerSentEvents\ArrayBuffer.cs (8)
106Debug.Assert(byteCount <= ActiveLength, $"Expected {byteCount} <= {ActiveLength}"); 147Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 148_availableStart = ActiveLength; 155int desiredSize = ActiveLength + byteCount; 168if (ActiveLength != 0) 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength); 173_availableStart = ActiveLength;
src\Shared\ServerSentEvents\PooledByteBufferWriter.cs (2)
32public int WrittenCount => _buffer.ActiveLength; 33public void Reset() => _buffer.Discard(_buffer.ActiveLength);