Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Nov 14, 2023
1 parent dc4ac88 commit 8eaf833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BUTR.NativeAOT.Shared/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static string SerializeJson<TValue>(TValue? value, JsonTypeInfo<TValue> j
}


private static unsafe SafeDataMallocHandle Copy(in ReadOnlySpan<byte> data, bool isOwner)
public static unsafe SafeDataMallocHandle Copy(in ReadOnlySpan<byte> data, bool isOwner)
{
var dst = (byte*) Allocator.Alloc(new UIntPtr((uint) data.Length));
data.CopyTo(new Span<byte>(dst, data.Length));
Expand Down

0 comments on commit 8eaf833

Please sign in to comment.