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