diff options
| author | Thomas Guillemard <me@thog.eu> | 2019-07-04 17:20:40 +0200 |
|---|---|---|
| committer | Ac_K <Acoustik666@gmail.com> | 2019-07-04 17:20:40 +0200 |
| commit | 708620252e837f2111213c6e36d5f8cc8cfd03e8 (patch) | |
| tree | bf05e304312382f059b418f003b251d7bb28e3fb /Ryujinx.HLE/Utilities/StreamUtils.cs | |
| parent | 789cdba8b51f310399752f7a1309e489fadf8dc1 (diff) | |
ITimeZoneService rewrite (#722)
* Clean up ITimeZoneService
Add error codes and simplify parsing
* Add accurate timezone logic
TOOD: LoadTimeZoneRule and location name cmds.
* Integrate the new TimeZone logic
* SCREAMING_UNIX_CASE => PascalCase
* Address comments
* Reduce use of pointer in the LoadTimeZoneRule logic
* Address comments
* Realign tzIfStream logic in LoadTimeZoneRule
* Address gdk's comments
Diffstat (limited to 'Ryujinx.HLE/Utilities/StreamUtils.cs')
| -rw-r--r-- | Ryujinx.HLE/Utilities/StreamUtils.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Ryujinx.HLE/Utilities/StreamUtils.cs b/Ryujinx.HLE/Utilities/StreamUtils.cs new file mode 100644 index 00000000..7b44bc17 --- /dev/null +++ b/Ryujinx.HLE/Utilities/StreamUtils.cs @@ -0,0 +1,16 @@ +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(); + } + } + } +} |
