Cogito.Reflection.PortableExecutable/Extensions/PEReaderExtensions.cs
/// <summary>
/// Gets a <see cref="ReadOnlySpan{T}"/> covering the entire PE image.
/// </summary>
/// <param name="self"></param>
/// <returns></returns>
Gets a  covering the entire PE image.
Gets a covering the entire PE image .
public static unsafe ReadOnlySpan<byte> ToSpan(this PEReader self)
        {
            var mb = self.GetEntireImage();
            return new ReadOnlySpan<byte>(mb.Pointer, mb.Length);
        }
public static unsafe ReadOnlySpan < byte > ToSpan ( this PEReader self ) { var mb = self . GetEntireImage ( ) ; return new ReadOnlySpan < byte > ( mb . Pointer , mb . Length ) ; }
Gets a  covering the entire PE image.
Gets a covering the entire PE image .
None
PEReader
this
self
None