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
` private void CreateNewSegment(bool forceCreation)
{
if (!_allowedToCreateMemory)
throw new UnableToCreateMemoryException();
lock (_creatingNewSegmentLock)
{
if (!forceCreation && _buffers.Count > _segmentChunks / 2)
return;
var bytes = new byte[_segmentSize];
_segments.Add(bytes);
for (int i = 0; i < _segmentChunks; i++)
{
var chunk = new ArraySegment<byte>(bytes, i * _chunkSize, _chunkSize);
_buffers.Push(chunk);
}
}
}`
The text was updated successfully, but these errors were encountered:
您好,_buffers.Count > _segmentChunks / 2 是表达什么意思? 怎么觉得不需要这条过滤呢?
` private void CreateNewSegment(bool forceCreation)
{
if (!_allowedToCreateMemory)
throw new UnableToCreateMemoryException();
The text was updated successfully, but these errors were encountered: