@@ -44,7 +44,7 @@ public static Stream AsStream(this IBufferWriter<byte> writer)
44
44
/// <typeparam name="T">The type of value to write.</typeparam>
45
45
/// <param name="writer">The target <see cref="IBufferWriter{T}"/> instance to write to.</param>
46
46
/// <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>
48
48
public static void Write < T > ( this IBufferWriter < byte > writer , T value )
49
49
where T : unmanaged
50
50
{
@@ -69,7 +69,7 @@ public static void Write<T>(this IBufferWriter<byte> writer, T value)
69
69
/// <typeparam name="T">The type of value to write.</typeparam>
70
70
/// <param name="writer">The target <see cref="IBufferWriter{T}"/> instance to write to.</param>
71
71
/// <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>
73
73
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
74
74
public static void Write < T > ( this IBufferWriter < T > writer , T value )
75
75
{
@@ -91,7 +91,7 @@ public static void Write<T>(this IBufferWriter<T> writer, T value)
91
91
/// <typeparam name="T">The type of value to write.</typeparam>
92
92
/// <param name="writer">The target <see cref="IBufferWriter{T}"/> instance to write to.</param>
93
93
/// <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>
95
95
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
96
96
public static void Write < T > ( this IBufferWriter < byte > writer , ReadOnlySpan < T > span )
97
97
where T : unmanaged
@@ -111,7 +111,7 @@ public static void Write<T>(this IBufferWriter<byte> writer, ReadOnlySpan<T> spa
111
111
/// <typeparam name="T">The type of value to write.</typeparam>
112
112
/// <param name="writer">The target <see cref="IBufferWriter{T}"/> instance to write to.</param>
113
113
/// <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>
115
115
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
116
116
public static void Write < T > ( this IBufferWriter < T > writer , ReadOnlySpan < T > span )
117
117
{
0 commit comments