@@ -44,7 +44,7 @@ public static Stream AsStream(this IBufferWriter<byte> writer)
4444 /// <typeparam name="T">The type of value to write.</typeparam>
4545 /// <param name="writer">The target <see cref="IBufferWriter{T}"/> instance to write to.</param>
4646 /// <param name="value">The input value to write to <paramref name="writer"/>.</param>
47- /// <exception cref="ArgumentOutOfRangeException ">Thrown if <paramref name="writer"/> reaches the end.</exception>
47+ /// <exception cref="ArgumentException ">Thrown if <paramref name="writer"/> reaches the end.</exception>
4848 public static void Write < T > ( this IBufferWriter < byte > writer , T value )
4949 where T : unmanaged
5050 {
@@ -69,7 +69,7 @@ public static void Write<T>(this IBufferWriter<byte> writer, T value)
6969 /// <typeparam name="T">The type of value to write.</typeparam>
7070 /// <param name="writer">The target <see cref="IBufferWriter{T}"/> instance to write to.</param>
7171 /// <param name="value">The input value to write to <paramref name="writer"/>.</param>
72- /// <exception cref="ArgumentOutOfRangeException ">Thrown if <paramref name="writer"/> reaches the end.</exception>
72+ /// <exception cref="ArgumentException ">Thrown if <paramref name="writer"/> reaches the end.</exception>
7373 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
7474 public static void Write < T > ( this IBufferWriter < T > writer , T value )
7575 {
@@ -91,7 +91,7 @@ public static void Write<T>(this IBufferWriter<T> writer, T value)
9191 /// <typeparam name="T">The type of value to write.</typeparam>
9292 /// <param name="writer">The target <see cref="IBufferWriter{T}"/> instance to write to.</param>
9393 /// <param name="span">The input <see cref="ReadOnlySpan{T}"/> to write to <paramref name="writer"/>.</param>
94- /// <exception cref="ArgumentOutOfRangeException ">Thrown if <paramref name="writer"/> reaches the end.</exception>
94+ /// <exception cref="ArgumentException ">Thrown if <paramref name="writer"/> reaches the end.</exception>
9595 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
9696 public static void Write < T > ( this IBufferWriter < byte > writer , ReadOnlySpan < T > span )
9797 where T : unmanaged
@@ -111,7 +111,7 @@ public static void Write<T>(this IBufferWriter<byte> writer, ReadOnlySpan<T> spa
111111 /// <typeparam name="T">The type of value to write.</typeparam>
112112 /// <param name="writer">The target <see cref="IBufferWriter{T}"/> instance to write to.</param>
113113 /// <param name="span">The input <see cref="ReadOnlySpan{T}"/> to write to <paramref name="writer"/>.</param>
114- /// <exception cref="ArgumentOutOfRangeException ">Thrown if <paramref name="writer"/> reaches the end.</exception>
114+ /// <exception cref="ArgumentException ">Thrown if <paramref name="writer"/> reaches the end.</exception>
115115 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
116116 public static void Write < T > ( this IBufferWriter < T > writer , ReadOnlySpan < T > span )
117117 {
0 commit comments