diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/IO/PinnedBufferMemoryStream.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/IO/PinnedBufferMemoryStream.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/IO/PinnedBufferMemoryStream.cs b/src/System.Private.CoreLib/shared/System/IO/PinnedBufferMemoryStream.cs index dfcc05d06..94331a2ef 100644 --- a/src/System.Private.CoreLib/shared/System/IO/PinnedBufferMemoryStream.cs +++ b/src/System.Private.CoreLib/shared/System/IO/PinnedBufferMemoryStream.cs @@ -38,9 +38,9 @@ namespace System.IO Initialize(ptr, len, len, FileAccess.Read); } - public override int Read(Span<byte> destination) => ReadCore(destination); + public override int Read(Span<byte> buffer) => ReadCore(buffer); - public override void Write(ReadOnlySpan<byte> source) => WriteCore(source); + public override void Write(ReadOnlySpan<byte> buffer) => WriteCore(buffer); ~PinnedBufferMemoryStream() { |