File: System\Reflection\Internal\Utilities\StreamExtensions.netcoreapp.cs | Web Access |
Project: src\src\libraries\System.Reflection.Metadata\src\System.Reflection.Metadata.csproj (System.Reflection.Metadata) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.IO; namespace System.Reflection.Internal { internal static partial class StreamExtensions { internal static unsafe int Read(this Stream stream, byte* buffer, int size) => stream.Read(new Span<byte>(buffer, size)); } } |