Skip to content

Commit

Permalink
v2.0.0-RC.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lc6464 committed Sep 13, 2023
1 parent aa5a899 commit 21a3f39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions LC6464.Base16384.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<Authors>LC</Authors>
<Version>2.0.0-RC.1</Version>
<PackageReleaseNotes>完成了 ToUtf8BOMBytes 方法。</PackageReleaseNotes>
<Version>2.0.0-RC.2</Version>
<PackageReleaseNotes>更改 MoveFromUnmanagedMemory 相关 API 名称。</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
<Using Include="System.Runtime.InteropServices" />
Expand Down
2 changes: 1 addition & 1 deletion Shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static ReadOnlySpan<T> CopyToManagedMemory<T>(this ReadOnlySpan<T> data)
/// </summary>
/// <param name="data">要移动的数据</param>
/// <returns>移动结果</returns>
public static unsafe ReadOnlySpan<byte> MoveFromUnmanagedMemoryToManagedMemory(this ReadOnlySpan<byte> data) {
public static unsafe ReadOnlySpan<byte> MoveFromHGlobalToManagedMemory(this ReadOnlySpan<byte> data) {
var result = data.CopyToManagedMemory();
fixed (byte* ptr = data) {
Marshal.FreeHGlobal((nint)ptr);
Expand Down

0 comments on commit 21a3f39

Please sign in to comment.