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));