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
/// Reads data into the specified <paramref name="buffer" />.
283
+
/// </summary>
284
+
/// <param name="buffer">The buffer to read into.</param>
285
+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="buffer"/> is larger than the total of bytes available.</exception>
286
+
privatevoidReadBytes(Span<byte>buffer)
287
+
{
288
+
varbytesRead=Read(buffer);
289
+
if(bytesRead<buffer.Length)
290
+
{
291
+
thrownewArgumentOutOfRangeException(nameof(buffer),string.Format(CultureInfo.InvariantCulture,"The requested length ({0}) is greater than the actual number of bytes read ({1}).",buffer.Length,bytesRead));
0 commit comments