浏览代码

upgraded MemoryImage.Content from ReadOnlySpan to ReadOnlyMemory.

Vicente Penades 5 年之前
父节点
当前提交
54e3f10721
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/SharpGLTF.Core/Memory/MemoryImage.cs

+ 1 - 1
src/SharpGLTF.Core/Memory/MemoryImage.cs

@@ -152,7 +152,7 @@ namespace SharpGLTF.Memory
         /// <summary>
         /// Gets the file bytes of the image.
         /// </summary>
-        public ReadOnlySpan<Byte> Content => _Image;
+        public ReadOnlyMemory<Byte> Content => _Image;
 
         /// <summary>
         /// Gets the source path of this image, or null if the image cannot be tracked to a file path (as it is the case of embedded images)