We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DllImport
1 parent 2189055 commit 81b9481Copy full SHA for 81b9481
LLama/Native/NativeApi.Memory.cs
@@ -4,14 +4,12 @@ namespace LLama.Native;
4
5
public static partial class NativeApi
6
{
7
- // ReSharper disable once InconsistentNaming
8
- internal struct llama_memory_i;
9
-
10
/// <summary>
11
/// Clear the memory contents. If data == true, the data buffers will also be cleared together with the metadata
12
/// </summary>
13
/// <param name="mem"></param>
14
/// <param name="data"></param>
+ [DllImport(libraryName, CallingConvention = CallingConvention.Cdecl)]
15
public static extern void llama_memory_clear(IntPtr /* llama_memory_t */ mem, [MarshalAs(UnmanagedType.U1)] bool data);
16
17
0 commit comments