Remove unnecessary scoped modifiers

このコミットが含まれているのは:
Sergio Pedri committed 2022-09-18 18:01:55 +02:00
1 親 46f0dcbacd
コミット 5fff1a2a27
1ファイル変更
+3 -3
+3 -3
ファイルの表示
@@ -23,7 +23,7 @@ internal static class ArrayPoolBinaryWriterExtensions
/// <param name="writer">The target <see cref="ArrayPoolBufferWriter{T}"/> instance to write data to.</param>
/// <param name="value">The value to write.</param>
/// <remarks>This method will just blit the data of <paramref name="value"/> into the target buffer.</remarks>
public static unsafe void WriteRaw<T>(this in ArrayPoolBufferWriter<byte> writer, scoped in T value)
public static unsafe void WriteRaw<T>(this in ArrayPoolBufferWriter<byte> writer, in T value)
where T : unmanaged
{
Span<byte> span = writer.GetSpan(sizeof(T));
@@ -39,7 +39,7 @@ internal static class ArrayPoolBinaryWriterExtensions
/// <typeparam name="T">The type of value to write.</typeparam>
/// <param name="writer">The target <see cref="ArrayPoolBufferWriter{T}"/> instance to write data to.</param>
/// <param name="value">The value to write.</param>
public static unsafe void WriteRaw<T>(this in ArrayPoolBufferWriter<T> writer, scoped in T value)
public static unsafe void WriteRaw<T>(this in ArrayPoolBufferWriter<T> writer, in T value)
where T : unmanaged
{
Span<T> span = writer.GetSpan(1);
@@ -55,7 +55,7 @@ internal static class ArrayPoolBinaryWriterExtensions
/// <typeparam name="T">The type of values in the target writer.</typeparam>
/// <param name="writer">The target <see cref="ArrayPoolBufferWriter{T}"/> instance to write data to.</param>
/// <param name="data">The data to write.</param>
public static void WriteRaw<T>(this in ArrayPoolBufferWriter<T> writer, scoped ReadOnlySpan<T> data)
public static void WriteRaw<T>(this in ArrayPoolBufferWriter<T> writer, ReadOnlySpan<T> data)
where T : unmanaged
{
Span<T> span = writer.GetSpan(data.Length);