mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 09:08:39 +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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|