Browse Source

using Span CopyTo() in the ExifProfile Constructor to copy the data from one exifprofile to another

pull/616/head
popow 8 years ago
parent
commit
88e41ea439
  1. 2
      src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs

2
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);
}
}

Loading…
Cancel
Save