mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-07 20:58:44 +00:00
17 lines
331 B
C#
17 lines
331 B
C#
|
using System.IO;
|
|||
|
|
|||
|
namespace Ryujinx.HLE.Utilities
|
|||
|
{
|
|||
|
static class StreamUtils
|
|||
|
{
|
|||
|
public static byte[] StreamToBytes(Stream input)
|
|||
|
{
|
|||
|
using (MemoryStream ms = new MemoryStream())
|
|||
|
{
|
|||
|
input.CopyTo(ms);
|
|||
|
return ms.ToArray();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|