mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-30 05:53:01 +00:00
5d08e9b495
* hos: Cleanup the project Since a lot of changes has been done on the HOS project, there are some leftover here and there, or class just used in one service, things at wrong places, and more. This PR fixes that, additionnally to that, I've realigned some vars because I though it make the code more readable. * Address gdkchan feedback * addresses Thog feedback * Revert ElfSymbol
17 lines
No EOL
353 B
C#
17 lines
No EOL
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();
|
|
}
|
|
}
|
|
}
|
|
} |