mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-07 23:18:35 +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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|