From 297a73b9731a8ecde28adac0300407dfc557478d Mon Sep 17 00:00:00 2001 From: d2dyno006 <53011783+d2dyno006@users.noreply.github.com> Date: Sat, 7 Sep 2024 00:18:06 +0200 Subject: [PATCH 1/2] Update MemoryFile.cs --- src/Memory/MemoryFile.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Memory/MemoryFile.cs b/src/Memory/MemoryFile.cs index 5283274..85563dd 100644 --- a/src/Memory/MemoryFile.cs +++ b/src/Memory/MemoryFile.cs @@ -56,6 +56,9 @@ public Task OpenStreamAsync(FileAccess accessMode = FileAccess.Read, Can if (accessMode == 0) throw new ArgumentOutOfRangeException(nameof(accessMode), $"{nameof(FileAccess)}.{accessMode} is not valid here."); + // The consumer expects that whenever opening a Stream instance the Position is set to the beginning of the stream. + _memoryStream.Position = 0L; + return Task.FromResult(new NonDisposableStreamWrapper(_memoryStream)); } } From 537402b5a0b1e4b0987514e9ff71c640ad293d4f Mon Sep 17 00:00:00 2001 From: d2dyno006 <53011783+d2dyno006@users.noreply.github.com> Date: Sat, 7 Sep 2024 00:19:01 +0200 Subject: [PATCH 2/2] Update OwlCore.Storage.csproj --- src/OwlCore.Storage.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OwlCore.Storage.csproj b/src/OwlCore.Storage.csproj index c928859..9af9128 100644 --- a/src/OwlCore.Storage.csproj +++ b/src/OwlCore.Storage.csproj @@ -14,7 +14,7 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb Arlo Godfrey - 0.11.3 + 0.11.4 OwlCore The most flexible file system abstraction, ever. Built in partnership with the UWP Community.