Skip to content

Commit 81b9481

Browse files
committed
Fixed missing DllImport attribute
1 parent 2189055 commit 81b9481

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

LLama/Native/NativeApi.Memory.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ namespace LLama.Native;
44

55
public static partial class NativeApi
66
{
7-
// ReSharper disable once InconsistentNaming
8-
internal struct llama_memory_i;
9-
107
/// <summary>
118
/// Clear the memory contents. If data == true, the data buffers will also be cleared together with the metadata
129
/// </summary>
1310
/// <param name="mem"></param>
1411
/// <param name="data"></param>
12+
[DllImport(libraryName, CallingConvention = CallingConvention.Cdecl)]
1513
public static extern void llama_memory_clear(IntPtr /* llama_memory_t */ mem, [MarshalAs(UnmanagedType.U1)] bool data);
1614

1715
/// <summary>

0 commit comments

Comments
 (0)