mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-24 16:30:12 +01: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
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();
|
|
}
|
|
}
|
|
}
|
|
} |