From 09f8e8c54400b38ccadff684cb53677ef1b60123 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sat, 11 Jan 2025 22:23:57 +1000 Subject: [PATCH] Document semantics of `Stream.ReadAllBytes` extension --- src/BizHawk.Common/Extensions/IOExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BizHawk.Common/Extensions/IOExtensions.cs b/src/BizHawk.Common/Extensions/IOExtensions.cs index 63708a6ec7..841d819bf2 100644 --- a/src/BizHawk.Common/Extensions/IOExtensions.cs +++ b/src/BizHawk.Common/Extensions/IOExtensions.cs @@ -18,6 +18,7 @@ namespace BizHawk.Common.IOExtensions fixed (byte* p = bytes) return encoding.GetString(p, bytes.Length); } + /// does NOT seek to beginning public static byte[] ReadAllBytes(this Stream stream) { var outStream = new MemoryStream();