}
}
- Array.Clear(inBuff, 0, constTextBufferSize);
- ArrayPool<char>.Shared.Return(inBuff, clearArray: false);
+ ArrayPool<char>.Shared.Return(inBuff, clearArray: true);
}
private async Task WriteStreamFeed(StreamDataFeed feed, TdsParserStateObject stateObj, int len)
} while (len <= 0 || nWritten < len);
}
- Array.Clear(buff, 0, constTextBufferSize);
- ArrayPool<byte>.Shared.Return(buff, clearArray: false);
+ ArrayPool<byte>.Shared.Return(buff, clearArray: true);
}
private Task NullIfCompletedWriteTask(Task task)