From 8eaf8337b612094ae314f02e23abdbf0916e04c7 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Wed, 15 Nov 2023 01:06:36 +0200 Subject: [PATCH] fix --- src/BUTR.NativeAOT.Shared/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BUTR.NativeAOT.Shared/Utils.cs b/src/BUTR.NativeAOT.Shared/Utils.cs index f3d121b..1431248 100644 --- a/src/BUTR.NativeAOT.Shared/Utils.cs +++ b/src/BUTR.NativeAOT.Shared/Utils.cs @@ -67,7 +67,7 @@ public static string SerializeJson(TValue? value, JsonTypeInfo j } - private static unsafe SafeDataMallocHandle Copy(in ReadOnlySpan data, bool isOwner) + public static unsafe SafeDataMallocHandle Copy(in ReadOnlySpan data, bool isOwner) { var dst = (byte*) Allocator.Alloc(new UIntPtr((uint) data.Length)); data.CopyTo(new Span(dst, data.Length));