python wrapper

This commit is contained in:
Miha Kralj
2026-02-28 14:14:35 -08:00
parent 82e0248eb0
commit 83e9511261
521 changed files with 62395 additions and 15669 deletions
+13
View File
@@ -0,0 +1,13 @@
using System.Runtime.CompilerServices;
namespace QuanTAlib.Python;
internal static class ArrayBridge
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe bool IsNull(double* ptr) => ptr == null;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int ValidateLength(int n) =>
n > 0 ? StatusCodes.QTL_OK : StatusCodes.QTL_ERR_INVALID_LENGTH;
}