Browse Source
Merge pull request #991 from SixLabors/af/patch-987
Patch MemoryOwnerExtensions to workaround #987
pull/992/head
James Jackson-South
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
1 deletions
-
src/ImageSharp/Memory/MemoryOwnerExtensions.cs
|
|
@ -13,7 +13,6 @@ namespace SixLabors.ImageSharp.Memory |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
internal static class MemoryOwnerExtensions |
|
|
internal static class MemoryOwnerExtensions |
|
|
{ |
|
|
{ |
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|
|
|
public static Span<T> GetSpan<T>(this IMemoryOwner<T> buffer) |
|
|
public static Span<T> GetSpan<T>(this IMemoryOwner<T> buffer) |
|
|
=> buffer.Memory.Span; |
|
|
=> buffer.Memory.Span; |
|
|
|
|
|
|
|
|
|