mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-23 10:35:10 +00:00
17 lines
353 B
C#
17 lines
353 B
C#
|
using System.IO;
|
|||
|
|
|||
|
namespace Ryujinx.Common.Utilities
|
|||
|
{
|
|||
|
public static class StreamUtils
|
|||
|
{
|
|||
|
public static byte[] StreamToBytes(Stream input)
|
|||
|
{
|
|||
|
using (MemoryStream stream = new MemoryStream())
|
|||
|
{
|
|||
|
input.CopyTo(stream);
|
|||
|
|
|||
|
return stream.ToArray();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|