Update StreamUtils.cs
This commit is contained in:
parent
b4eea8c33e
commit
2872236d2b
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ namespace Ryujinx.Common.Utilities
|
|||
|
||||
public static async Task<byte[]> StreamToBytesAsync(Stream input, CancellationToken cancellationToken = default)
|
||||
{
|
||||
await using MemoryStream stream = MemoryStreamManager.Shared.GetStream();
|
||||
using MemoryStream stream = MemoryStreamManager.Shared.GetStream();
|
||||
|
||||
await input.CopyToAsync(stream, cancellationToken);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue