Skip to content

Commit 058cd70

Browse files
Fix sonar issues
1 parent e328dbc commit 058cd70

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Engine/Internal/Utilities/PoolBufferedStream.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ public override void Write(byte[] buffer, int offset, int count)
114114
}
115115
}
116116

117-
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
118-
{
119-
await WriteAsync(buffer.AsMemory(offset, count - offset), cancellationToken);
120-
}
121-
122117
[MethodImpl(MethodImplOptions.AggressiveInlining)]
123118
public override void Write(ReadOnlySpan<byte> buffer)
124119
{
@@ -146,6 +141,11 @@ public override void Write(ReadOnlySpan<byte> buffer)
146141
Current = toWrite;
147142
}
148143

144+
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
145+
{
146+
await WriteAsync(buffer.AsMemory(offset, count - offset), cancellationToken);
147+
}
148+
149149
public override async ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)
150150
{
151151
var count = buffer.Length;

0 commit comments

Comments
 (0)