From 215224e6cd30bc6c95d8ce21ac4c8d191bf72386 Mon Sep 17 00:00:00 2001 From: popow Date: Sat, 23 Jun 2018 15:43:45 +0200 Subject: [PATCH] using Span CopyTo() in the ExifProfile Constructor to copy the data from one exifprofile to another --- src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs b/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs index 40c489d3a..78fa63ae7 100644 --- a/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs +++ b/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs @@ -87,7 +87,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif if (other.data != null) { this.data = new byte[other.data.Length]; - Buffer.BlockCopy(other.data, 0, this.data, 0, other.data.Length); + other.data.AsSpan().CopyTo(this.data); } }