Browse Source
Update src/ImageSharp/Image.FromBytes.cs
Co-authored-by: Günther Foidl <gue@korporal.at>
pull/2180/head
James Jackson-South
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/ImageSharp/Image.FromBytes.cs
|
|
|
@ -219,7 +219,7 @@ namespace SixLabors.ImageSharp |
|
|
|
ReadOnlySpan<byte> data, |
|
|
|
out IImageFormat format) |
|
|
|
{ |
|
|
|
fixed (byte* ptr = &data.GetPinnableReference()) |
|
|
|
fixed (byte* ptr = data) |
|
|
|
{ |
|
|
|
using var stream = new UnmanagedMemoryStream(ptr, data.Length); |
|
|
|
return Load(options, stream, out format); |
|
|
|
|