diff --git a/LC6464.Base16384.csproj b/LC6464.Base16384.csproj index d5fb807..e47b08e 100644 --- a/LC6464.Base16384.csproj +++ b/LC6464.Base16384.csproj @@ -17,8 +17,8 @@ GPL-3.0-only True LC - 2.0.0-RC.1 - 完成了 ToUtf8BOMBytes 方法。 + 2.0.0-RC.2 + 更改 MoveFromUnmanagedMemory 相关 API 名称。 diff --git a/Shared.cs b/Shared.cs index 98cbd3f..b8b6630 100644 --- a/Shared.cs +++ b/Shared.cs @@ -112,7 +112,7 @@ public static ReadOnlySpan CopyToManagedMemory(this ReadOnlySpan data) /// /// 要移动的数据 /// 移动结果 - public static unsafe ReadOnlySpan MoveFromUnmanagedMemoryToManagedMemory(this ReadOnlySpan data) { + public static unsafe ReadOnlySpan MoveFromHGlobalToManagedMemory(this ReadOnlySpan data) { var result = data.CopyToManagedMemory(); fixed (byte* ptr = data) { Marshal.FreeHGlobal((nint)ptr);