diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb9a30d..9219a11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: run: python3 tools/objectgen.py "${{ steps.provision.outputs.catalog-path }}" --report - name: Report binding drift - run: git --no-pager diff --stat -- MEOS.NET/Internal MEOS.NET/Types/Generated || true + run: git --no-pager diff --stat -- MEOS.NET/Functions MEOS.NET/Types/Generated || true - name: Build solution run: dotnet build MEOS.NET.sln -c Release diff --git a/MEOS.NET/Functions/Meos.Native.g.cs b/MEOS.NET/Functions/Meos.Native.g.cs new file mode 100644 index 0000000..fe364ae --- /dev/null +++ b/MEOS.NET/Functions/Meos.Native.g.cs @@ -0,0 +1,15618 @@ +using System.CodeDom.Compiler; +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + public static partial class Meos + { + [GeneratedCode("MEOS.NET.Codegen", "0.1.0")] + private static partial class Native + { + private const string DllPath = "meos"; + + [LibraryImport(DllPath, EntryPoint = "bool_in", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BoolIn(string str); + + [LibraryImport(DllPath, EntryPoint = "bool_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string BoolOut([MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "float8_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string Float8Out(double num, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "date_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DateIn(string str); + + [LibraryImport(DllPath, EntryPoint = "date_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string DateOut(int date); + + [LibraryImport(DllPath, EntryPoint = "interval_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntervalCmp(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "interval_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string IntervalOut(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "time_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimeIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "time_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TimeOut(long time); + + [LibraryImport(DllPath, EntryPoint = "timestamp_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "timestamp_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TimestampOut(long ts); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TimestamptzOut(long tstz); + + [LibraryImport(DllPath, EntryPoint = "cstring_to_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CstringToText(string str); + + [LibraryImport(DllPath, EntryPoint = "text_to_cstring", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TextToCstring(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "text_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextIn(string str); + + [LibraryImport(DllPath, EntryPoint = "text_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TextOut(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "text_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TextCmp(IntPtr txt1, IntPtr txt2, uint collid); + + [LibraryImport(DllPath, EntryPoint = "text_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextCopy(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "text_initcap", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextInitcap(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "text_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextLower(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "text_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextUpper(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "textcat_text_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextcatTextText(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "meos_error", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosError(int errlevel, int errcode, string format); + + [LibraryImport(DllPath, EntryPoint = "meos_errno", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosErrno(); + + [LibraryImport(DllPath, EntryPoint = "meos_errno_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosErrnoSet(int err); + + [LibraryImport(DllPath, EntryPoint = "meos_errno_restore", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosErrnoRestore(int err); + + [LibraryImport(DllPath, EntryPoint = "meos_errno_reset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosErrnoReset(); + + [LibraryImport(DllPath, EntryPoint = "meos_array_create", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosArrayCreate(int elem_size); + + [LibraryImport(DllPath, EntryPoint = "meos_array_add", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosArrayAdd(IntPtr array, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "meos_array_get", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosArrayGet(IntPtr array, int n); + + [LibraryImport(DllPath, EntryPoint = "meos_array_count", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosArrayCount(IntPtr array); + + [LibraryImport(DllPath, EntryPoint = "meos_array_reset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosArrayReset(IntPtr array); + + [LibraryImport(DllPath, EntryPoint = "meos_array_reset_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosArrayResetFree(IntPtr array); + + [LibraryImport(DllPath, EntryPoint = "meos_array_destroy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosArrayDestroy(IntPtr array); + + [LibraryImport(DllPath, EntryPoint = "meos_array_destroy_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosArrayDestroyFree(IntPtr array); + + [LibraryImport(DllPath, EntryPoint = "rtree_create_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeCreateIntspan(); + + [LibraryImport(DllPath, EntryPoint = "rtree_create_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeCreateBigintspan(); + + [LibraryImport(DllPath, EntryPoint = "rtree_create_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeCreateFloatspan(); + + [LibraryImport(DllPath, EntryPoint = "rtree_create_datespan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeCreateDatespan(); + + [LibraryImport(DllPath, EntryPoint = "rtree_create_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeCreateTstzspan(); + + [LibraryImport(DllPath, EntryPoint = "rtree_create_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeCreateTbox(); + + [LibraryImport(DllPath, EntryPoint = "rtree_create_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeCreateStbox(); + + [LibraryImport(DllPath, EntryPoint = "rtree_create_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeCreateTpcbox(); + + [LibraryImport(DllPath, EntryPoint = "rtree_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void RtreeFree(IntPtr rtree); + + [LibraryImport(DllPath, EntryPoint = "rtree_num_entries", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RtreeNumEntries(IntPtr rtree); + + [LibraryImport(DllPath, EntryPoint = "rtree_mem_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long RtreeMemSize(IntPtr rtree); + + [LibraryImport(DllPath, EntryPoint = "rtree_height", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RtreeHeight(IntPtr rtree); + + [LibraryImport(DllPath, EntryPoint = "rtree_insert", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RtreeInsert(IntPtr rtree, IntPtr box, long id); + + [LibraryImport(DllPath, EntryPoint = "rtree_load", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RtreeLoad(IntPtr rtree, IntPtr boxes, IntPtr ids, int count); + + [LibraryImport(DllPath, EntryPoint = "rtree_insert_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RtreeInsertTemporal(IntPtr rtree, IntPtr temp, long id); + + [LibraryImport(DllPath, EntryPoint = "rtree_insert_temporal_split", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RtreeInsertTemporalSplit(IntPtr rtree, IntPtr temp, long id, int maxboxes); + + [LibraryImport(DllPath, EntryPoint = "rtree_search", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RtreeSearch(IntPtr rtree, int op, IntPtr query, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "rtree_join", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RtreeJoin(IntPtr rtree1, IntPtr rtree2, int op, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "rtree_search_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RtreeSearchTemporal(IntPtr rtree, int op, IntPtr temp, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "rtree_search_temporal_dedup", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RtreeSearchTemporalDedup(IntPtr rtree, int op, IntPtr temp, int maxboxes, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "rtree_nn_cursor_open", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RtreeNnCursorOpen(IntPtr rtree, IntPtr query); + + [LibraryImport(DllPath, EntryPoint = "rtree_nn_cursor_next", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RtreeNnCursorNext(IntPtr cursor, IntPtr id_out, IntPtr dist_out); + + [LibraryImport(DllPath, EntryPoint = "rtree_nn_cursor_close", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void RtreeNnCursorClose(IntPtr cursor); + + [LibraryImport(DllPath, EntryPoint = "sptree_create_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeCreateIntspan(int kind); + + [LibraryImport(DllPath, EntryPoint = "sptree_create_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeCreateBigintspan(int kind); + + [LibraryImport(DllPath, EntryPoint = "sptree_create_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeCreateFloatspan(int kind); + + [LibraryImport(DllPath, EntryPoint = "sptree_create_datespan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeCreateDatespan(int kind); + + [LibraryImport(DllPath, EntryPoint = "sptree_create_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeCreateTstzspan(int kind); + + [LibraryImport(DllPath, EntryPoint = "sptree_create_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeCreateTbox(int kind); + + [LibraryImport(DllPath, EntryPoint = "sptree_create_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeCreateStbox(int kind); + + [LibraryImport(DllPath, EntryPoint = "sptree_create_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeCreateTpcbox(int kind); + + [LibraryImport(DllPath, EntryPoint = "sptree_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SptreeFree(IntPtr sptree); + + [LibraryImport(DllPath, EntryPoint = "sptree_num_entries", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SptreeNumEntries(IntPtr sptree); + + [LibraryImport(DllPath, EntryPoint = "sptree_mem_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long SptreeMemSize(IntPtr sptree); + + [LibraryImport(DllPath, EntryPoint = "sptree_height", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SptreeHeight(IntPtr sptree); + + [LibraryImport(DllPath, EntryPoint = "sptree_insert", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SptreeInsert(IntPtr sptree, IntPtr box, long id); + + [LibraryImport(DllPath, EntryPoint = "sptree_load", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SptreeLoad(IntPtr sptree, IntPtr boxes, IntPtr ids, int count); + + [LibraryImport(DllPath, EntryPoint = "sptree_insert_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SptreeInsertTemporal(IntPtr sptree, IntPtr temp, long id); + + [LibraryImport(DllPath, EntryPoint = "sptree_insert_temporal_split", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SptreeInsertTemporalSplit(IntPtr sptree, IntPtr temp, long id, int maxboxes); + + [LibraryImport(DllPath, EntryPoint = "sptree_search", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SptreeSearch(IntPtr sptree, int op, IntPtr query, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "sptree_join", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SptreeJoin(IntPtr sptree1, IntPtr sptree2, int op, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "sptree_search_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SptreeSearchTemporal(IntPtr sptree, int op, IntPtr temp, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "sptree_search_temporal_dedup", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SptreeSearchTemporalDedup(IntPtr sptree, int op, IntPtr temp, int maxboxes, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "sptree_nn_cursor_open", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SptreeNnCursorOpen(IntPtr sptree, IntPtr query); + + [LibraryImport(DllPath, EntryPoint = "sptree_nn_cursor_next", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SptreeNnCursorNext(IntPtr cursor, IntPtr id_out, IntPtr dist_out); + + [LibraryImport(DllPath, EntryPoint = "sptree_nn_cursor_close", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SptreeNnCursorClose(IntPtr cursor); + + [LibraryImport(DllPath, EntryPoint = "meos_initialize_error_handler", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosInitializeErrorHandler(IntPtr err_handler); + + [LibraryImport(DllPath, EntryPoint = "meos_initialize_allocator", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosInitializeAllocator(IntPtr malloc_fn, IntPtr realloc_fn, IntPtr free_fn); + + [LibraryImport(DllPath, EntryPoint = "meos_initialize_noexit_error_handler", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosInitializeNoexitErrorHandler(); + + [LibraryImport(DllPath, EntryPoint = "meos_initialize_timezone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosInitializeTimezone(string name); + + [LibraryImport(DllPath, EntryPoint = "meos_initialize_collation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosInitializeCollation(); + + [LibraryImport(DllPath, EntryPoint = "meos_finalize_timezone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosFinalizeTimezone(); + + [LibraryImport(DllPath, EntryPoint = "meos_finalize_collation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosFinalizeCollation(); + + [LibraryImport(DllPath, EntryPoint = "meos_finalize_projsrs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosFinalizeProjsrs(); + + [LibraryImport(DllPath, EntryPoint = "meos_finalize_ways", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosFinalizeWays(); + + [LibraryImport(DllPath, EntryPoint = "meos_initialize_pointcloud", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosInitializePointcloud(); + + [LibraryImport(DllPath, EntryPoint = "meos_set_datestyle", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool MeosSetDatestyle(string newval, IntPtr extra); + + [LibraryImport(DllPath, EntryPoint = "meos_set_intervalstyle", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool MeosSetIntervalstyle(string newval, int extra); + + [LibraryImport(DllPath, EntryPoint = "meos_get_datestyle", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string MeosGetDatestyle(); + + [LibraryImport(DllPath, EntryPoint = "meos_get_intervalstyle", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string MeosGetIntervalstyle(); + + [LibraryImport(DllPath, EntryPoint = "meos_set_spatial_ref_sys_csv", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosSetSpatialRefSysCsv(string path); + + [LibraryImport(DllPath, EntryPoint = "meos_set_ways_csv", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosSetWaysCsv(string path); + + [LibraryImport(DllPath, EntryPoint = "meos_initialize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosInitialize(); + + [LibraryImport(DllPath, EntryPoint = "meos_finalize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosFinalize(); + + [LibraryImport(DllPath, EntryPoint = "meos_version", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string MeosVersion(); + + [LibraryImport(DllPath, EntryPoint = "meos_full_version", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string MeosFullVersion(); + + [LibraryImport(DllPath, EntryPoint = "mobilitydb_version", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string MobilitydbVersion(); + + [LibraryImport(DllPath, EntryPoint = "mobilitydb_full_version", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string MobilitydbFullVersion(); + + [LibraryImport(DllPath, EntryPoint = "bigintset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "bigintset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string BigintsetOut(IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspanExpand(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspanIn(string str); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string BigintspanOut(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigintspanset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspansetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "bigintspanset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string BigintspansetOut(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "dateset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatesetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "dateset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string DatesetOut(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "datespan_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespanIn(string str); + + [LibraryImport(DllPath, EntryPoint = "datespan_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string DatespanOut(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "datespanset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespansetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "datespanset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string DatespansetOut(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "floatset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "floatset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string FloatsetOut(IntPtr set, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "floatspan_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanExpand(IntPtr s, double value); + + [LibraryImport(DllPath, EntryPoint = "floatspan_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanIn(string str); + + [LibraryImport(DllPath, EntryPoint = "floatspan_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string FloatspanOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string FloatspansetOut(IntPtr ss, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "intset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "intset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string IntsetOut(IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "intspan_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspanExpand(IntPtr s, int value); + + [LibraryImport(DllPath, EntryPoint = "intspan_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspanIn(string str); + + [LibraryImport(DllPath, EntryPoint = "intspan_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string IntspanOut(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intspanset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspansetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "intspanset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string IntspansetOut(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "set_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SetAsHexwkb(IntPtr s, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "set_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetAsWkb(IntPtr s, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "set_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "set_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "span_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SpanAsHexwkb(IntPtr s, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "span_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanAsWkb(IntPtr s, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "span_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "span_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "spanset_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SpansetAsHexwkb(IntPtr ss, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "spanset_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetAsWkb(IntPtr ss, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "spanset_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "spanset_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "textset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "textset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TextsetOut(IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "tstzset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tstzset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TstzsetOut(IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TstzspanOut(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TstzspansetOut(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "bigintset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspanMake(long lower, long upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "dateset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatesetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "datespan_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespanMake(int lower, int upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "floatset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "floatspan_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanMake(double lower, double upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "intset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "intspan_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspanMake(int lower, int upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "set_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetCopy(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanCopy(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "spanset_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetCopy(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetMake(IntPtr spans, int count); + + [LibraryImport(DllPath, EntryPoint = "textset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "tstzset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanMake(long lower, long upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "bigint_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintToSet(long i); + + [LibraryImport(DllPath, EntryPoint = "bigint_to_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintToSpan(int i); + + [LibraryImport(DllPath, EntryPoint = "bigint_to_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintToSpanset(int i); + + [LibraryImport(DllPath, EntryPoint = "date_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DateToSet(int d); + + [LibraryImport(DllPath, EntryPoint = "date_to_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DateToSpan(int d); + + [LibraryImport(DllPath, EntryPoint = "date_to_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DateToSpanset(int d); + + [LibraryImport(DllPath, EntryPoint = "dateset_to_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatesetToTstzset(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "datespan_to_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespanToTstzspan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "datespanset_to_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespansetToTstzspanset(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "float_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatToSet(double d); + + [LibraryImport(DllPath, EntryPoint = "float_to_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatToSpan(double d); + + [LibraryImport(DllPath, EntryPoint = "float_to_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatToSpanset(double d); + + [LibraryImport(DllPath, EntryPoint = "floatset_to_intset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetToIntset(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspan_to_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanToIntspan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspan_to_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanToBigintspan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_to_intspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetToIntspanset(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "int_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntToSet(int i); + + [LibraryImport(DllPath, EntryPoint = "int_to_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntToSpan(int i); + + [LibraryImport(DllPath, EntryPoint = "int_to_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntToSpanset(int i); + + [LibraryImport(DllPath, EntryPoint = "intset_to_floatset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntsetToFloatset(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intspan_to_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspanToFloatspan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intspan_to_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspanToBigintspan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_to_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspanToIntspan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_to_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspanToFloatspan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intspanset_to_floatspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspansetToFloatspanset(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "set_to_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetToSpan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "set_to_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetToSpanset(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_to_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanToSpanset(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "text_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextToSet(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzToSet(long t); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzToSpan(long t); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzToSpanset(long t); + + [LibraryImport(DllPath, EntryPoint = "tstzset_to_dateset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzsetToDateset(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_to_datespan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanToDatespan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_to_datespanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetToDatespanset(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "bigintset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigintset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigintset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BigintsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "bigintset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintspanLower(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintspanUpper(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintspanWidth(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigintspanset_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintspansetLower(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "bigintspanset_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintspansetUpper(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "bigintspanset_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintspansetWidth(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); + + [LibraryImport(DllPath, EntryPoint = "dateset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatesetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "dateset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatesetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "dateset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool DatesetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "dateset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatesetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "datespan_duration", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespanDuration(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "datespan_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatespanLower(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "datespan_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatespanUpper(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "datespanset_date_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool DatespansetDateN(IntPtr ss, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "datespanset_dates", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespansetDates(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "datespanset_duration", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespansetDuration(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); + + [LibraryImport(DllPath, EntryPoint = "datespanset_end_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatespansetEndDate(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "datespanset_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatespansetLower(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "datespanset_num_dates", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatespansetNumDates(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "datespanset_start_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatespansetStartDate(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "datespanset_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DatespansetUpper(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "floatset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool FloatsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "floatset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "floatspan_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatspanLower(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspan_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatspanUpper(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspan_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatspanWidth(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatspansetLower(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatspansetUpper(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatspansetWidth(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); + + [LibraryImport(DllPath, EntryPoint = "intset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool IntsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "intset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "intspan_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntspanLower(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intspan_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntspanUpper(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intspan_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntspanWidth(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intspanset_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntspansetLower(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "intspanset_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntspansetUpper(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "intspanset_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntspansetWidth(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); + + [LibraryImport(DllPath, EntryPoint = "set_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint SetHash(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "set_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong SetHashExtended(IntPtr s, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "set_num_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SetNumValues(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint SpanHash(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong SpanHashExtended(IntPtr s, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "span_lower_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanLowerInc(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_upper_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanUpperInc(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "spanset_end_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetEndSpan(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint SpansetHash(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong SpansetHashExtended(IntPtr ss, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "spanset_lower_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetLowerInc(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_num_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpansetNumSpans(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetSpan(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_span_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetSpanN(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "spanset_spanarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetSpanarr(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "spanset_start_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetStartSpan(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_upper_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetUpperInc(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "textset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "textset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "textset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "textset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tstzset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TstzsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TstzsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TstzsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tstzset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_duration", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanDuration(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TstzspanLower(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TstzspanUpper(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_duration", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetDuration(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_end_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TstzspansetEndTimestamptz(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TstzspansetLower(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_num_timestamps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TstzspansetNumTimestamps(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_start_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TstzspansetStartTimestamptz(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_timestamps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetTimestamps(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_timestamptz_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TstzspansetTimestamptzN(IntPtr ss, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TstzspansetUpper(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "bigintset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintsetShiftScale(IntPtr s, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspanShiftScale(IntPtr s, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "bigintspanset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspansetShiftScale(IntPtr ss, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "dateset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatesetShiftScale(IntPtr s, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "datespan_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespanShiftScale(IntPtr s, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "datespanset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespansetShiftScale(IntPtr ss, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "floatset_ceil", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetCeil(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatset_degrees", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetDegrees(IntPtr s, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "floatset_floor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetFloor(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatset_radians", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetRadians(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatsetShiftScale(IntPtr s, double shift, double width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "floatspan_ceil", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanCeil(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspan_degrees", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanDegrees(IntPtr s, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "floatspan_floor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanFloor(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspan_radians", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanRadians(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "floatspan_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanRound(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "floatspan_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanShiftScale(IntPtr s, double shift, double width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_ceil", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetCeil(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_floor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetFloor(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_degrees", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetDegrees(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_radians", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetRadians(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetRound(IntPtr ss, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetShiftScale(IntPtr ss, double shift, double width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "intset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntsetShiftScale(IntPtr s, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "intspan_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspanShiftScale(IntPtr s, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "intspanset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspansetShiftScale(IntPtr ss, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanExpand(IntPtr s, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "set_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetRound(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "textcat_text_textset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextcatTextTextset(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "textcat_textset_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextcatTextsetText(IntPtr s, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "textset_initcap", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextsetInitcap(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "textset_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextsetLower(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "textset_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextsetUpper(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_tprecision", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzTprecision(long t, IntPtr duration, long torigin); + + [LibraryImport(DllPath, EntryPoint = "tstzset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzsetShiftScale(IntPtr s, IntPtr shift, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "tstzset_tprecision", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzsetTprecision(IntPtr s, IntPtr duration, long torigin); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanShiftScale(IntPtr s, IntPtr shift, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_tprecision", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanTprecision(IntPtr s, IntPtr duration, long torigin); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetShiftScale(IntPtr ss, IntPtr shift, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_tprecision", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetTprecision(IntPtr ss, IntPtr duration, long torigin); + + [LibraryImport(DllPath, EntryPoint = "set_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SetCmp(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "set_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetEq(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "set_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetGe(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "set_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetGt(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "set_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetLe(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "set_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetLt(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "set_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetNe(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpanCmp(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanEq(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanGe(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanGt(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanLe(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanLt(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanNe(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "spanset_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpansetCmp(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "spanset_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetEq(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "spanset_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetGe(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "spanset_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetGt(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "spanset_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetLe(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "spanset_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetLt(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "spanset_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetNe(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "set_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetSpans(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "set_split_each_n_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetSplitEachNSpans(IntPtr s, int elems_per_span, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "set_split_n_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetSplitNSpans(IntPtr s, int span_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "spanset_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetSpans(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "spanset_split_each_n_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetSplitEachNSpans(IntPtr ss, int elems_per_span, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "spanset_split_n_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetSplitNSpans(IntPtr ss, int span_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "adjacent_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "adjacent_span_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "adjacent_span_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "adjacent_span_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "adjacent_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "adjacent_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "adjacent_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "adjacent_bigint_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentBigintSpan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "adjacent_date_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentDateSpan(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "adjacent_float_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentFloatSpan(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "adjacent_int_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentIntSpan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "adjacent_timestamptz_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTimestamptzSpan(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "adjacent_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "adjacent_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "adjacent_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "adjacent_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "adjacent_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "adjacent_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "adjacent_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "contained_bigint_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedBigintSet(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_bigint_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedBigintSpan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_bigint_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedBigintSpanset(long i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contained_date_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedDateSet(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_date_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedDateSpan(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_date_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedDateSpanset(int d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contained_float_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedFloatSet(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_float_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedFloatSpan(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_float_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedFloatSpanset(double d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contained_int_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedIntSet(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_int_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedIntSpan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_int_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedIntSpanset(int i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contained_set_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "contained_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "contained_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contained_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "contained_text_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTextSet(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_timestamptz_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTimestamptzSet(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_timestamptz_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTimestamptzSpan(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_timestamptz_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTimestamptzSpanset(long t, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contains_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "contains_set_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "contains_set_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "contains_set_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "contains_set_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "contains_set_text", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetText(IntPtr s, IntPtr t); + + [LibraryImport(DllPath, EntryPoint = "contains_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "contains_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "contains_span_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "contains_span_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "contains_span_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "contains_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "contains_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contains_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "contains_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "contains_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "contains_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "contains_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "contains_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "contains_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "overlaps_set_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overlaps_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overlaps_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "same_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "after_date_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterDateSet(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "after_date_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterDateSpan(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "after_date_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterDateSpanset(int d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "after_set_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "after_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "after_span_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "after_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "after_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "after_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "after_timestamptz_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTimestamptzSet(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "after_timestamptz_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTimestamptzSpan(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "after_timestamptz_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTimestamptzSpanset(long t, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "before_date_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeDateSet(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "before_date_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeDateSpan(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "before_date_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeDateSpanset(int d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "before_set_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "before_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "before_span_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "before_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "before_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "before_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "before_timestamptz_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTimestamptzSet(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "before_timestamptz_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTimestamptzSpan(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "before_timestamptz_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTimestamptzSpanset(long t, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "left_bigint_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftBigintSet(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_bigint_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftBigintSpan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_bigint_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftBigintSpanset(long i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "left_float_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftFloatSet(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_float_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftFloatSpan(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_float_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftFloatSpanset(double d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "left_int_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftIntSet(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_int_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftIntSpan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_int_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftIntSpanset(int i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "left_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "left_set_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "left_set_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "left_set_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "left_set_text", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSetText(IntPtr s, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "left_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "left_span_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "left_span_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "left_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "left_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "left_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "left_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "left_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "left_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "left_text_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTextSet(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overafter_date_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterDateSet(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overafter_date_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterDateSpan(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overafter_date_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterDateSpanset(int d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overafter_set_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "overafter_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "overafter_span_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "overafter_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "overafter_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "overafter_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "overafter_timestamptz_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTimestamptzSet(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overafter_timestamptz_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTimestamptzSpan(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overafter_timestamptz_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTimestamptzSpanset(long t, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overbefore_date_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeDateSet(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overbefore_date_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeDateSpan(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overbefore_date_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeDateSpanset(int d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overbefore_set_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "overbefore_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "overbefore_span_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "overbefore_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "overbefore_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "overbefore_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "overbefore_timestamptz_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTimestamptzSet(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overbefore_timestamptz_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTimestamptzSpan(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overbefore_timestamptz_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTimestamptzSpanset(long t, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overleft_bigint_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftBigintSet(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_bigint_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftBigintSpan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_bigint_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftBigintSpanset(long i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overleft_float_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftFloatSet(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_float_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftFloatSpan(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_float_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftFloatSpanset(double d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overleft_int_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftIntSet(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_int_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftIntSpan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_int_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftIntSpanset(int i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overleft_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "overleft_set_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "overleft_set_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "overleft_set_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "overleft_set_text", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSetText(IntPtr s, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "overleft_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "overleft_span_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "overleft_span_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "overleft_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "overleft_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overleft_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "overleft_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "overleft_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "overleft_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "overleft_text_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTextSet(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_bigint_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightBigintSet(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_bigint_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightBigintSpan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_bigint_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightBigintSpanset(long i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overright_float_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightFloatSet(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_float_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightFloatSpan(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_float_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightFloatSpanset(double d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overright_int_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightIntSet(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_int_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightIntSpan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_int_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightIntSpanset(int i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overright_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "overright_set_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "overright_set_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "overright_set_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "overright_set_text", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSetText(IntPtr s, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "overright_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "overright_span_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "overright_span_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "overright_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "overright_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overright_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "overright_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "overright_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "overright_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "overright_text_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTextSet(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_bigint_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightBigintSet(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_bigint_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightBigintSpan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_bigint_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightBigintSpanset(long i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "right_float_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightFloatSet(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_float_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightFloatSpan(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_float_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightFloatSpanset(double d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "right_int_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightIntSet(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_int_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightIntSpan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_int_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightIntSpanset(int i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "right_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "right_set_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "right_set_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "right_set_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "right_set_text", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSetText(IntPtr s, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "right_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "right_span_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "right_span_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "right_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "right_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "right_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "right_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "right_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "right_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "right_text_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTextSet(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_bigint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionBigintSet(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_date_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionDateSet(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_float_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionFloatSet(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_int_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionIntSet(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetText(IntPtr s, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "intersection_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "intersection_span_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "intersection_span_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "intersection_span_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "intersection_span_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "intersection_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "intersection_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "intersection_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "intersection_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "intersection_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "intersection_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "intersection_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "intersection_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "intersection_text_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionTextSet(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_timestamptz_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionTimestamptzSet(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_bigint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusBigintSet(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_bigint_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusBigintSpan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_bigint_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusBigintSpanset(long i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "minus_date_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusDateSet(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_date_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusDateSpan(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_date_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusDateSpanset(int d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "minus_float_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusFloatSet(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_float_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusFloatSpan(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_float_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusFloatSpanset(double d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "minus_int_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusIntSet(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_int_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusIntSpan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_int_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusIntSpanset(int i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "minus_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "minus_set_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "minus_set_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "minus_set_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "minus_set_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "minus_set_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetText(IntPtr s, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "minus_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "minus_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "minus_span_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "minus_span_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "minus_span_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "minus_span_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "minus_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "minus_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "minus_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "minus_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "minus_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "minus_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "minus_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "minus_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "minus_text_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusTextSet(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_timestamptz_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusTimestamptzSet(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_timestamptz_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusTimestamptzSpan(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_timestamptz_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusTimestamptzSpanset(long t, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "union_bigint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionBigintSet(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_bigint_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionBigintSpan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_bigint_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionBigintSpanset(long i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "union_date_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionDateSet(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_date_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionDateSpan(int d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_date_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionDateSpanset(int d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "union_float_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionFloatSet(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_float_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionFloatSpan(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_float_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionFloatSpanset(double d, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "union_int_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionIntSet(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_int_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionIntSpan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_int_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionIntSpanset(int i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "union_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "union_set_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "union_set_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "union_set_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "union_set_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "union_set_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetText(IntPtr s, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "union_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "union_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "union_span_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "union_span_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "union_span_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "union_span_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "union_span_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpanSpanset(IntPtr s, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "union_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "union_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "union_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "union_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "union_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "union_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "union_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "union_text_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionTextSet(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_timestamptz_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionTimestamptzSet(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_timestamptz_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionTimestamptzSpan(long t, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_timestamptz_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionTimestamptzSpanset(long t, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "distance_bigintset_bigintset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceBigintsetBigintset(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_bigintspan_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceBigintspanBigintspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_bigintspanset_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceBigintspansetBigintspan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "distance_bigintspanset_bigintspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceBigintspansetBigintspanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "distance_dateset_dateset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceDatesetDateset(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_datespan_datespan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceDatespanDatespan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_datespanset_datespan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceDatespansetDatespan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "distance_datespanset_datespanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceDatespansetDatespanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "distance_floatset_floatset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceFloatsetFloatset(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_floatspan_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceFloatspanFloatspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_floatspanset_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceFloatspansetFloatspan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "distance_floatspanset_floatspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceFloatspansetFloatspanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "distance_intset_intset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceIntsetIntset(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_intspan_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceIntspanIntspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_intspanset_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceIntspansetIntspan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "distance_intspanset_intspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceIntspansetIntspanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "distance_set_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSetBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "distance_set_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceSetDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "distance_set_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceSetFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "distance_set_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceSetInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "distance_set_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceSetTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "distance_span_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpanBigint(IntPtr s, long i); + + [LibraryImport(DllPath, EntryPoint = "distance_span_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceSpanDate(IntPtr s, int d); + + [LibraryImport(DllPath, EntryPoint = "distance_span_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceSpanFloat(IntPtr s, double d); + + [LibraryImport(DllPath, EntryPoint = "distance_span_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceSpanInt(IntPtr s, int i); + + [LibraryImport(DllPath, EntryPoint = "distance_span_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceSpanTimestamptz(IntPtr s, long t); + + [LibraryImport(DllPath, EntryPoint = "distance_spanset_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpansetBigint(IntPtr ss, long i); + + [LibraryImport(DllPath, EntryPoint = "distance_spanset_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceSpansetDate(IntPtr ss, int d); + + [LibraryImport(DllPath, EntryPoint = "distance_spanset_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceSpansetFloat(IntPtr ss, double d); + + [LibraryImport(DllPath, EntryPoint = "distance_spanset_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DistanceSpansetInt(IntPtr ss, int i); + + [LibraryImport(DllPath, EntryPoint = "distance_spanset_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceSpansetTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "distance_tstzset_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceTstzsetTstzset(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_tstzspan_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceTstzspanTstzspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_tstzspanset_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceTstzspansetTstzspan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "distance_tstzspanset_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceTstzspansetTstzspanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "bigint_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintExtentTransfn(IntPtr state, long i); + + [LibraryImport(DllPath, EntryPoint = "bigint_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintUnionTransfn(IntPtr state, long i); + + [LibraryImport(DllPath, EntryPoint = "date_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DateExtentTransfn(IntPtr state, int d); + + [LibraryImport(DllPath, EntryPoint = "date_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DateUnionTransfn(IntPtr state, int d); + + [LibraryImport(DllPath, EntryPoint = "float_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatExtentTransfn(IntPtr state, double d); + + [LibraryImport(DllPath, EntryPoint = "float_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatUnionTransfn(IntPtr state, double d); + + [LibraryImport(DllPath, EntryPoint = "int_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntExtentTransfn(IntPtr state, int i); + + [LibraryImport(DllPath, EntryPoint = "int_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntUnionTransfn(IntPtr state, int i); + + [LibraryImport(DllPath, EntryPoint = "set_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetExtentTransfn(IntPtr state, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "set_union_finalfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetUnionFinalfn(IntPtr state); + + [LibraryImport(DllPath, EntryPoint = "set_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetUnionTransfn(IntPtr state, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanExtentTransfn(IntPtr state, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanUnionTransfn(IntPtr state, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "spanset_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetExtentTransfn(IntPtr state, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_union_finalfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetUnionFinalfn(IntPtr state); + + [LibraryImport(DllPath, EntryPoint = "spanset_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetUnionTransfn(IntPtr state, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "text_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextUnionTransfn(IntPtr state, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzExtentTransfn(IntPtr state, long t); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzUnionTransfn(IntPtr state, long t); + + [LibraryImport(DllPath, EntryPoint = "bigint_get_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long BigintGetBin(long value, long vsize, long vorigin); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspanBins(IntPtr s, long vsize, long vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "bigintspanset_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintspansetBins(IntPtr ss, long vsize, long vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "date_get_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DateGetBin(int d, IntPtr duration, int torigin); + + [LibraryImport(DllPath, EntryPoint = "datespan_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespanBins(IntPtr s, IntPtr duration, int torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "datespanset_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DatespansetBins(IntPtr ss, IntPtr duration, int torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "float_get_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatGetBin(double value, double vsize, double vorigin); + + [LibraryImport(DllPath, EntryPoint = "floatspan_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspanBins(IntPtr s, double vsize, double vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "floatspanset_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatspansetBins(IntPtr ss, double vsize, double vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "int_get_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntGetBin(int value, int vsize, int vorigin); + + [LibraryImport(DllPath, EntryPoint = "intspan_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspanBins(IntPtr s, int vsize, int vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "intspanset_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntspansetBins(IntPtr ss, int vsize, int vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_get_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzGetBin(long t, IntPtr duration, long torigin); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanBins(IntPtr s, IntPtr duration, long origin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetBins(IntPtr ss, IntPtr duration, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tbox_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TboxAsHexwkb(IntPtr box, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "tbox_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxAsWkb(IntPtr box, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "tbox_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "tbox_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "tbox_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tbox_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TboxOut(IntPtr box, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "float_timestamptz_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatTimestamptzToTbox(double d, long t); + + [LibraryImport(DllPath, EntryPoint = "float_tstzspan_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatTstzspanToTbox(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "int_timestamptz_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntTimestamptzToTbox(int i, long t); + + [LibraryImport(DllPath, EntryPoint = "bigint_timestamptz_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintTimestamptzToTbox(long i, long t); + + [LibraryImport(DllPath, EntryPoint = "int_tstzspan_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntTstzspanToTbox(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "bigint_tstzspan_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintTstzspanToTbox(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "numspan_tstzspan_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumspanTstzspanToTbox(IntPtr span, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "numspan_timestamptz_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumspanTimestamptzToTbox(IntPtr span, long t); + + [LibraryImport(DllPath, EntryPoint = "tbox_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxCopy(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tbox_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxMake(IntPtr s, IntPtr p); + + [LibraryImport(DllPath, EntryPoint = "float_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr FloatToTbox(double d); + + [LibraryImport(DllPath, EntryPoint = "int_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntToTbox(int i); + + [LibraryImport(DllPath, EntryPoint = "bigint_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BigintToTbox(long i); + + [LibraryImport(DllPath, EntryPoint = "set_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetToTbox(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanToTbox(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "spanset_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetToTbox(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tbox_to_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxToIntspan(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tbox_to_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxToBigintspan(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tbox_to_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxToFloatspan(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tbox_to_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxToTstzspan(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzToTbox(long t); + + [LibraryImport(DllPath, EntryPoint = "tbox_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TboxHash(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tbox_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TboxHashExtended(IntPtr box, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "tbox_hast", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxHast(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tbox_hasx", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxHasx(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tbox_tmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxTmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbox_tmax_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxTmaxInc(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbox_tmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxTmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbox_tmin_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxTminInc(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbox_xmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxXmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbox_xmax_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxXmaxInc(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbox_xmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxXmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbox_xmin_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxXminInc(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tboxfloat_xmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxfloatXmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tboxfloat_xmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxfloatXmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tboxint_xmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxintXmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tboxbigint_xmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxbigintXmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tboxint_xmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxintXmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tboxbigint_xmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxbigintXmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tfloatbox_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatboxExpand(IntPtr box, double d); + + [LibraryImport(DllPath, EntryPoint = "tintbox_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintboxExpand(IntPtr box, int i); + + [LibraryImport(DllPath, EntryPoint = "tbox_expand_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxExpandTime(IntPtr box, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tbox_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxRound(IntPtr box, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tfloatbox_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatboxShiftScale(IntPtr box, double shift, double width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "tintbox_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintboxShiftScale(IntPtr box, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "tbox_shift_scale_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxShiftScaleTime(IntPtr box, IntPtr shift, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "tbigintbox_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintboxExpand(IntPtr box, long i); + + [LibraryImport(DllPath, EntryPoint = "tbigintbox_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintboxShiftScale(IntPtr box, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "union_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionTboxTbox(IntPtr box1, IntPtr box2, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "intersection_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "contained_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "contains_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "same_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "after_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "before_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "left_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overafter_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overbefore_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overleft_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overright_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "right_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TboxCmp(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxEq(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxGe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxGt(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxLe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxLt(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxNe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbool_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tbool_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tbool_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TboolOut(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TemporalAsHexwkb(IntPtr temp, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "temporal_as_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TemporalAsMfjson(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool with_bbox, int flags, int precision, string srs); + + [LibraryImport(DllPath, EntryPoint = "temporal_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAsWkb(IntPtr temp, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "wkb_variant_from_endian", StringMarshalling = StringMarshalling.Utf8)] + internal static partial byte WkbVariantFromEndian(string endian); + + [LibraryImport(DllPath, EntryPoint = "temporal_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "temporal_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "tfloat_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tfloat_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tfloat_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TfloatOut(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tint_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tbigint_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tint_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tbigint_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tint_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TintOut(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TbigintOut(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "ttext_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextIn(string str); + + [LibraryImport(DllPath, EntryPoint = "ttext_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TtextOut(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbool_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolFromBaseTemp([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tboolinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolinstMake([MarshalAs(UnmanagedType.U1)] bool b, long t); + + [LibraryImport(DllPath, EntryPoint = "tboolseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolseqFromBaseTstzset([MarshalAs(UnmanagedType.U1)] bool b, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tboolseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolseqFromBaseTstzspan([MarshalAs(UnmanagedType.U1)] bool b, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tboolseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolseqsetFromBaseTstzspanset([MarshalAs(UnmanagedType.U1)] bool b, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "temporal_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalCopy(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatFromBaseTemp(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloatinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatinstMake(double d, long t); + + [LibraryImport(DllPath, EntryPoint = "tfloatseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatseqFromBaseTstzset(double d, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tfloatseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatseqFromBaseTstzspan(double d, IntPtr s, int interp); + + [LibraryImport(DllPath, EntryPoint = "tfloatseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatseqsetFromBaseTstzspanset(double d, IntPtr ss, int interp); + + [LibraryImport(DllPath, EntryPoint = "tint_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintFromBaseTemp(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintFromBaseTemp(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tintinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintinstMake(int i, long t); + + [LibraryImport(DllPath, EntryPoint = "tbigintinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintinstMake(long i, long t); + + [LibraryImport(DllPath, EntryPoint = "tintseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintseqFromBaseTstzset(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tbigintseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintseqFromBaseTstzset(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tintseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintseqFromBaseTstzspan(int i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tbigintseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintseqFromBaseTstzspan(long i, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tintseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintseqsetFromBaseTstzspanset(int i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tbigintseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintseqsetFromBaseTstzspanset(long i, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequence_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceMake(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetMake(IntPtr sequences, int count, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_make_gaps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetMakeGaps(IntPtr instants, int count, int interp, IntPtr maxt, double maxdist); + + [LibraryImport(DllPath, EntryPoint = "ttext_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextFromBaseTemp(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttextinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextinstMake(IntPtr txt, long t); + + [LibraryImport(DllPath, EntryPoint = "ttextseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextseqFromBaseTstzset(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "ttextseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextseqFromBaseTstzspan(IntPtr txt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "ttextseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextseqsetFromBaseTstzspanset(IntPtr txt, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tbool_to_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolToTint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_to_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalToTstzspan(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_to_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatToTint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_to_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatToTbigint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tint_to_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintToTfloat(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tint_to_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintToTbigint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_to_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintToTint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_to_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintToTfloat(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_to_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberToSpan(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberToTbox(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbool_end_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboolEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbool_start_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboolStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbool_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboolValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tbool_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboolValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbool_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_duration", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalDuration(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool boundspan); + + [LibraryImport(DllPath, EntryPoint = "temporal_end_instant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalEndInstant(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_end_sequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalEndSequence(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_end_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TemporalEndTimestamptz(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TemporalHash(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TemporalHashExtended(IntPtr temp, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "temporal_instant_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalInstantN(IntPtr temp, int n); + + [LibraryImport(DllPath, EntryPoint = "temporal_instants", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalInstants(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_interp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalInterp(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_lower_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalLowerInc(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_max_instant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMaxInstant(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_min_instant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinInstant(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_num_instants", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TemporalNumInstants(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_num_sequences", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TemporalNumSequences(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_num_timestamps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TemporalNumTimestamps(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_segm_duration", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSegmDuration(IntPtr temp, IntPtr duration, [MarshalAs(UnmanagedType.U1)] bool atleast, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "temporal_segments", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSegments(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_sequence_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSequenceN(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "temporal_sequences", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSequences(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_start_instant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalStartInstant(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_start_sequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalStartSequence(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_start_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TemporalStartTimestamptz(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_stops", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalStops(IntPtr temp, double maxdist, IntPtr minduration); + + [LibraryImport(DllPath, EntryPoint = "temporal_subtype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSubtype(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_basetype_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalBasetypeName(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTime(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_timestamps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTimestamps(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_timestamptz_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalTimestamptzN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "temporal_upper_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalUpperInc(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TfloatEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_min_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TfloatMinValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_max_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TfloatMaxValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TfloatStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TfloatValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tfloat_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TfloatValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tfloat_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tint_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TintEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TbigintEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tint_max_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TintMaxValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_max_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TbigintMaxValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tint_min_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TintMinValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_min_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TbigintMinValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tint_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TintStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TbigintStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TbigintValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tint_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TintValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tint_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TintValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbigint_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TbigintValueN(IntPtr temp, long n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tint_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tbigint_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_avg_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberAvgValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_integral", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberIntegral(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_twavg", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberTwavg(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_valuespans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberValuespans(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_max_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextMaxValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_min_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextMinValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TtextValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "ttext_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TtextValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "ttext_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "float_degrees", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatDegrees(double value, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "temparr_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemparrRound(IntPtr temp, int count, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "temporal_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalRound(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "temporal_scale_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalScaleTime(IntPtr temp, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "temporal_set_interp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSetInterp(IntPtr temp, int interp); + + [LibraryImport(DllPath, EntryPoint = "temporal_shift_scale_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalShiftScaleTime(IntPtr temp, IntPtr shift, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "temporal_shift_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalShiftTime(IntPtr temp, IntPtr shift); + + [LibraryImport(DllPath, EntryPoint = "temporal_as_tinstant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAsTinstant(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_as_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAsTsequence(IntPtr temp, int interp); + + [LibraryImport(DllPath, EntryPoint = "temporal_as_tsequenceset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAsTsequenceset(IntPtr temp, int interp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_ceil", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatCeil(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_degrees", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatDegrees(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "tfloat_floor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatFloor(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_radians", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatRadians(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatScaleValue(IntPtr temp, double width); + + [LibraryImport(DllPath, EntryPoint = "tfloat_shift_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatShiftScaleValue(IntPtr temp, double shift, double width); + + [LibraryImport(DllPath, EntryPoint = "tfloat_shift_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatShiftValue(IntPtr temp, double shift); + + [LibraryImport(DllPath, EntryPoint = "tint_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintScaleValue(IntPtr temp, int width); + + [LibraryImport(DllPath, EntryPoint = "tbigint_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintScaleValue(IntPtr temp, long width); + + [LibraryImport(DllPath, EntryPoint = "tint_shift_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintShiftScaleValue(IntPtr temp, int shift, int width); + + [LibraryImport(DllPath, EntryPoint = "tbigint_shift_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintShiftScaleValue(IntPtr temp, long shift, long width); + + [LibraryImport(DllPath, EntryPoint = "tint_shift_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintShiftValue(IntPtr temp, int shift); + + [LibraryImport(DllPath, EntryPoint = "tbigint_shift_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintShiftValue(IntPtr temp, long shift); + + [LibraryImport(DllPath, EntryPoint = "temporal_append_tinstant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAppendTinstant(IntPtr temp, IntPtr inst, int interp, double maxdist, IntPtr maxt, [MarshalAs(UnmanagedType.U1)] bool expand); + + [LibraryImport(DllPath, EntryPoint = "temporal_append_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAppendTsequence(IntPtr temp, IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool expand); + + [LibraryImport(DllPath, EntryPoint = "temporal_delete_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalDeleteTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "temporal_delete_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalDeleteTstzset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "temporal_delete_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalDeleteTstzspan(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "temporal_delete_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalDeleteTstzspanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "temporal_insert", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalInsert(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "temporal_merge", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMerge(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_merge_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMergeArray(IntPtr temparr, int count); + + [LibraryImport(DllPath, EntryPoint = "temporal_update", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalUpdate(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "tbool_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolAtValue(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "tbool_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolMinusValue(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "temporal_after_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAfterTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "temporal_at_max", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAtMax(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_at_min", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAtMin(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAtTimestamptz(IntPtr temp, long t); + + [LibraryImport(DllPath, EntryPoint = "temporal_at_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAtTstzset(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "temporal_at_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAtTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "temporal_at_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAtTstzspanset(IntPtr temp, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "temporal_at_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAtValues(IntPtr temp, IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "temporal_before_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalBeforeTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "temporal_minus_max", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinusMax(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_minus_min", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinusMin(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_minus_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinusTimestamptz(IntPtr temp, long t); + + [LibraryImport(DllPath, EntryPoint = "temporal_minus_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinusTstzset(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "temporal_minus_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinusTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "temporal_minus_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinusTstzspanset(IntPtr temp, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "temporal_minus_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinusValues(IntPtr temp, IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "tfloat_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatAtValue(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "tfloat_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatMinusValue(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "tint_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintAtValue(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "tint_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintMinusValue(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "tnumber_at_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberAtSpan(IntPtr temp, IntPtr span); + + [LibraryImport(DllPath, EntryPoint = "tnumber_at_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberAtSpanset(IntPtr temp, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tnumber_at_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberAtTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tnumber_minus_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberMinusSpan(IntPtr temp, IntPtr span); + + [LibraryImport(DllPath, EntryPoint = "tnumber_minus_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberMinusSpanset(IntPtr temp, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tnumber_minus_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberMinusTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "ttext_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextAtValue(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "ttext_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextMinusValue(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "temporal_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TemporalCmp(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalEq(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalGe(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalGt(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalLe(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalLt(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalNe(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_bool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqBoolTbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tbool_bool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTboolBool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "always_eq_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "always_eq_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "always_eq_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "always_ge_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ge_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ge_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ge_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ge_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "always_ge_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "always_ge_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ge_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "always_ge_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "always_gt_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_gt_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_gt_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_gt_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_gt_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "always_gt_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "always_gt_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_gt_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "always_gt_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "always_le_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_le_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_le_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_le_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_le_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "always_le_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "always_le_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_le_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "always_le_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "always_lt_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_lt_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_lt_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_lt_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_lt_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "always_lt_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "always_lt_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_lt_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "always_lt_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "always_ne_bool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeBoolTbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tbool_bool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTboolBool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "always_ne_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "always_ne_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "always_ne_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_bool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqBoolTbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tbool_bool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTboolBool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "ever_le_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_le_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_le_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_le_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_le_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "ever_le_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "ever_le_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_le_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "ever_le_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_bool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeBoolTbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tbool_bool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTboolBool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "teq_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_bool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqBoolTbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "teq_tbool_bool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTboolBool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "teq_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "teq_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "teq_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "tge_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tge_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tge_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tge_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tge_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tge_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "tge_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "tge_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "tge_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "tgt_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgt_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgt_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgt_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tgt_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgt_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "tgt_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "tgt_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "tgt_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "tle_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tle_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tle_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tle_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tle_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tle_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "tle_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "tle_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "tle_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "tlt_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tlt_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tlt_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tlt_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tlt_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tlt_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "tlt_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "tlt_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "tlt_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "tne_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneBigintTbigint(long i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_bool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneBoolTbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneFloatTfloat(double d, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneIntTint(int i, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "tne_tbool_bool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTboolBool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "tne_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tne_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "tne_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "tne_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "temporal_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSpans(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_split_each_n_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSplitEachNSpans(IntPtr temp, int elem_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_split_n_spans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSplitNSpans(IntPtr temp, int span_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_split_each_n_tboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberSplitEachNTboxes(IntPtr temp, int elem_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_split_n_tboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberSplitNTboxes(IntPtr temp, int box_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_tboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberTboxes(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "adjacent_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "adjacent_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "adjacent_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contained_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contained_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contained_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contained_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "contained_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contained_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contains_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contains_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contains_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contains_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "contains_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contains_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overlaps_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overlaps_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_time_overlaps", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalTimeOverlaps(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "same_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "same_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "same_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "same_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "same_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "same_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "same_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "same_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "after_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "after_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "after_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "after_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "after_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "after_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "before_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "before_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "before_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "before_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "before_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "before_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "left_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "left_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "left_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "left_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overafter_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overafter_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overafter_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overafter_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overafter_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overafter_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overbefore_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overbefore_temporal_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTemporalTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overbefore_temporal_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTemporalTemporal(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overbefore_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overbefore_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overbefore_tstzspan_temporal", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTstzspanTemporal(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overleft_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overleft_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overleft_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overleft_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overright_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overright_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overright_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overright_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "right_numspan_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightNumspanTnumber(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "right_tbox_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTboxTnumber(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "right_tnumber_numspan", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTnumberNumspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "right_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tand_bool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TandBoolTbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tand_tbool_bool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TandTboolBool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "tand_tbool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TandTboolTbool(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tbool_when_true", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolWhenTrue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnot_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnotTbool(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tor_bool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TorBoolTbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tor_tbool_bool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TorTboolBool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "tor_tbool_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TorTboolTbool(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "add_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AddFloatTfloat(double d, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "add_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AddIntTint(int i, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "add_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AddTfloatFloat(IntPtr tnumber, double d); + + [LibraryImport(DllPath, EntryPoint = "add_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AddTintInt(IntPtr tnumber, int i); + + [LibraryImport(DllPath, EntryPoint = "add_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AddBigintTbigint(long i, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "add_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AddTbigintBigint(IntPtr tnumber, long i); + + [LibraryImport(DllPath, EntryPoint = "add_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AddTnumberTnumber(IntPtr tnumber1, IntPtr tnumber2); + + [LibraryImport(DllPath, EntryPoint = "div_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DivFloatTfloat(double d, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "div_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DivIntTint(int i, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "div_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DivTfloatFloat(IntPtr tnumber, double d); + + [LibraryImport(DllPath, EntryPoint = "div_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DivTintInt(IntPtr tnumber, int i); + + [LibraryImport(DllPath, EntryPoint = "div_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DivBigintTbigint(long i, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "div_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DivTbigintBigint(IntPtr tnumber, long i); + + [LibraryImport(DllPath, EntryPoint = "div_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DivTnumberTnumber(IntPtr tnumber1, IntPtr tnumber2); + + [LibraryImport(DllPath, EntryPoint = "mul_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulFloatTfloat(double d, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "mul_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulIntTint(int i, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "mul_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulTfloatFloat(IntPtr tnumber, double d); + + [LibraryImport(DllPath, EntryPoint = "mul_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulTintInt(IntPtr tnumber, int i); + + [LibraryImport(DllPath, EntryPoint = "mul_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulBigintTbigint(long i, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "mul_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulTbigintBigint(IntPtr tnumber, long i); + + [LibraryImport(DllPath, EntryPoint = "mul_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulTnumberTnumber(IntPtr tnumber1, IntPtr tnumber2); + + [LibraryImport(DllPath, EntryPoint = "sub_float_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SubFloatTfloat(double d, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "sub_int_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SubIntTint(int i, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "sub_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SubTfloatFloat(IntPtr tnumber, double d); + + [LibraryImport(DllPath, EntryPoint = "sub_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SubTintInt(IntPtr tnumber, int i); + + [LibraryImport(DllPath, EntryPoint = "sub_bigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SubBigintTbigint(long i, IntPtr tnumber); + + [LibraryImport(DllPath, EntryPoint = "sub_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SubTbigintBigint(IntPtr tnumber, long i); + + [LibraryImport(DllPath, EntryPoint = "sub_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SubTnumberTnumber(IntPtr tnumber1, IntPtr tnumber2); + + [LibraryImport(DllPath, EntryPoint = "temporal_derivative", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalDerivative(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_exp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatExp(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_ln", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatLn(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_log10", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatLog10(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_sin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatSin(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_cos", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatCos(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_tan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatTan(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberAbs(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_trend", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberTrend(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "float_angular_difference", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double FloatAngularDifference(double degrees1, double degrees2); + + [LibraryImport(DllPath, EntryPoint = "tnumber_angular_difference", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberAngularDifference(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_delta_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberDeltaValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "textcat_text_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextcatTextTtext(IntPtr txt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "textcat_ttext_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextcatTtextText(IntPtr temp, IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "textcat_ttext_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextcatTtextTtext(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ttext_initcap", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextInitcap(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextUpper(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextLower(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_tboxfloat_tboxfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTboxfloatTboxfloat(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "nad_tboxint_tboxint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NadTboxintTboxint(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "nad_tfloat_float", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTfloatFloat(IntPtr temp, double d); + + [LibraryImport(DllPath, EntryPoint = "nad_tfloat_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTfloatTfloat(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_tfloat_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTfloatTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_tbigint_bigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NadTbigintBigint(IntPtr temp, long i); + + [LibraryImport(DllPath, EntryPoint = "nad_tbigint_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NadTbigintTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_tbigint_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NadTbigintTbigint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_tboxbigint_tboxbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NadTboxbigintTboxbigint(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "nad_tint_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NadTintInt(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "nad_tint_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NadTintTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_tint_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NadTintTint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tbigint_tmax_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintTmaxTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_tmax_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintTmaxCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tbigint_tmin_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintTminTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_tmin_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintTminCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tbigint_tsum_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintTsumTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbigint_tsum_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintTsumCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tbigint_wmax_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintWmaxTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tbigint_wmin_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintWminTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tbigint_wsum_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintWsumTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tbool_tand_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolTandTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbool_tand_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolTandCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tbool_tor_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolTorTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tbool_tor_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolTorCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "temporal_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalExtentTransfn(IntPtr s, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_tagg_finalfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTaggFinalfn(IntPtr state); + + [LibraryImport(DllPath, EntryPoint = "temporal_tcount_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTcountTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_tcount_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTcountCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tfloat_tmax_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatTmaxTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_tmax_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatTmaxCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tfloat_tmin_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatTminTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_tmin_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatTminCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tfloat_tsum_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatTsumTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tfloat_tsum_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatTsumCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tfloat_wmax_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatWmaxTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tfloat_wmin_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatWminTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tfloat_wsum_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatWsumTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_tcount_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzTcountTransfn(IntPtr state, long t); + + [LibraryImport(DllPath, EntryPoint = "tint_tmax_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintTmaxTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tint_tmax_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintTmaxCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tint_tmin_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintTminTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tint_tmin_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintTminCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tint_tsum_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintTsumTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tint_tsum_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintTsumCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tint_wmax_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintWmaxTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tint_wmin_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintWminTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tint_wsum_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintWsumTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tnumber_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberExtentTransfn(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_tavg_finalfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberTavgFinalfn(IntPtr state); + + [LibraryImport(DllPath, EntryPoint = "tnumber_tavg_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberTavgTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_tavg_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberTavgCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "tnumber_wavg_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberWavgTransfn(IntPtr state, IntPtr temp, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tstzset_tcount_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzsetTcountTransfn(IntPtr state, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_tcount_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanTcountTransfn(IntPtr state, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_tcount_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetTcountTransfn(IntPtr state, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "temporal_merge_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMergeTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_merge_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMergeCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "ttext_tmax_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextTmaxTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_tmax_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextTmaxCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "ttext_tmin_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextTminTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_tmin_combinefn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextTminCombinefn(IntPtr state1, IntPtr state2); + + [LibraryImport(DllPath, EntryPoint = "temporal_simplify_dp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSimplifyDp(IntPtr temp, double dist, [MarshalAs(UnmanagedType.U1)] bool synchronized); + + [LibraryImport(DllPath, EntryPoint = "temporal_simplify_max_dist", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSimplifyMaxDist(IntPtr temp, double dist, [MarshalAs(UnmanagedType.U1)] bool synchronized); + + [LibraryImport(DllPath, EntryPoint = "temporal_simplify_min_dist", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSimplifyMinDist(IntPtr temp, double dist); + + [LibraryImport(DllPath, EntryPoint = "temporal_simplify_min_tdelta", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSimplifyMinTdelta(IntPtr temp, IntPtr mint); + + [LibraryImport(DllPath, EntryPoint = "temporal_tprecision", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTprecision(IntPtr temp, IntPtr duration, long origin); + + [LibraryImport(DllPath, EntryPoint = "temporal_tsample", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTsample(IntPtr temp, IntPtr duration, long origin, int interp); + + [LibraryImport(DllPath, EntryPoint = "temporal_dyntimewarp_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TemporalDyntimewarpDistance(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_dyntimewarp_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalDyntimewarpPath(IntPtr temp1, IntPtr temp2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_frechet_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TemporalFrechetDistance(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_frechet_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalFrechetPath(IntPtr temp1, IntPtr temp2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_hausdorff_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TemporalHausdorffDistance(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_average_hausdorff_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TemporalAverageHausdorffDistance(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "temporal_lcss_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TemporalLcssDistance(IntPtr temp1, IntPtr temp2, double epsilon); + + [LibraryImport(DllPath, EntryPoint = "temporal_ext_kalman_filter", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalExtKalmanFilter(IntPtr temp, double gate, double q, double variance, [MarshalAs(UnmanagedType.U1)] bool to_drop); + + [LibraryImport(DllPath, EntryPoint = "temporal_time_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTimeBins(IntPtr temp, IntPtr duration, long origin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_time_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTimeSplit(IntPtr temp, IntPtr duration, long torigin, IntPtr bins, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloat_time_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatTimeBoxes(IntPtr temp, IntPtr duration, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloat_value_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatValueBins(IntPtr temp, double vsize, double vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloat_value_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatValueBoxes(IntPtr temp, double vsize, double vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloat_value_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatValueSplit(IntPtr temp, double size, double origin, IntPtr bins, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloat_value_time_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatValueTimeBoxes(IntPtr temp, double vsize, IntPtr duration, double vorigin, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloat_value_time_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatValueTimeSplit(IntPtr temp, double vsize, IntPtr duration, double vorigin, long torigin, IntPtr value_bins, IntPtr time_bins, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloatbox_time_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatboxTimeTiles(IntPtr box, IntPtr duration, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloatbox_value_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatboxValueTiles(IntPtr box, double vsize, double vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tfloatbox_value_time_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatboxValueTimeTiles(IntPtr box, double vsize, IntPtr duration, double vorigin, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tint_time_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintTimeBoxes(IntPtr temp, IntPtr duration, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tint_value_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintValueBins(IntPtr temp, int vsize, int vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tint_value_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintValueBoxes(IntPtr temp, int vsize, int vorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tint_value_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintValueSplit(IntPtr temp, int vsize, int vorigin, IntPtr bins, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tint_value_time_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintValueTimeBoxes(IntPtr temp, int vsize, IntPtr duration, int vorigin, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tint_value_time_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintValueTimeSplit(IntPtr temp, int size, IntPtr duration, int vorigin, long torigin, IntPtr value_bins, IntPtr time_bins, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tintbox_time_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintboxTimeTiles(IntPtr box, IntPtr duration, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tintbox_value_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintboxValueTiles(IntPtr box, int xsize, int xorigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tintbox_value_time_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintboxValueTimeTiles(IntPtr box, int xsize, IntPtr duration, int xorigin, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temptype_subtype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemptypeSubtype(int subtype); + + [LibraryImport(DllPath, EntryPoint = "temptype_subtype_all", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemptypeSubtypeAll(int subtype); + + [LibraryImport(DllPath, EntryPoint = "tempsubtype_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TempsubtypeName(int subtype); + + [LibraryImport(DllPath, EntryPoint = "tempsubtype_from_string", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TempsubtypeFromString(string str, IntPtr subtype); + + [LibraryImport(DllPath, EntryPoint = "meosoper_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosoperName(int oper); + + [LibraryImport(DllPath, EntryPoint = "meosoper_from_string", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosoperFromString(string name); + + [LibraryImport(DllPath, EntryPoint = "interptype_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr InterptypeName(int interp); + + [LibraryImport(DllPath, EntryPoint = "interptype_from_string", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int InterptypeFromString(string interp_str); + + [LibraryImport(DllPath, EntryPoint = "meos_typeof_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosTypeofHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "meostype_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeostypeName(int type); + + [LibraryImport(DllPath, EntryPoint = "temptype_basetype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TemptypeBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "settype_basetype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SettypeBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "spantype_basetype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpantypeBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "spantype_spansettype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpantypeSpansettype(int type); + + [LibraryImport(DllPath, EntryPoint = "spansettype_spantype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpansettypeSpantype(int type); + + [LibraryImport(DllPath, EntryPoint = "basetype_spantype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int BasetypeSpantype(int type); + + [LibraryImport(DllPath, EntryPoint = "basetype_settype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int BasetypeSettype(int type); + + [LibraryImport(DllPath, EntryPoint = "tnumber_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TnumberBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "geo_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeoBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "meos_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool MeosBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "alphanum_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AlphanumBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "alphanum_temptype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AlphanumTemptype(int type); + + [LibraryImport(DllPath, EntryPoint = "time_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimeType(int type); + + [LibraryImport(DllPath, EntryPoint = "set_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "set_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetType(int type); + + [LibraryImport(DllPath, EntryPoint = "numset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumsetType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_numset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureNumsetType(int type); + + [LibraryImport(DllPath, EntryPoint = "timeset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimesetType(int type); + + [LibraryImport(DllPath, EntryPoint = "set_spantype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetSpantype(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_set_spantype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureSetSpantype(int type); + + [LibraryImport(DllPath, EntryPoint = "alphanumset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AlphanumsetType(int settype); + + [LibraryImport(DllPath, EntryPoint = "geoset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeosetType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_geoset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureGeosetType(int type); + + [LibraryImport(DllPath, EntryPoint = "spatialset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpatialsetType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_spatialset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureSpatialsetType(int type); + + [LibraryImport(DllPath, EntryPoint = "pointcloud_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PointcloudBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "pointcloudset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PointcloudsetType(int type); + + [LibraryImport(DllPath, EntryPoint = "tpointcloud_temptype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpointcloudTemptype(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tpointcloud_temptype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTpointcloudTemptype(int type); + + [LibraryImport(DllPath, EntryPoint = "span_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "span_canon_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanCanonBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "span_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanType(int type); + + [LibraryImport(DllPath, EntryPoint = "type_span_bbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TypeSpanBbox(int type); + + [LibraryImport(DllPath, EntryPoint = "type_bboxtype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TypeBboxtype(int type); + + [LibraryImport(DllPath, EntryPoint = "span_tbox_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanTboxType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_span_tbox_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureSpanTboxType(int type); + + [LibraryImport(DllPath, EntryPoint = "numspan_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumspanBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "numspan_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumspanType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_numspan_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureNumspanType(int type); + + [LibraryImport(DllPath, EntryPoint = "timespan_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimespanBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "timespan_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimespanType(int type); + + [LibraryImport(DllPath, EntryPoint = "spanset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpansetType(int type); + + [LibraryImport(DllPath, EntryPoint = "timespanset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimespansetType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_timespanset_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTimespansetType(int type); + + [LibraryImport(DllPath, EntryPoint = "temporal_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalType(int type); + + [LibraryImport(DllPath, EntryPoint = "temporal_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "temptype_supports_linear", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemptypeSupportsLinear(int type); + + [LibraryImport(DllPath, EntryPoint = "basetype_byvalue", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BasetypeByvalue(int type); + + [LibraryImport(DllPath, EntryPoint = "basetype_varlength", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BasetypeVarlength(int type); + + [LibraryImport(DllPath, EntryPoint = "meostype_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short MeostypeLength(int type); + + [LibraryImport(DllPath, EntryPoint = "talphanum_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TalphanumType(int type); + + [LibraryImport(DllPath, EntryPoint = "talpha_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TalphaType(int type); + + [LibraryImport(DllPath, EntryPoint = "tnumber_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TnumberType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tnumber_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTnumberType(int type); + + [LibraryImport(DllPath, EntryPoint = "torder_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TorderType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_torder_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTorderType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tnumber_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTnumberBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "tnumber_spantype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TnumberSpantype(int type); + + [LibraryImport(DllPath, EntryPoint = "spatial_basetype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpatialBasetype(int type); + + [LibraryImport(DllPath, EntryPoint = "tspatial_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TspatialType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tspatial_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTspatialType(int type); + + [LibraryImport(DllPath, EntryPoint = "tpoint_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpointType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tpoint_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTpointType(int type); + + [LibraryImport(DllPath, EntryPoint = "tgeo_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TgeoType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tgeo_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTgeoType(int type); + + [LibraryImport(DllPath, EntryPoint = "tspatial_body_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TspatialBodyType(int type); + + [LibraryImport(DllPath, EntryPoint = "tgeo_type_all", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TgeoTypeAll(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tgeo_type_all", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTgeoTypeAll(int type); + + [LibraryImport(DllPath, EntryPoint = "tgeometry_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TgeometryType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tgeometry_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTgeometryType(int type); + + [LibraryImport(DllPath, EntryPoint = "tgeodetic_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TgeodeticType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tgeodetic_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTgeodeticType(int type); + + [LibraryImport(DllPath, EntryPoint = "ensure_tnumber_tpoint_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureTnumberTpointType(int type); + + [LibraryImport(DllPath, EntryPoint = "box3d_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Box3dMake(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, int srid); + + [LibraryImport(DllPath, EntryPoint = "box3d_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Box3dIn(string str); + + [LibraryImport(DllPath, EntryPoint = "box3d_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string Box3dOut(IntPtr box, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "gbox_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GboxMake([MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool hasm, [MarshalAs(UnmanagedType.U1)] bool geodetic, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, double mmin, double mmax); + + [LibraryImport(DllPath, EntryPoint = "gbox_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GboxIn(string str); + + [LibraryImport(DllPath, EntryPoint = "gbox_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string GboxOut(IntPtr box, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "geo_as_ewkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoAsEwkb(IntPtr gs, string endian, IntPtr size); + + [LibraryImport(DllPath, EntryPoint = "geo_as_ewkt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string GeoAsEwkt(IntPtr gs, int precision); + + [LibraryImport(DllPath, EntryPoint = "geo_as_geojson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string GeoAsGeojson(IntPtr gs, int option, int precision, string srs); + + [LibraryImport(DllPath, EntryPoint = "geo_as_hexewkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string GeoAsHexewkb(IntPtr gs, string endian); + + [LibraryImport(DllPath, EntryPoint = "geo_as_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string GeoAsText(IntPtr gs, int precision); + + [LibraryImport(DllPath, EntryPoint = "geo_from_ewkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoFromEwkb(IntPtr wkb, ulong wkb_size, int srid); + + [LibraryImport(DllPath, EntryPoint = "geo_from_geojson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoFromGeojson(string geojson); + + [LibraryImport(DllPath, EntryPoint = "geo_from_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoFromText(string wkt, int srid); + + [LibraryImport(DllPath, EntryPoint = "geo_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string GeoOut(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geog_from_hexewkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeogFromHexewkb(string wkt); + + [LibraryImport(DllPath, EntryPoint = "geog_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeogIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "geom_from_hexewkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomFromHexewkb(string wkt); + + [LibraryImport(DllPath, EntryPoint = "geom_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "geo_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoCopy(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geogpoint_make2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeogpointMake2d(int srid, double x, double y); + + [LibraryImport(DllPath, EntryPoint = "geogpoint_make3dz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeogpointMake3dz(int srid, double x, double y, double z); + + [LibraryImport(DllPath, EntryPoint = "geompoint_make2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeompointMake2d(int srid, double x, double y); + + [LibraryImport(DllPath, EntryPoint = "geompoint_make3dz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeompointMake3dz(int srid, double x, double y, double z); + + [LibraryImport(DllPath, EntryPoint = "geom_to_geog", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomToGeog(IntPtr geom); + + [LibraryImport(DllPath, EntryPoint = "geog_to_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeogToGeom(IntPtr geog); + + [LibraryImport(DllPath, EntryPoint = "geo_is_empty", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeoIsEmpty(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geo_is_unitary", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeoIsUnitary(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geo_typename", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoTypename(int type); + + [LibraryImport(DllPath, EntryPoint = "geog_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeogArea(IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); + + [LibraryImport(DllPath, EntryPoint = "geog_centroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeogCentroid(IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); + + [LibraryImport(DllPath, EntryPoint = "geog_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeogLength(IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); + + [LibraryImport(DllPath, EntryPoint = "geog_perimeter", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeogPerimeter(IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); + + [LibraryImport(DllPath, EntryPoint = "geom_azimuth", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomAzimuth(IntPtr gs1, IntPtr gs2, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "geom_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeomLength(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geom_perimeter", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeomPerimeter(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "line_numpoints", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int LineNumpoints(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "line_point_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr LinePointN(IntPtr geom, int n); + + [LibraryImport(DllPath, EntryPoint = "geo_reverse", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoReverse(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geo_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoRound(IntPtr gs, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "geo_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoSetSrid(IntPtr gs, int srid); + + [LibraryImport(DllPath, EntryPoint = "geo_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int GeoSrid(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geo_transform", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoTransform(IntPtr geom, int srid_to); + + [LibraryImport(DllPath, EntryPoint = "geo_transform_pipeline", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoTransformPipeline(IntPtr gs, string pipeline, int srid_to, [MarshalAs(UnmanagedType.U1)] bool is_forward); + + [LibraryImport(DllPath, EntryPoint = "geo_collect_garray", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoCollectGarray(IntPtr gsarr, int count); + + [LibraryImport(DllPath, EntryPoint = "geo_makeline_garray", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoMakelineGarray(IntPtr gsarr, int count); + + [LibraryImport(DllPath, EntryPoint = "geo_num_points", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int GeoNumPoints(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geo_num_geos", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int GeoNumGeos(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geo_geo_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoGeoN(IntPtr geom, int n); + + [LibraryImport(DllPath, EntryPoint = "geo_pointarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoPointarr(IntPtr gs, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "geo_points", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoPoints(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geom_array_union", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomArrayUnion(IntPtr gsarr, int count); + + [LibraryImport(DllPath, EntryPoint = "geog_array_union", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeogArrayUnion(IntPtr gsarr, int count); + + [LibraryImport(DllPath, EntryPoint = "geom_boundary", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomBoundary(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geom_buffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomBuffer(IntPtr gs, double size, string @params); + + [LibraryImport(DllPath, EntryPoint = "geom_centroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomCentroid(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geom_convex_hull", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomConvexHull(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geom_difference2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomDifference2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_is_simple", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomIsSimple(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geom_intersection2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomIntersection2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_intersection2d_coll", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomIntersection2dColl(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_min_bounding_radius", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomMinBoundingRadius(IntPtr geom, IntPtr radius); + + [LibraryImport(DllPath, EntryPoint = "geom_oriented_envelope", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomOrientedEnvelope(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geom_shortestline2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomShortestline2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_shortestline3d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomShortestline3d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_unary_union", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomUnaryUnion(IntPtr gs, double prec); + + [LibraryImport(DllPath, EntryPoint = "line_interpolate_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr LineInterpolatePoint(IntPtr gs, double distance_fraction, [MarshalAs(UnmanagedType.U1)] bool repeat); + + [LibraryImport(DllPath, EntryPoint = "line_locate_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double LineLocatePoint(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "line_substring", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr LineSubstring(IntPtr gs, double from, double to); + + [LibraryImport(DllPath, EntryPoint = "geog_dwithin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeogDwithin(IntPtr g1, IntPtr g2, double tolerance, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); + + [LibraryImport(DllPath, EntryPoint = "geog_intersects", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeogIntersects(IntPtr gs1, IntPtr gs2, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); + + [LibraryImport(DllPath, EntryPoint = "geom_contains", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomContains(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_covers", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomCovers(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_disjoint2d", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomDisjoint2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_dwithin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomDwithin(IntPtr gs1, IntPtr gs2, double tolerance); + + [LibraryImport(DllPath, EntryPoint = "geom_dwithin2d", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomDwithin2d(IntPtr gs1, IntPtr gs2, double tolerance); + + [LibraryImport(DllPath, EntryPoint = "geom_dwithin3d", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomDwithin3d(IntPtr gs1, IntPtr gs2, double tolerance); + + [LibraryImport(DllPath, EntryPoint = "geom_intersects", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomIntersects(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_intersects2d", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomIntersects2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_intersects3d", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomIntersects3d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_relate", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string GeomRelate(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_relate_pattern", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomRelatePattern(IntPtr gs1, IntPtr gs2, string patt); + + [LibraryImport(DllPath, EntryPoint = "geom_touches", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomTouches(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geo_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoStboxes(IntPtr gs, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "geo_split_each_n_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoSplitEachNStboxes(IntPtr gs, int elem_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "geo_split_n_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoSplitNStboxes(IntPtr gs, int box_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "geog_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeogDistance(IntPtr g1, IntPtr g2); + + [LibraryImport(DllPath, EntryPoint = "geom_distance2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeomDistance2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_max_distance2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeomMaxDistance2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geom_distance3d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double GeomDistance3d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geo_equals", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int GeoEquals(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geo_same", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeoSame(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geogset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeogsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "geomset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "spatialset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SpatialsetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "spatialset_as_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SpatialsetAsText(IntPtr set, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "spatialset_as_ewkt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SpatialsetAsEwkt(IntPtr set, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "geoset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeosetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "geo_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoToSet(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geoset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeosetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "geoset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeosetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "geoset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeosetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "geoset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeosetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "contained_geo_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedGeoSet(IntPtr gs, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_set_geo", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetGeo(IntPtr s, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geo_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoUnionTransfn(IntPtr state, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "intersection_geo_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionGeoSet(IntPtr gs, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetGeo(IntPtr s, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "minus_geo_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusGeoSet(IntPtr gs, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_set_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetGeo(IntPtr s, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "union_geo_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionGeoSet(IntPtr gs, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_set_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetGeo(IntPtr s, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "spatialset_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpatialsetSetSrid(IntPtr s, int srid); + + [LibraryImport(DllPath, EntryPoint = "spatialset_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpatialsetSrid(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "spatialset_transform", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpatialsetTransform(IntPtr s, int srid); + + [LibraryImport(DllPath, EntryPoint = "spatialset_transform_pipeline", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpatialsetTransformPipeline(IntPtr s, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); + + [LibraryImport(DllPath, EntryPoint = "stbox_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string StboxAsHexwkb(IntPtr box, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "stbox_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxAsWkb(IntPtr box, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "stbox_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "stbox_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "stbox_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxIn(string str); + + [LibraryImport(DllPath, EntryPoint = "stbox_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string StboxOut(IntPtr box, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "geo_timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoTimestamptzToStbox(IntPtr gs, long t); + + [LibraryImport(DllPath, EntryPoint = "geo_tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoTstzspanToStbox(IntPtr gs, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "stbox_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxCopy(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxMake([MarshalAs(UnmanagedType.U1)] bool hasx, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "geo_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoToStbox(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "spatialset_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpatialsetToStbox(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "stbox_to_box3d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxToBox3d(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_to_gbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxToGbox(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_to_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxToGeo(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_to_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxToTstzspan(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzToStbox(long t); + + [LibraryImport(DllPath, EntryPoint = "tstzset_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzsetToStbox(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspanToStbox(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TstzspansetToStbox(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "stbox_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double StboxArea(IntPtr box, [MarshalAs(UnmanagedType.U1)] bool spheroid); + + [LibraryImport(DllPath, EntryPoint = "stbox_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint StboxHash(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong StboxHashExtended(IntPtr box, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "stbox_hast", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxHast(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_hasx", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxHasx(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_hasz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxHasz(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_isgeodetic", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxIsgeodetic(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_perimeter", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double StboxPerimeter(IntPtr box, [MarshalAs(UnmanagedType.U1)] bool spheroid); + + [LibraryImport(DllPath, EntryPoint = "stbox_tmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxTmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_tmax_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxTmaxInc(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_tmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxTmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_tmin_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxTminInc(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_volume", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double StboxVolume(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_xmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxXmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_xmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxXmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_ymax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxYmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_ymin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxYmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_zmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxZmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_zmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxZmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_expand_space", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxExpandSpace(IntPtr box, double d); + + [LibraryImport(DllPath, EntryPoint = "stbox_expand_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxExpandTime(IntPtr box, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "stbox_get_space", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxGetSpace(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_quad_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxQuadSplit(IntPtr box, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "stbox_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxRound(IntPtr box, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "stbox_shift_scale_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxShiftScaleTime(IntPtr box, IntPtr shift, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "stboxarr_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxarrRound(IntPtr boxarr, int count, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "stbox_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxSetSrid(IntPtr box, int srid); + + [LibraryImport(DllPath, EntryPoint = "stbox_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int StboxSrid(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "stbox_transform", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxTransform(IntPtr box, int srid); + + [LibraryImport(DllPath, EntryPoint = "stbox_transform_pipeline", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxTransformPipeline(IntPtr box, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); + + [LibraryImport(DllPath, EntryPoint = "adjacent_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "contained_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "contains_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "same_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "above_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AboveStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "after_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "back_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BackStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "before_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "below_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BelowStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "front_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool FrontStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "left_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overabove_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OveraboveStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overafter_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overback_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbackStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overbefore_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overbelow_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbelowStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overfront_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverfrontStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overleft_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overright_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "right_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "union_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionStboxStbox(IntPtr box1, IntPtr box2, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "intersection_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int StboxCmp(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxEq(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxGe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxGt(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxLe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxLt(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxNe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tspatial_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TspatialOut(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tgeogpoint_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeogpoint_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeography_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyFromMfjson(string mfjson); + + [LibraryImport(DllPath, EntryPoint = "tgeography_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeometry_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeometry_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeompoint_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeompoint_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tspatial_as_ewkt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TspatialAsEwkt(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tspatial_as_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TspatialAsText(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tgeo_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoFromBaseTemp(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeoinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoinstMake(IntPtr gs, long t); + + [LibraryImport(DllPath, EntryPoint = "tgeoseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqFromBaseTstzset(IntPtr gs, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tgeoseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqFromBaseTstzspan(IntPtr gs, IntPtr s, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeoseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqsetFromBaseTstzspanset(IntPtr gs, IntPtr ss, int interp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointFromBaseTemp(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpointinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointinstMake(IntPtr gs, long t); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqFromBaseTstzset(IntPtr gs, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqFromBaseTstzspan(IntPtr gs, IntPtr s, int interp); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_make_coords", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqMakeCoords(IntPtr xcoords, IntPtr ycoords, IntPtr zcoords, IntPtr times, int count, int srid, [MarshalAs(UnmanagedType.U1)] bool geodetic, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "tpointseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqsetFromBaseTstzspanset(IntPtr gs, IntPtr ss, int interp); + + [LibraryImport(DllPath, EntryPoint = "box3d_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Box3dToStbox(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "gbox_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GboxToStbox(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "geomeas_to_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomeasToTpoint(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tgeogpoint_to_tgeography", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointToTgeography(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeography_to_tgeogpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyToTgeogpoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeography_to_tgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyToTgeometry(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeometry_to_tgeography", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryToTgeography(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeometry_to_tgeompoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryToTgeompoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeompoint_to_tgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointToTgeometry(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_as_mvtgeom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointAsMvtgeom(IntPtr temp, IntPtr bounds, int extent, int buffer, [MarshalAs(UnmanagedType.U1)] bool clip_geom); + + [LibraryImport(DllPath, EntryPoint = "tpoint_tfloat_to_geomeas", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpointTfloatToGeomeas(IntPtr tpoint, IntPtr measure, [MarshalAs(UnmanagedType.U1)] bool segmentize, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tspatial_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TspatialToStbox(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "bearing_point_point", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BearingPointPoint(IntPtr gs1, IntPtr gs2, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "bearing_tpoint_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BearingTpointPoint(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool invert); + + [LibraryImport(DllPath, EntryPoint = "bearing_tpoint_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BearingTpointTpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tgeo_centroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoCentroid(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeo_convex_hull", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoConvexHull(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeo_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeo_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeo_traversed_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoTraversedArea(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool unary_union); + + [LibraryImport(DllPath, EntryPoint = "tgeo_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TgeoValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tgeo_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TgeoValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tgeo_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tpoint_angular_difference", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointAngularDifference(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_azimuth", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointAzimuth(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_cumulative_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointCumulativeLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_direction", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpointDirection(IntPtr temp, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpoint_get_x", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointGetX(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_get_y", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointGetY(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_get_z", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointGetZ(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_is_simple", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpointIsSimple(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TpointLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_speed", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointSpeed(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpoint_trajectory", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointTrajectory(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool unary_union); + + [LibraryImport(DllPath, EntryPoint = "tpoint_twcentroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointTwcentroid(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeo_affine", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoAffine(IntPtr temp, IntPtr a); + + [LibraryImport(DllPath, EntryPoint = "tgeo_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoScale(IntPtr temp, IntPtr scale, IntPtr sorigin); + + [LibraryImport(DllPath, EntryPoint = "tpoint_make_simple", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointMakeSimple(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tspatial_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TspatialSrid(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tspatial_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TspatialSetSrid(IntPtr temp, int srid); + + [LibraryImport(DllPath, EntryPoint = "tspatial_transform", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TspatialTransform(IntPtr temp, int srid); + + [LibraryImport(DllPath, EntryPoint = "tspatial_transform_pipeline", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TspatialTransformPipeline(IntPtr temp, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); + + [LibraryImport(DllPath, EntryPoint = "tgeo_at_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoAtGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tgeo_at_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoAtStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tgeo_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoAtValue(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tgeo_minus_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoMinusGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tgeo_minus_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoMinusStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tgeo_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoMinusValue(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tpoint_at_elevation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointAtElevation(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tpoint_at_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointAtGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tpoint_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointAtValue(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tpoint_minus_elevation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointMinusElevation(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tpoint_minus_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointMinusGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tpoint_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointMinusValue(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "always_eq_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tne_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tgeo_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoStboxes(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tgeo_space_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoSpaceBoxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tgeo_space_time_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoSpaceTimeBoxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tgeo_split_each_n_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoSplitEachNStboxes(IntPtr temp, int elem_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tgeo_split_n_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoSplitNStboxes(IntPtr temp, int box_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "adjacent_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contained_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contained_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "contained_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contains_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contains_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "contains_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "same_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "same_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "same_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "above_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AboveStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "above_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AboveTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "above_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AboveTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "after_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "after_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "after_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "back_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BackStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "back_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BackTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "back_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BackTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "before_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "before_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "before_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "below_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BelowStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "below_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BelowTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "below_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BelowTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "front_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool FrontStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "front_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool FrontTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "front_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool FrontTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "left_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "left_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "left_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overabove_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OveraboveStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overabove_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OveraboveTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overabove_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OveraboveTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overafter_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overafter_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overafter_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overback_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbackStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overback_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbackTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overback_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbackTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overbefore_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overbefore_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overbefore_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overbelow_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbelowStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overbelow_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbelowTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overbelow_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbelowTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overfront_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverfrontStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overfront_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverfrontTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overfront_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverfrontTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overleft_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overleft_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overleft_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overright_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overright_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overright_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "right_stbox_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightStboxTspatial(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "right_tspatial_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTspatialStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "right_tspatial_tspatial", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTspatialTspatial(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "acontains_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "acontains_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "acontains_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "acovers_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "acovers_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "acovers_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdisjointGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdisjointTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdisjointTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "adwithin_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdwithinGeoTgeo(IntPtr gs, IntPtr temp, double dist); + + [LibraryImport(DllPath, EntryPoint = "adwithin_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdwithinTgeoGeo(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "adwithin_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdwithinTgeoTgeo(IntPtr temp1, IntPtr temp2, double dist); + + [LibraryImport(DllPath, EntryPoint = "aintersects_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AintersectsGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "aintersects_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AintersectsTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "aintersects_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AintersectsTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "atouches_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "atouches_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "atouches_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "atouches_tpoint_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesTpointGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "atouches_geo_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesGeoTpoint(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "econtains_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcontainsGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "econtains_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcontainsTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "econtains_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcontainsTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ecovers_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ecovers_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "ecovers_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "edisjoint_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdisjointGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "edisjoint_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdisjointTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "edisjoint_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdisjointTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "edwithin_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdwithinGeoTgeo(IntPtr gs, IntPtr temp, double dist); + + [LibraryImport(DllPath, EntryPoint = "edwithin_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdwithinTgeoGeo(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "edwithin_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdwithinTgeoTgeo(IntPtr temp1, IntPtr temp2, double dist); + + [LibraryImport(DllPath, EntryPoint = "eintersects_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EintersectsGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "eintersects_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EintersectsTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "eintersects_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EintersectsTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "etouches_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "etouches_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "etouches_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "etouches_tpoint_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesTpointGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "etouches_geo_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesGeoTpoint(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcontains_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontainsGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcontains_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontainsTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tcontains_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontainsTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tcovers_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcoversGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcovers_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcoversTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tcovers_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcoversTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tdwithin_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdwithinGeoTgeo(IntPtr gs, IntPtr temp, double dist); + + [LibraryImport(DllPath, EntryPoint = "tdwithin_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdwithinTgeoGeo(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "tdwithin_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdwithinTgeoTgeo(IntPtr temp1, IntPtr temp2, double dist); + + [LibraryImport(DllPath, EntryPoint = "tintersects_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tintersects_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tintersects_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ttouches_geo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesGeoTgeo(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttouches_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "ttouches_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "edwithin_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr EdwithinTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "adwithin_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AdwithinTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "eintersects_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr EintersectsTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "aintersects_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AintersectsTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "etouches_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr EtouchesTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "atouches_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AtouchesTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "edisjoint_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr EdisjointTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AdisjointTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tdwithin_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdwithinTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist, IntPtr count, IntPtr periods); + + [LibraryImport(DllPath, EntryPoint = "tintersects_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count, IntPtr periods); + + [LibraryImport(DllPath, EntryPoint = "ttouches_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count, IntPtr periods); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count, IntPtr periods); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_stbox_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadStboxGeo(IntPtr box, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nad_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadStboxStbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_spatial_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double StboxSpatialDistance(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "nad_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nad_tgeo_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTgeoStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nai_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nai_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tgeo_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTgeoGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTgeoTgeo(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "mindistance_tgeo_tgeo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MindistanceTgeoTgeo(IntPtr temp1, IntPtr temp2, double threshold); + + [LibraryImport(DllPath, EntryPoint = "mindistance_tgeoarr_tgeoarr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MindistanceTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2); + + [LibraryImport(DllPath, EntryPoint = "tpoint_tcentroid_finalfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointTcentroidFinalfn(IntPtr state); + + [LibraryImport(DllPath, EntryPoint = "tpoint_tcentroid_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointTcentroidTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tspatial_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TspatialExtentTransfn(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "stbox_get_space_tile", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxGetSpaceTile(IntPtr point, double xsize, double ysize, double zsize, IntPtr sorigin); + + [LibraryImport(DllPath, EntryPoint = "stbox_get_space_time_tile", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxGetSpaceTimeTile(IntPtr point, long t, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin); + + [LibraryImport(DllPath, EntryPoint = "stbox_get_time_tile", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxGetTimeTile(long t, IntPtr duration, long torigin); + + [LibraryImport(DllPath, EntryPoint = "stbox_space_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxSpaceTiles(IntPtr bounds, double xsize, double ysize, double zsize, IntPtr sorigin, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "stbox_space_time_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxSpaceTimeTiles(IntPtr bounds, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "stbox_time_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxTimeTiles(IntPtr bounds, IntPtr duration, long torigin, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tgeo_space_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoSpaceSplit(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tgeo_space_time_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoSpaceTimeSplit(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "geo_cluster_kmeans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoClusterKmeans(IntPtr geoms, uint ngeoms, uint k, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "geo_cluster_dbscan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoClusterDbscan(IntPtr geoms, uint ngeoms, double tolerance, int minpoints, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "geo_cluster_intersecting", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoClusterIntersecting(IntPtr geoms, uint ngeoms, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "geo_cluster_within", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoClusterWithin(IntPtr geoms, uint ngeoms, double tolerance, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_as_ewkt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string CbufferAsEwkt(IntPtr cb, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string CbufferAsHexwkb(IntPtr cb, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_as_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string CbufferAsText(IntPtr cb, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferAsWkb(IntPtr cb, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferIn(string str); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string CbufferOut(IntPtr cb, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferCopy(IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferMake(IntPtr point, double radius); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_to_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferToGeom(IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferToStbox(IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "cbufferarr_to_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferarrToGeom(IntPtr cbarr, int count); + + [LibraryImport(DllPath, EntryPoint = "geom_to_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomToCbuffer(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint CbufferHash(IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong CbufferHashExtended(IntPtr cb, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferPoint(IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_radius", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double CbufferRadius(IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferRound(IntPtr cb, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "cbufferarr_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferarrRound(IntPtr cbarr, int count, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferSetSrid(IntPtr cb, int srid); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CbufferSrid(IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_transform", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferTransform(IntPtr cb, int srid); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_transform_pipeline", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferTransformPipeline(IntPtr cb, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); + + [LibraryImport(DllPath, EntryPoint = "contains_cbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int ContainsCbufferCbuffer(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "covers_cbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CoversCbufferCbuffer(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "disjoint_cbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DisjointCbufferCbuffer(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "dwithin_cbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DwithinCbufferCbuffer(IntPtr cb1, IntPtr cb2, double dist); + + [LibraryImport(DllPath, EntryPoint = "intersects_cbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int IntersectsCbufferCbuffer(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "touches_cbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TouchesCbufferCbuffer(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferTstzspanToStbox(IntPtr cb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferTimestamptzToStbox(IntPtr cb, long t); + + [LibraryImport(DllPath, EntryPoint = "distance_cbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceCbufferCbuffer(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "distance_cbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceCbufferGeo(IntPtr cb, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "distance_cbuffer_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistanceCbufferStbox(IntPtr cb, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_cbuffer_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadCbufferStbox(IntPtr cb, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CbufferCmp(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbufferEq(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbufferGe(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbufferGt(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbufferLe(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbufferLt(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbufferNe(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_nsame", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbufferNsame(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_same", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbufferSame(IntPtr cb1, IntPtr cb2); + + [LibraryImport(DllPath, EntryPoint = "cbufferset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbuffersetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "cbufferset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string CbuffersetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "cbufferset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbuffersetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferToSet(IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "cbufferset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbuffersetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "cbufferset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbuffersetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "cbufferset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool CbuffersetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "cbufferset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbuffersetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "cbuffer_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CbufferUnionTransfn(IntPtr state, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "contained_cbuffer_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedCbufferSet(IntPtr cb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_set_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetCbuffer(IntPtr s, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "intersection_cbuffer_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionCbufferSet(IntPtr cb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetCbuffer(IntPtr s, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "minus_cbuffer_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusCbufferSet(IntPtr cb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_set_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetCbuffer(IntPtr s, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "union_cbuffer_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionCbufferSet(IntPtr cb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_set_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetCbuffer(IntPtr s, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferFromMfjson(string mfjson); + + [LibraryImport(DllPath, EntryPoint = "tcbufferinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferinstMake(IntPtr cb, long t); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferMake(IntPtr tpoint, IntPtr tfloat); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferFromBaseTemp(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcbufferseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferseqFromBaseTstzset(IntPtr cb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tcbufferseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferseqFromBaseTstzspan(IntPtr cb, IntPtr s, int interp); + + [LibraryImport(DllPath, EntryPoint = "tcbufferseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferseqsetFromBaseTstzspanset(IntPtr cb, IntPtr ss, int interp); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_points", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferPoints(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_radius", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferRadius(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_traversed_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferTraversedArea(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool unary_union); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_convex_hull", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferConvexHull(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TcbufferValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TcbufferValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_to_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferToTfloat(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_to_tgeompoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferToTgeompoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeometry_to_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryToTcbuffer(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferExpand(IntPtr temp, double dist); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_at_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferAtCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_at_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferAtGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_at_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferAtStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_minus_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferMinusCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_minus_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferMinusGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tcbuffer_minus_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcbufferMinusStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "nad_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nad_tcbuffer_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTcbufferStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "mindistance_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MindistanceTcbufferTcbuffer(IntPtr temp1, IntPtr temp2, double threshold); + + [LibraryImport(DllPath, EntryPoint = "nai_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "nai_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nai_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tne_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "acontains_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "acontains_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsGeoTcbuffer(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "acontains_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "acontains_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "acontains_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "acovers_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "acovers_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversGeoTcbuffer(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "acovers_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "acovers_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "acovers_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdisjointTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdisjointTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdisjointTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "adwithin_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdwithinTcbufferGeo(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "adwithin_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdwithinTcbufferCbuffer(IntPtr temp, IntPtr cb, double dist); + + [LibraryImport(DllPath, EntryPoint = "adwithin_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdwithinTcbufferTcbuffer(IntPtr temp1, IntPtr temp2, double dist); + + [LibraryImport(DllPath, EntryPoint = "aintersects_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AintersectsTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "aintersects_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AintersectsTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "aintersects_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AintersectsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "atouches_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "atouches_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "atouches_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "econtains_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcontainsCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "econtains_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcontainsTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "econtains_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcontainsTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "econtains_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcontainsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ecovers_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ecovers_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversGeoTcbuffer(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ecovers_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "ecovers_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "ecovers_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "edisjoint_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdisjointTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "edisjoint_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdisjointTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "edwithin_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdwithinTcbufferGeo(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "edwithin_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdwithinTcbufferCbuffer(IntPtr temp, IntPtr cb, double dist); + + [LibraryImport(DllPath, EntryPoint = "edwithin_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdwithinTcbufferTcbuffer(IntPtr temp1, IntPtr temp2, double dist); + + [LibraryImport(DllPath, EntryPoint = "eintersects_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EintersectsTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "eintersects_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EintersectsTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "eintersects_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EintersectsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "etouches_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "etouches_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "etouches_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tcontains_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontainsCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcontains_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontainsGeoTcbuffer(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcontains_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontainsTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tcontains_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontainsTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tcontains_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontainsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tcovers_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcoversCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcovers_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcoversGeoTcbuffer(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcovers_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcoversTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tcovers_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcoversTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tcovers_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcoversTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tdwithin_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdwithinGeoTcbuffer(IntPtr gs, IntPtr temp, double dist); + + [LibraryImport(DllPath, EntryPoint = "tdwithin_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdwithinTcbufferGeo(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "tdwithin_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdwithinTcbufferCbuffer(IntPtr temp, IntPtr cb, double dist); + + [LibraryImport(DllPath, EntryPoint = "tdwithin_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdwithinTcbufferTcbuffer(IntPtr temp1, IntPtr temp2, double dist); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointGeoTcbuffer(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tdisjoint_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdisjointTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tintersects_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tintersects_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsGeoTcbuffer(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tintersects_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tintersects_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "tintersects_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintersectsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ttouches_geo_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesGeoTcbuffer(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttouches_tcbuffer_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesTcbufferGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "ttouches_cbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesCbufferTcbuffer(IntPtr cb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttouches_tcbuffer_cbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesTcbufferCbuffer(IntPtr temp, IntPtr cb); + + [LibraryImport(DllPath, EntryPoint = "ttouches_tcbuffer_tcbuffer", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtouchesTcbufferTcbuffer(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tcellindex_get_resolution", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcellindexGetResolution(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcellindex_is_valid_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcellindexIsValidCell(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcellindex_cell_to_parent", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcellindexCellToParent(IntPtr temp, int resolution); + + [LibraryImport(DllPath, EntryPoint = "tcellindex_cell_to_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcellindexCellToPoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcellindex_cell_to_boundary", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcellindexCellToBoundary(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tcellindex_cell_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcellindexCellArea(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "h3index_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong H3indexIn(string str); + + [LibraryImport(DllPath, EntryPoint = "h3index_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string H3indexOut(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3_is_valid_cell", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3IsValidCell(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3_is_valid_directed_edge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3IsValidDirectedEdge(ulong edge); + + [LibraryImport(DllPath, EntryPoint = "h3_is_valid_vertex", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3IsValidVertex(ulong vertex); + + [LibraryImport(DllPath, EntryPoint = "h3index_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3indexEq(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "h3index_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3indexNe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "h3index_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3indexLt(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "h3index_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3indexLe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "h3index_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3indexGt(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "h3index_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool H3indexGe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "h3index_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int H3indexCmp(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "h3index_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint H3indexHash(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3_grid_disk", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3GridDisk(ulong origin, int k); + + [LibraryImport(DllPath, EntryPoint = "h3_cell_to_children", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3CellToChildren(ulong origin, int childRes); + + [LibraryImport(DllPath, EntryPoint = "h3_compact_cells", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3CompactCells(IntPtr cells); + + [LibraryImport(DllPath, EntryPoint = "h3_uncompact_cells", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3UncompactCells(IntPtr cells, int res); + + [LibraryImport(DllPath, EntryPoint = "h3_grid_ring", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3GridRing(ulong origin, int k); + + [LibraryImport(DllPath, EntryPoint = "h3_grid_path_cells", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3GridPathCells(ulong start, ulong end); + + [LibraryImport(DllPath, EntryPoint = "h3_origin_to_directed_edges", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3OriginToDirectedEdges(ulong origin); + + [LibraryImport(DllPath, EntryPoint = "h3_cell_to_vertexes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3CellToVertexes(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3_get_icosahedron_faces", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3GetIcosahedronFaces(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3index_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong H3indexFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "h3index_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong H3indexFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "h3index_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3indexAsWkb(ulong cell, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "h3index_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string H3indexAsHexwkb(ulong cell, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "h3index_get_resolution", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint H3indexGetResolution(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3index_cell_to_parent", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong H3indexCellToParent(ulong cell, uint parent_resolution); + + [LibraryImport(DllPath, EntryPoint = "h3index_cell_to_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3indexCellToPoint(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3index_cell_to_boundary", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3indexCellToBoundary(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3index_cell_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double H3indexCellArea(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "th3index_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexIn(string str); + + [LibraryImport(DllPath, EntryPoint = "th3indexinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "th3indexseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "th3indexseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "th3index_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexMake(ulong value, long t); + + [LibraryImport(DllPath, EntryPoint = "th3indexinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexinstMake(ulong value, long t); + + [LibraryImport(DllPath, EntryPoint = "th3indexseq_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexseqMake(IntPtr values, IntPtr times, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "th3indexseqset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexseqsetMake(IntPtr sequences, int count); + + [LibraryImport(DllPath, EntryPoint = "th3index_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Th3indexStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Th3indexEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool Th3indexValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "th3index_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "th3index_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool Th3indexValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tbigint_to_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintToTh3index(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_to_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexToTbigint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_h3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqH3indexTh3index(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_th3index_h3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTh3indexH3index(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_h3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeH3indexTh3index(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_th3index_h3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTh3indexH3index(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "always_eq_h3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqH3indexTh3index(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_th3index_h3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTh3indexH3index(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "always_ne_h3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeH3indexTh3index(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_th3index_h3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTh3indexH3index(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_th3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTh3indexTh3index(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_th3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTh3indexTh3index(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_th3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTh3indexTh3index(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_th3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTh3indexTh3index(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_h3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqH3indexTh3index(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_th3index_h3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTh3indexH3index(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "teq_th3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTh3indexTh3index(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tne_h3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneH3indexTh3index(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_th3index_h3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTh3indexH3index(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "tne_th3index_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTh3indexTh3index(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "th3index_get_base_cell_number", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexGetBaseCellNumber(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_is_res_class_iii", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexIsResClassIii(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_is_pentagon", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexIsPentagon(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_cell_to_parent_next", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexCellToParentNext(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_cell_to_center_child", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexCellToCenterChild(IntPtr temp, int resolution); + + [LibraryImport(DllPath, EntryPoint = "th3index_cell_to_center_child_next", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexCellToCenterChildNext(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_cell_to_child_pos", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexCellToChildPos(IntPtr temp, int parent_res); + + [LibraryImport(DllPath, EntryPoint = "th3index_child_pos_to_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexChildPosToCell(IntPtr child_pos, IntPtr parent, int child_res); + + [LibraryImport(DllPath, EntryPoint = "tgeogpoint_to_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointToTh3index(IntPtr temp, int resolution); + + [LibraryImport(DllPath, EntryPoint = "tgeompoint_to_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointToTh3index(IntPtr temp, int resolution); + + [LibraryImport(DllPath, EntryPoint = "th3index_to_tgeogpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexToTgeogpoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_to_tgeompoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexToTgeompoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "h3index_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3indexToSet(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "geo_to_h3index_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong GeoToH3indexCell(IntPtr point, int resolution); + + [LibraryImport(DllPath, EntryPoint = "geo_to_h3index_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoToH3indexSet(IntPtr gs, int resolution); + + [LibraryImport(DllPath, EntryPoint = "h3index_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3indexToStbox(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "h3index_timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3indexTimestamptzToStbox(ulong cell, long t); + + [LibraryImport(DllPath, EntryPoint = "h3index_tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr H3indexTstzspanToStbox(ulong cell, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_h3indexset_th3index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqH3indexsetTh3index(IntPtr cells, IntPtr th3idx); + + [LibraryImport(DllPath, EntryPoint = "th3index_are_neighbor_cells", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexAreNeighborCells(IntPtr origin, IntPtr dest); + + [LibraryImport(DllPath, EntryPoint = "th3index_cells_to_directed_edge", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexCellsToDirectedEdge(IntPtr origin, IntPtr dest); + + [LibraryImport(DllPath, EntryPoint = "th3index_is_valid_directed_edge", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexIsValidDirectedEdge(IntPtr edge); + + [LibraryImport(DllPath, EntryPoint = "th3index_get_directed_edge_origin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexGetDirectedEdgeOrigin(IntPtr edge); + + [LibraryImport(DllPath, EntryPoint = "th3index_get_directed_edge_destination", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexGetDirectedEdgeDestination(IntPtr edge); + + [LibraryImport(DllPath, EntryPoint = "th3index_directed_edge_to_boundary", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexDirectedEdgeToBoundary(IntPtr edge); + + [LibraryImport(DllPath, EntryPoint = "th3index_cell_to_vertex", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexCellToVertex(IntPtr temp, int vertex_num); + + [LibraryImport(DllPath, EntryPoint = "th3index_vertex_to_latlng", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexVertexToLatlng(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_is_valid_vertex", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexIsValidVertex(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "th3index_grid_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexGridDistance(IntPtr origin, IntPtr dest); + + [LibraryImport(DllPath, EntryPoint = "th3index_cell_to_local_ij", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexCellToLocalIj(IntPtr origin, IntPtr cell); + + [LibraryImport(DllPath, EntryPoint = "th3index_local_ij_to_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexLocalIjToCell(IntPtr origin, IntPtr coord); + + [LibraryImport(DllPath, EntryPoint = "th3index_edge_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Th3indexEdgeLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgeogpoint_great_circle_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointGreatCircleDistance(IntPtr a, IntPtr b); + + [LibraryImport(DllPath, EntryPoint = "prng_get_generation_rng", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PrngGetGenerationRng(); + + [LibraryImport(DllPath, EntryPoint = "prng_get_aggregation_rng", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PrngGetAggregationRng(); + + [LibraryImport(DllPath, EntryPoint = "meos_random_double", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MeosRandomDouble(IntPtr rng); + + [LibraryImport(DllPath, EntryPoint = "meos_random_exponential", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MeosRandomExponential(IntPtr rng, double mean); + + [LibraryImport(DllPath, EntryPoint = "meos_random_binomial20_half", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint MeosRandomBinomial20Half(IntPtr rng); + + [LibraryImport(DllPath, EntryPoint = "basetype_in", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BasetypeIn(string str, int type, [MarshalAs(UnmanagedType.U1)] bool end, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "datum_ceil", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DatumCeil(long d); + + [LibraryImport(DllPath, EntryPoint = "datum_degrees", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DatumDegrees(long d, long normalize); + + [LibraryImport(DllPath, EntryPoint = "datum_float_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DatumFloatRound(long value, long size); + + [LibraryImport(DllPath, EntryPoint = "datum_floor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DatumFloor(long d); + + [LibraryImport(DllPath, EntryPoint = "datum_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint DatumHash(long d, int basetype); + + [LibraryImport(DllPath, EntryPoint = "datum_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong DatumHashExtended(long d, int basetype, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "datum_radians", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DatumRadians(long d); + + [LibraryImport(DllPath, EntryPoint = "floatspan_round_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void FloatspanRoundSet(IntPtr s, int maxdd, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "set_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetIn(string str, int basetype); + + [LibraryImport(DllPath, EntryPoint = "set_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "span_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanIn(string str, int spantype); + + [LibraryImport(DllPath, EntryPoint = "span_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SpanOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "spanset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetIn(string str, int spantype); + + [LibraryImport(DllPath, EntryPoint = "spanset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string SpansetOut(IntPtr ss, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "set_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetMake(IntPtr values, int count, int basetype, [MarshalAs(UnmanagedType.U1)] bool order); + + [LibraryImport(DllPath, EntryPoint = "set_make_exp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetMakeExp(IntPtr values, int count, int maxcount, int basetype, [MarshalAs(UnmanagedType.U1)] bool order); + + [LibraryImport(DllPath, EntryPoint = "set_make_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetMakeFree(IntPtr values, int count, int basetype, [MarshalAs(UnmanagedType.U1)] bool order); + + [LibraryImport(DllPath, EntryPoint = "span_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanMake(long lower, long upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int basetype); + + [LibraryImport(DllPath, EntryPoint = "span_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SpanSet(long lower, long upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int basetype, int spantype, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "spanset_make_exp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetMakeExp(IntPtr spans, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool normalize, [MarshalAs(UnmanagedType.U1)] bool order); + + [LibraryImport(DllPath, EntryPoint = "spanset_make_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetMakeFree(IntPtr spans, int count, [MarshalAs(UnmanagedType.U1)] bool normalize, [MarshalAs(UnmanagedType.U1)] bool order); + + [LibraryImport(DllPath, EntryPoint = "set_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetSpan(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "set_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetSpanset(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "value_set_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void ValueSetSpan(long value, int basetype, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "value_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ValueSet(long d, int basetype); + + [LibraryImport(DllPath, EntryPoint = "value_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ValueSpan(long d, int basetype); + + [LibraryImport(DllPath, EntryPoint = "value_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ValueSpanset(long d, int basetype); + + [LibraryImport(DllPath, EntryPoint = "numspan_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NumspanWidth(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "numspanset_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NumspansetWidth(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); + + [LibraryImport(DllPath, EntryPoint = "set_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long SetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "set_mem_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SetMemSize(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "set_set_subspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SetSetSubspan(IntPtr s, int minidx, int maxidx, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "set_set_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SetSetSpan(IntPtr s, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "set_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long SetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "set_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "set_vals", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetVals(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "set_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "spanset_lower", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long SpansetLower(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_mem_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpansetMemSize(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "spanset_sps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetSps(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "spanset_upper", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long SpansetUpper(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "datespan_set_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void DatespanSetTstzspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_set_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void BigintspanSetFloatspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "bigintspan_set_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void BigintspanSetIntspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "floatspan_set_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void FloatspanSetBigintspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "floatspan_set_intspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void FloatspanSetIntspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "intspan_set_bigintspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void IntspanSetBigintspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "intspan_set_floatspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void IntspanSetFloatspan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "numset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumsetShiftScale(IntPtr s, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "numspan_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumspanExpand(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "numspan_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumspanShiftScale(IntPtr s, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "numspanset_shift_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumspansetShiftScale(IntPtr ss, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "set_compact", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SetCompact(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "span_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SpanExpand(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "super_union_span_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SuperUnionSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "spanset_compact", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetCompact(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tbox_expand_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxExpandValue(IntPtr box, long value, int basetyp); + + [LibraryImport(DllPath, EntryPoint = "textcat_textset_text_common", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextcatTextsetTextCommon(IntPtr s, IntPtr txt, [MarshalAs(UnmanagedType.U1)] bool invert); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_set_datespan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TstzspanSetDatespan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "adjacent_span_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "adjacent_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "adjacent_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contained_value_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedValueSet(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_value_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedValueSpan(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contained_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "contains_set_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "contains_span_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "contains_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "ovadj_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OvadjSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "left_set_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "left_span_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "left_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "left_value_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftValueSet(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_value_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftValueSpan(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "left_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "lfnadj_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LfnadjSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "overleft_set_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "overleft_span_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "overleft_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "overleft_value_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftValueSet(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_value_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftValueSpan(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overleft_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "overright_set_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "overright_span_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "overright_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "overright_value_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightValueSet(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_value_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightValueSpan(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "overright_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "right_value_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightValueSet(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_set_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "right_value_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightValueSpan(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "right_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "right_span_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "right_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "bbox_type", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BboxType(int bboxtype); + + [LibraryImport(DllPath, EntryPoint = "bbox_get_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong BboxGetSize(int bboxtype); + + [LibraryImport(DllPath, EntryPoint = "bbox_max_dims", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int BboxMaxDims(int bboxtype); + + [LibraryImport(DllPath, EntryPoint = "temporal_bbox_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalBboxEq(IntPtr box1, IntPtr box2, int temptype); + + [LibraryImport(DllPath, EntryPoint = "temporal_bbox_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TemporalBboxCmp(IntPtr box1, IntPtr box2, int temptype); + + [LibraryImport(DllPath, EntryPoint = "ensure_bbox_temporal_compatible", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureBboxTemporalCompatible(int bboxtype, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ensure_same_index_bboxtype", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureSameIndexBboxtype(int bboxtype1, int bboxtype2); + + [LibraryImport(DllPath, EntryPoint = "ensure_index_join_op", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EnsureIndexJoinOp(int op); + + [LibraryImport(DllPath, EntryPoint = "bbox_temporal_split_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BboxTemporalSplitBoxes(int bboxtype, ulong boxsize, IntPtr temp, int maxboxes, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "span_contains", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanContains(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_contained", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanContained(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_overlaps", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanOverlaps(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_same", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanSame(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_adjacent", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanAdjacent(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_left", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanLeft(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_right", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanRight(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_overleft", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanOverleft(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "span_overright", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpanOverright(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "bbox_union_span_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void BboxUnionSpanSpan(IntPtr s1, IntPtr s2, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "inter_span_span", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool InterSpanSpan(IntPtr s1, IntPtr s2, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "intersection_span_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "intersection_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "intersection_value_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionValueSet(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_value_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionValueSpan(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "mi_span_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MiSpanSpan(IntPtr s1, IntPtr s2, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "minus_set_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "minus_span_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "minus_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "minus_value_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusValueSet(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_value_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusValueSpan(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "union_set_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "union_span_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "union_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "union_value_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionValueSet(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_value_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionValueSpan(long value, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_value_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionValueSpanset(long value, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "distance_set_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSetSet(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_set_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "distance_span_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpanSpan(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "distance_span_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpanValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "distance_spanset_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpansetSpan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "distance_spanset_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpansetSpanset(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "distance_spanset_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpansetValue(IntPtr ss, long value); + + [LibraryImport(DllPath, EntryPoint = "distance_value_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceValueValue(long l, long r, int basetype); + + [LibraryImport(DllPath, EntryPoint = "spanbase_extent_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanbaseExtentTransfn(IntPtr state, long value, int basetype); + + [LibraryImport(DllPath, EntryPoint = "value_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ValueUnionTransfn(IntPtr state, long value, int basetype); + + [LibraryImport(DllPath, EntryPoint = "number_tstzspan_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumberTstzspanToTbox(long d, int basetype, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "number_timestamptz_to_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumberTimestamptzToTbox(long d, int basetype, long t); + + [LibraryImport(DllPath, EntryPoint = "tbox_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TboxSet(IntPtr s, IntPtr p, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "float_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void FloatSetTbox(double d, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "int_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void IntSetTbox(int i, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "number_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void NumberSetTbox(long d, int basetype, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "number_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumberTbox(long value, int basetype); + + [LibraryImport(DllPath, EntryPoint = "numset_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void NumsetSetTbox(IntPtr s, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "numspan_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void NumspanSetTbox(IntPtr span, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TimestamptzSetTbox(long t, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tstzset_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TstzsetSetTbox(IntPtr s, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TstzspanSetTbox(IntPtr s, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tbox_shift_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxShiftScaleValue(IntPtr box, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "tbox_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TboxExpand(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_contains", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxContains(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_contained", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxContained(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_overlaps", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxOverlaps(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_same", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxSame(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_adjacent", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxAdjacent(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_left", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxLeft(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_right", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxRight(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_overleft", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxOverleft(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_overright", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxOverright(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_before", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxBefore(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_after", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxAfter(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_overbefore", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxOverbefore(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tbox_overafter", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TboxOverafter(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "inter_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool InterTboxTbox(IntPtr box1, IntPtr box2, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tboolinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolinstFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tboolinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tboolseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolseqFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tboolseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tboolseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolseqsetFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tboolseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboolseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "temporal_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalIn(string str, int temptype); + + [LibraryImport(DllPath, EntryPoint = "temporal_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TemporalOut(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "temparr_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemparrOut(IntPtr temparr, int count, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tfloatinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatinstFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tfloatinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tfloatseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatseqFromMfjson(IntPtr mfjson, int interp); + + [LibraryImport(DllPath, EntryPoint = "tfloatseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tfloatseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatseqsetFromMfjson(IntPtr mfjson, int interp); + + [LibraryImport(DllPath, EntryPoint = "tfloatseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TfloatseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tinstant_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantFromMfjson(IntPtr mfjson, [MarshalAs(UnmanagedType.U1)] bool spatial, int srid, int temptype); + + [LibraryImport(DllPath, EntryPoint = "tinstant_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantIn(string str, int temptype); + + [LibraryImport(DllPath, EntryPoint = "tinstant_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TinstantOut(IntPtr inst, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tbigintinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintinstFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tbigintinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tbigintseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintseqFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tbigintseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintseqsetFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tbigintseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tintinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintinstFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tintinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tintseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintseqFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tintseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tintseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintseqsetFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tintseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TintseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tsequence_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceFromMfjson(IntPtr mfjson, [MarshalAs(UnmanagedType.U1)] bool spatial, int srid, int temptype, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequence_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceIn(string str, int temptype, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequence_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TsequenceOut(IntPtr seq, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetFromMfjson(IntPtr mfjson, [MarshalAs(UnmanagedType.U1)] bool spatial, int srid, int temptype, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetIn(string str, int temptype, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TsequencesetOut(IntPtr ss, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "ttextinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextinstFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "ttextinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "ttextseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextseqFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "ttextseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "ttextseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextseqsetFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "ttextseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tjsonbinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbinstFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tjsonbseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbseqFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "tjsonbseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbseqsetFromMfjson(IntPtr mfjson); + + [LibraryImport(DllPath, EntryPoint = "temporal_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalFromMfjson(string mfjson, int temptype); + + [LibraryImport(DllPath, EntryPoint = "temporal_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalFromBaseTemp(long value, int temptype, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tinstant_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantCopy(IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tinstant_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantMake(long value, int temptype, long t); + + [LibraryImport(DllPath, EntryPoint = "tinstant_make_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantMakeFree(long value, int temptype, long t); + + [LibraryImport(DllPath, EntryPoint = "tsequence_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceCopy(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceFromBaseTemp(long value, int temptype, IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceFromBaseTstzset(long value, int temptype, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tsequence_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceFromBaseTstzspan(long value, int temptype, IntPtr s, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequence_make_exp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceMakeExp(IntPtr instants, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "tsequence_make_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceMakeFree(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetCopy(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tseqsetarr_to_tseqset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TseqsetarrToTseqset(IntPtr seqsets, int count, int totalseqs); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetFromBaseTemp(long value, int temptype, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetFromBaseTstzspanset(long value, int temptype, IntPtr ss, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_make_exp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetMakeExp(IntPtr sequences, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_make_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetMakeFree(IntPtr sequences, int count, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "temporal_set_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TemporalSetTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tinstant_set_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TinstantSetTstzspan(IntPtr inst, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tnumber_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TnumberSetTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tnumberinst_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TnumberinstSetTbox(IntPtr inst, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TnumberseqSetTbox(IntPtr seq, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_set_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TnumberseqsetSetTbox(IntPtr ss, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tsequence_set_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TsequenceSetTstzspan(IntPtr seq, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_set_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TsequencesetSetTstzspan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "temporal_end_inst", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalEndInst(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TemporalEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_inst_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalInstN(IntPtr temp, int n); + + [LibraryImport(DllPath, EntryPoint = "temporal_insts_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalInstsP(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_max_inst_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMaxInstP(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_max_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TemporalMaxValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_mem_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TemporalMemSize(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_min_inst_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalMinInstP(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_min_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TemporalMinValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_sequences_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSequencesP(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_set_bbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TemporalSetBbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "temporal_start_inst", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalStartInst(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TemporalStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "temporal_values_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalValuesP(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "temporal_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tinstant_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TinstantHash(IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tinstant_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TinstantHashExtended(IntPtr inst, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "tinstant_insts", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantInsts(IntPtr inst, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tinstant_set_bbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TinstantSetBbox(IntPtr inst, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tinstant_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantTime(IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tinstant_timestamps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantTimestamps(IntPtr inst, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tinstant_value_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TinstantValueP(IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tinstant_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TinstantValue(IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tinstant_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TinstantValueAtTimestamptz(IntPtr inst, long t, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tinstant_values_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantValuesP(IntPtr inst, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_set_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TnumberSetSpan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tnumberinst_valuespans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberinstValuespans(IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_avg_val", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberseqAvgVal(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_valuespans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqValuespans(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_avg_val", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberseqsetAvgVal(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_valuespans", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqsetValuespans(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequence_duration", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceDuration(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_end_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TsequenceEndTimestamptz(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TsequenceHash(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TsequenceHashExtended(IntPtr seq, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "tsequence_insts_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceInstsP(IntPtr seq, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tsequence_max_inst_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceMaxInstP(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_max_val", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TsequenceMaxVal(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_min_inst_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceMinInstP(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_min_val", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TsequenceMinVal(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_segments", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceSegments(IntPtr seq, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tsequence_seqs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceSeqs(IntPtr seq, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tsequence_start_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TsequenceStartTimestamptz(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceTime(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_timestamps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceTimestamps(IntPtr seq, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tsequence_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TsequenceValueAtTimestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tsequence_values_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceValuesP(IntPtr seq, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_duration", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetDuration(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_end_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TsequencesetEndTimestamptz(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TsequencesetHash(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TsequencesetHashExtended(IntPtr ss, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_inst_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetInstN(IntPtr ss, int n); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_insts_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetInstsP(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_max_inst_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetMaxInstP(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_max_val", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TsequencesetMaxVal(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_min_inst_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetMinInstP(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_min_val", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TsequencesetMinVal(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_num_instants", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TsequencesetNumInstants(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_num_timestamps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TsequencesetNumTimestamps(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_segments", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetSegments(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_sequences_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetSequencesP(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_start_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TsequencesetStartTimestamptz(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetTime(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_timestamptz_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TsequencesetTimestamptzN(IntPtr ss, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_timestamps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetTimestamps(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TsequencesetValueAtTimestamptz(IntPtr ss, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TsequencesetValueN(IntPtr ss, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_value_n_p", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TsequencesetValueNP(IntPtr ss, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_values_p", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetValuesP(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "temporal_restart", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TemporalRestart(IntPtr temp, int count); + + [LibraryImport(DllPath, EntryPoint = "temporal_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTsequence(IntPtr temp, int interp); + + [LibraryImport(DllPath, EntryPoint = "temporal_tsequenceset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalTsequenceset(IntPtr temp, int interp); + + [LibraryImport(DllPath, EntryPoint = "tinstant_shift_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantShiftTime(IntPtr inst, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "tinstant_as_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantAsTsequence(IntPtr inst, int interp); + + [LibraryImport(DllPath, EntryPoint = "tinstant_to_tsequence_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantToTsequenceFree(IntPtr inst, int interp); + + [LibraryImport(DllPath, EntryPoint = "tinstant_as_tsequenceset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantAsTsequenceset(IntPtr inst, int interp); + + [LibraryImport(DllPath, EntryPoint = "tnumber_shift_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberShiftScaleValue(IntPtr temp, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "tnumberinst_shift_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberinstShiftValue(IntPtr inst, long shift); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_shift_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqShiftScaleValue(IntPtr seq, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_shift_scale_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqsetShiftScaleValue(IntPtr ss, long start, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); + + [LibraryImport(DllPath, EntryPoint = "tsequence_restart", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TsequenceRestart(IntPtr seq, int count); + + [LibraryImport(DllPath, EntryPoint = "tsequence_set_interp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceSetInterp(IntPtr seq, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequence_shift_scale_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceShiftScaleTime(IntPtr seq, IntPtr shift, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "tsequence_subseq", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceSubseq(IntPtr seq, int from, int to, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "tsequence_as_tinstant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceAsTinstant(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_as_tsequenceset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceAsTsequenceset(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_to_tsequenceset_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceToTsequencesetFree(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequence_to_tsequenceset_interp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceToTsequencesetInterp(IntPtr seq, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_restart", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TsequencesetRestart(IntPtr ss, int count); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_set_interp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetSetInterp(IntPtr ss, int interp); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_shift_scale_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetShiftScaleTime(IntPtr ss, IntPtr start, IntPtr duration); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_to_discrete", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetToDiscrete(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_to_linear", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetToLinear(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_to_step", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetToStep(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_as_tinstant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetAsTinstant(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_as_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetAsTsequence(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tinstant_merge", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantMerge(IntPtr inst1, IntPtr inst2); + + [LibraryImport(DllPath, EntryPoint = "tinstant_merge_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantMergeArray(IntPtr instants, int count); + + [LibraryImport(DllPath, EntryPoint = "tsequence_append_tinstant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceAppendTinstant(IntPtr seq, IntPtr inst, double maxdist, IntPtr maxt, [MarshalAs(UnmanagedType.U1)] bool expand); + + [LibraryImport(DllPath, EntryPoint = "tsequence_append_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceAppendTsequence(IntPtr seq1, IntPtr seq2, [MarshalAs(UnmanagedType.U1)] bool expand); + + [LibraryImport(DllPath, EntryPoint = "tsequence_delete_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceDeleteTimestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "tsequence_delete_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceDeleteTstzset(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "tsequence_delete_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceDeleteTstzspan(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "tsequence_delete_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceDeleteTstzspanset(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "tsequence_insert", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceInsert(IntPtr seq1, IntPtr seq2, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "tsequence_merge", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceMerge(IntPtr seq1, IntPtr seq2); + + [LibraryImport(DllPath, EntryPoint = "tsequence_merge_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceMergeArray(IntPtr sequences, int count); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_append_tinstant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetAppendTinstant(IntPtr ss, IntPtr inst, double maxdist, IntPtr maxt, [MarshalAs(UnmanagedType.U1)] bool expand); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_append_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetAppendTsequence(IntPtr ss, IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool expand); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_delete_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetDeleteTimestamptz(IntPtr ss, long t); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_delete_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetDeleteTstzset(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_delete_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetDeleteTstzspan(IntPtr ss, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_delete_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetDeleteTstzspanset(IntPtr ss, IntPtr ps); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_insert", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetInsert(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_merge", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetMerge(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_merge_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetMergeArray(IntPtr seqsets, int count); + + [LibraryImport(DllPath, EntryPoint = "tsequence_expand_bbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TsequenceExpandBbox(IntPtr seq, IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tsequence_set_bbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TsequenceSetBbox(IntPtr seq, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_expand_bbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TsequencesetExpandBbox(IntPtr ss, IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_set_bbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TsequencesetSetBbox(IntPtr ss, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tcontseq_after_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontseqAfterTimestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "tcontseq_before_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontseqBeforeTimestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "tcontseq_restrict_minmax", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TcontseqRestrictMinmax(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tdiscseq_after_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdiscseqAfterTimestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "tdiscseq_before_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdiscseqBeforeTimestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "tdiscseq_restrict_minmax", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdiscseqRestrictMinmax(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "temporal_bbox_restrict_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalBboxRestrictSet(IntPtr temp, IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "temporal_restrict_minmax", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalRestrictMinmax(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "temporal_restrict_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalRestrictTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "temporal_restrict_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalRestrictTstzset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "temporal_restrict_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalRestrictTstzspan(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "temporal_restrict_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalRestrictTstzspanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "temporal_restrict_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalRestrictValue(IntPtr temp, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "temporal_restrict_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalRestrictValues(IntPtr temp, IntPtr set, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "temporal_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TemporalValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tinstant_after_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantAfterTimestamptz(IntPtr inst, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "tinstant_before_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantBeforeTimestamptz(IntPtr inst, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "tinstant_restrict_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantRestrictTstzspan(IntPtr inst, IntPtr period, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tinstant_restrict_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantRestrictTstzspanset(IntPtr inst, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tinstant_restrict_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantRestrictTimestamptz(IntPtr inst, long t, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tinstant_restrict_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantRestrictTstzset(IntPtr inst, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tinstant_restrict_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantRestrictValue(IntPtr inst, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tinstant_restrict_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TinstantRestrictValues(IntPtr inst, IntPtr set, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tnumber_restrict_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberRestrictSpan(IntPtr temp, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tnumber_restrict_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberRestrictSpanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tnumberinst_restrict_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberinstRestrictSpan(IntPtr inst, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tnumberinst_restrict_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberinstRestrictSpanset(IntPtr inst, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_restrict_span", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqsetRestrictSpan(IntPtr ss, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_restrict_spanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqsetRestrictSpanset(IntPtr ss, IntPtr spanset, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequence_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceAtTimestamptz(IntPtr seq, long t); + + [LibraryImport(DllPath, EntryPoint = "tsequence_restrict_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceRestrictTstzspan(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequence_restrict_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceRestrictTstzspanset(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_after_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetAfterTimestamptz(IntPtr ss, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_before_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetBeforeTimestamptz(IntPtr ss, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_restrict_minmax", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetRestrictMinmax(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_restrict_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetRestrictTstzspan(IntPtr ss, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_restrict_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetRestrictTstzspanset(IntPtr ss, IntPtr ps, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_restrict_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetRestrictTimestamptz(IntPtr ss, long t, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_restrict_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetRestrictTstzset(IntPtr ss, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_restrict_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetRestrictValue(IntPtr ss, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_restrict_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetRestrictValues(IntPtr ss, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tinstant_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TinstantCmp(IntPtr inst1, IntPtr inst2); + + [LibraryImport(DllPath, EntryPoint = "tinstant_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TinstantEq(IntPtr inst1, IntPtr inst2); + + [LibraryImport(DllPath, EntryPoint = "tsequence_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TsequenceCmp(IntPtr seq1, IntPtr seq2); + + [LibraryImport(DllPath, EntryPoint = "tsequence_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TsequenceEq(IntPtr seq1, IntPtr seq2); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TsequencesetCmp(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TsequencesetEq(IntPtr ss1, IntPtr ss2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "always_ne_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "always_ge_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ge_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGeTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "always_gt_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_gt_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysGtTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "always_le_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_le_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLeTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "always_lt_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_lt_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysLtTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ge_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGeTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_gt_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverGtTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "ever_le_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_le_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLeTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_lt_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverLtTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "teq_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "tne_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "tlt_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tlt_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TltTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "tle_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tle_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TleTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "tgt_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tgt_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgtTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "tge_base_temporal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeBaseTemporal(long value, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tge_temporal_base", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeTemporalBase(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "tnumberinst_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberinstAbs(IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tnumberinst_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberinstDistance(IntPtr inst1, IntPtr inst2); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqAbs(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_angular_difference", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqAngularDifference(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_delta_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqDeltaValue(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqsetAbs(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_angular_difference", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqsetAngularDifference(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_delta_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberseqsetDeltaValue(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tnumber_number", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTnumberNumber(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "nad_tbox_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NadTboxTbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "nad_tnumber_number", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NadTnumberNumber(IntPtr temp, long value); + + [LibraryImport(DllPath, EntryPoint = "nad_tnumber_tbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NadTnumberTbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_tnumber_tnumber", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NadTnumberTnumber(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_integral", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberseqIntegral(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tnumberseq_twavg", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberseqTwavg(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_integral", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberseqsetIntegral(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tnumberseqset_twavg", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnumberseqsetTwavg(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "temporal_compact", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalCompact(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tsequence_compact", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequenceCompact(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tsequenceset_compact", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TsequencesetCompact(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "temporal_skiplist_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalSkiplistMake(); + + [LibraryImport(DllPath, EntryPoint = "skiplist_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SkiplistMake(ulong key_size, ulong value_size, IntPtr comp_fn, IntPtr merge_fn); + + [LibraryImport(DllPath, EntryPoint = "skiplist_search", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SkiplistSearch(IntPtr list, IntPtr key, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "skiplist_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SkiplistFree(IntPtr list); + + [LibraryImport(DllPath, EntryPoint = "skiplist_splice", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SkiplistSplice(IntPtr list, IntPtr keys, IntPtr values, int count, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings, int sktype); + + [LibraryImport(DllPath, EntryPoint = "temporal_skiplist_splice", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TemporalSkiplistSplice(IntPtr list, IntPtr values, int count, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings); + + [LibraryImport(DllPath, EntryPoint = "skiplist_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SkiplistValues(IntPtr list); + + [LibraryImport(DllPath, EntryPoint = "skiplist_keys_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SkiplistKeysValues(IntPtr list, IntPtr values); + + [LibraryImport(DllPath, EntryPoint = "temporal_app_tinst_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAppTinstTransfn(IntPtr state, IntPtr inst, int interp, double maxdist, IntPtr maxt); + + [LibraryImport(DllPath, EntryPoint = "temporal_app_tseq_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TemporalAppTseqTransfn(IntPtr state, IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "span_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpanBins(IntPtr s, long size, long origin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "spanset_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr SpansetBins(IntPtr ss, long size, long origin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_value_bins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberValueBins(IntPtr temp, long size, long origin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_value_time_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberValueTimeBoxes(IntPtr temp, long vsize, IntPtr duration, long vorigin, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_value_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberValueSplit(IntPtr temp, long vsize, long vorigin, IntPtr bins, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tbox_get_value_time_tile", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxGetValueTimeTile(long value, long t, long vsize, IntPtr duration, long vorigin, long torigin, int basetype, int spantype); + + [LibraryImport(DllPath, EntryPoint = "tbox_value_time_tiles", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TboxValueTimeTiles(IntPtr box, long vsize, IntPtr duration, long vorigin, long torigin, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnumber_value_time_split", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnumberValueTimeSplit(IntPtr temp, long size, IntPtr duration, long vorigin, long torigin, IntPtr value_bins, IntPtr time_bins, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "meos_proj_get_context", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosProjGetContext(); + + [LibraryImport(DllPath, EntryPoint = "geos_get_context", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeosGetContext(); + + [LibraryImport(DllPath, EntryPoint = "datum_geo_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DatumGeoRound(long value, long size); + + [LibraryImport(DllPath, EntryPoint = "point_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PointRound(IntPtr gs, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "stbox_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void StboxSet([MarshalAs(UnmanagedType.U1)] bool hasx, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr s, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "gbox_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void GboxSetStbox(IntPtr box, int srid, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "geo_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeoSetStbox(IntPtr gs, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "geoarr_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void GeoarrSetStbox(IntPtr values, int count, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "spatial_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpatialSetStbox(long d, int basetype, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "spatialset_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void SpatialsetSetStbox(IntPtr set, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "distance_spatialset_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpatialsetValue(IntPtr s, long value); + + [LibraryImport(DllPath, EntryPoint = "distance_spatialset_spatialset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DistanceSpatialsetSpatialset(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "stbox_set_box3d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void StboxSetBox3d(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_set_gbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void StboxSetGbox(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tstzset_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TstzsetSetStbox(IntPtr s, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TimestamptzSetStbox(long t, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tstzspan_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TstzspanSetStbox(IntPtr s, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tstzspanset_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TstzspansetSetStbox(IntPtr s, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_expand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void StboxExpand(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_expand_space_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxExpandSpaceSet(IntPtr box, double d, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_contains", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxContains(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_contained", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxContained(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overlaps", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverlaps(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_same", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxSame(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_adjacent", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxAdjacent(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_left", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxLeft(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_right", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxRight(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overleft", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverleft(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overright", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverright(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_below", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxBelow(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_above", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxAbove(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overbelow", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverbelow(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overabove", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverabove(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_front", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxFront(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_back", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxBack(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overfront", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverfront(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overback", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverback(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_before", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxBefore(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_after", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxAfter(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overbefore", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverbefore(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "stbox_overafter", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool StboxOverafter(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "inter_stbox_stbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool InterStboxStbox(IntPtr box1, IntPtr box2, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "stbox_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr StboxGeo(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tgeogpointinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointinstFromMfjson(IntPtr mfjson, int srid); + + [LibraryImport(DllPath, EntryPoint = "tgeogpointinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeogpointseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointseqFromMfjson(IntPtr mfjson, int srid, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeogpointseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeogpointseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointseqsetFromMfjson(IntPtr mfjson, int srid, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeogpointseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeogpointseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeompointinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointinstFromMfjson(IntPtr mfjson, int srid); + + [LibraryImport(DllPath, EntryPoint = "tgeompointinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeompointseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointseqFromMfjson(IntPtr mfjson, int srid, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeompointseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeompointseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointseqsetFromMfjson(IntPtr mfjson, int srid, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeompointseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeographyinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyinstFromMfjson(IntPtr mfjson, int srid); + + [LibraryImport(DllPath, EntryPoint = "tgeographyinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeographyseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyseqFromMfjson(IntPtr mfjson, int srid, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeographyseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeographyseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyseqsetFromMfjson(IntPtr mfjson, int srid, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeographyseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeographyseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeometryinst_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryinstFromMfjson(IntPtr mfjson, int srid); + + [LibraryImport(DllPath, EntryPoint = "tgeometryinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tgeometryseq_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryseqFromMfjson(IntPtr mfjson, int srid, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeometryseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeometryseqset_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryseqsetFromMfjson(IntPtr mfjson, int srid, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeometryseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeometryseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tspatial_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TspatialSetStbox(IntPtr temp, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tgeoinst_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TgeoinstSetStbox(IntPtr inst, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tspatialseq_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TspatialseqSetStbox(IntPtr seq, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tspatialseqset_set_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TspatialseqsetSetStbox(IntPtr ss, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tgeo_restrict_elevation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoRestrictElevation(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tgeo_restrict_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoRestrictGeom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tgeo_restrict_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoRestrictStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tgeoinst_restrict_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoinstRestrictGeom(IntPtr inst, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tgeoinst_restrict_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoinstRestrictStbox(IntPtr inst, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tgeoseq_restrict_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqRestrictGeom(IntPtr seq, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tgeoseq_restrict_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqRestrictStbox(IntPtr seq, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tgeoseqset_restrict_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqsetRestrictGeom(IntPtr ss, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "tgeoseqset_restrict_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqsetRestrictStbox(IntPtr ss, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "geo_edge_ctx_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoEdgeCtxMake(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geo_edge_ctx_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void GeoEdgeCtxFree(IntPtr ctx); + + [LibraryImport(DllPath, EntryPoint = "geo_intersects2d", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeoIntersects2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "geo_intersects2d_ctx", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeoIntersects2dCtx(IntPtr gs, IntPtr ctx); + + [LibraryImport(DllPath, EntryPoint = "geo_covers2d", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeoCovers2d(IntPtr gs1, IntPtr gs2); + + [LibraryImport(DllPath, EntryPoint = "tpoint_linear_inter_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointLinearInterGeom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool clip); + + [LibraryImport(DllPath, EntryPoint = "tpoint_linear_inter_geom_ctx", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointLinearInterGeomCtx(IntPtr temp, IntPtr ctx, [MarshalAs(UnmanagedType.U1)] bool clip); + + [LibraryImport(DllPath, EntryPoint = "tpoint_linear_dwithin_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointLinearDwithinGeom(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "tpoint_linear_dwithin_geom_ctx", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointLinearDwithinGeomCtx(IntPtr temp, IntPtr ctx, double dist); + + [LibraryImport(DllPath, EntryPoint = "tpoint_linear_distance_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointLinearDistanceGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tpoint_linear_restrict_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointLinearRestrictGeom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "geom_meos_supported", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeomMeosSupported(IntPtr geom); + + [LibraryImport(DllPath, EntryPoint = "spatial_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int SpatialSrid(long d, int basetype); + + [LibraryImport(DllPath, EntryPoint = "spatial_set_srid", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SpatialSetSrid(long d, int basetype, int srid); + + [LibraryImport(DllPath, EntryPoint = "tspatialinst_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TspatialinstSrid(IntPtr inst); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_azimuth", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqAzimuth(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_cumulative_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqCumulativeLength(IntPtr seq, double prevlength); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_is_simple", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpointseqIsSimple(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TpointseqLength(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_linear_trajectory", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqLinearTrajectory(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool unary_union); + + [LibraryImport(DllPath, EntryPoint = "tgeoseq_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqStboxes(IntPtr seq, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tgeoseq_split_n_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqSplitNStboxes(IntPtr seq, int max_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tpointseqset_azimuth", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqsetAzimuth(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tpointseqset_cumulative_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqsetCumulativeLength(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tpointseqset_is_simple", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpointseqsetIsSimple(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tpointseqset_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TpointseqsetLength(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tgeoseqset_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqsetStboxes(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tgeoseqset_split_n_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoseqsetSplitNStboxes(IntPtr ss, int max_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tpoint_get_coord", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointGetCoord(IntPtr temp, int coord); + + [LibraryImport(DllPath, EntryPoint = "tgeominst_tgeoginst", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeominstTgeoginst(IntPtr inst, [MarshalAs(UnmanagedType.U1)] bool oper); + + [LibraryImport(DllPath, EntryPoint = "tgeomseq_tgeogseq", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeomseqTgeogseq(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool oper); + + [LibraryImport(DllPath, EntryPoint = "tgeomseqset_tgeogseqset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeomseqsetTgeogseqset(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool oper); + + [LibraryImport(DllPath, EntryPoint = "tgeom_tgeog", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeomTgeog(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool oper); + + [LibraryImport(DllPath, EntryPoint = "tgeo_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeoTpoint(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool oper); + + [LibraryImport(DllPath, EntryPoint = "tspatialinst_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TspatialinstSetSrid(IntPtr inst, int srid); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_make_simple", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqMakeSimple(IntPtr seq, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tspatialseq_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TspatialseqSetSrid(IntPtr seq, int srid); + + [LibraryImport(DllPath, EntryPoint = "tpointseqset_make_simple", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqsetMakeSimple(IntPtr ss, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tspatialseqset_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void TspatialseqsetSetSrid(IntPtr ss, int srid); + + [LibraryImport(DllPath, EntryPoint = "tpointseq_twcentroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqTwcentroid(IntPtr seq); + + [LibraryImport(DllPath, EntryPoint = "tpointseqset_twcentroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointseqsetTwcentroid(IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "float4_to_numeric", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Float4ToNumeric(float num); + + [LibraryImport(DllPath, EntryPoint = "float8_to_numeric", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Float8ToNumeric(double num); + + [LibraryImport(DllPath, EntryPoint = "int16_to_numeric", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int16ToNumeric(short num); + + [LibraryImport(DllPath, EntryPoint = "int32_to_numeric", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int32ToNumeric(int num); + + [LibraryImport(DllPath, EntryPoint = "int64_to_numeric", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int64ToNumeric(long num); + + [LibraryImport(DllPath, EntryPoint = "numeric", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Numeric(IntPtr num, int typmod); + + [LibraryImport(DllPath, EntryPoint = "numeric_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericAbs(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_add", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericAdd(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_ceil", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericCeil(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NumericCmp(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericCopy(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_div", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericDiv(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_div_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericDivTrunc(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumericEq(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_exp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericExp(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_fac", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericFac(long num); + + [LibraryImport(DllPath, EntryPoint = "numeric_floor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericFloor(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_gcd", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericGcd(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumericGe(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumericGt(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint NumericHash(IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "numeric_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong NumericHashExtended(IntPtr num, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "numeric_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "numeric_inc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericInc(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericLarger(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_lcm", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericLcm(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumericLe(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_ln", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericLn(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_log", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericLog(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumericLt(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_min_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint NumericMinScale(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_minus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericMinus(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_mod", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericMod(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_mul", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericMul(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NumericNe(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string NumericOut(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_pow", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericPow(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericRound(IntPtr num, int scale); + + [LibraryImport(DllPath, EntryPoint = "numeric_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NumericScale(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_sign", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericSign(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericSmaller(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "numeric_sqrt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericSqrt(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_to_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float NumericToFloat4(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_to_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NumericToFloat8(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_to_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short NumericToInt16(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_to_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NumericToInt32(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_to_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NumericToInt64(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_trim_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericTrimScale(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericTrunc(IntPtr num, int scale); + + [LibraryImport(DllPath, EntryPoint = "numeric_uminus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericUminus(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_uplus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NumericUplus(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "numeric_width_bucket", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NumericWidthBucket(IntPtr operand, IntPtr bound1, IntPtr bound2, int count); + + [LibraryImport(DllPath, EntryPoint = "json_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonIn(string str); + + [LibraryImport(DllPath, EntryPoint = "json_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string JsonOut(IntPtr js); + + [LibraryImport(DllPath, EntryPoint = "jsonb_from_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbFromText(IntPtr txt, [MarshalAs(UnmanagedType.U1)] bool unique_keys); + + [LibraryImport(DllPath, EntryPoint = "jsonb_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbIn(string str); + + [LibraryImport(DllPath, EntryPoint = "jsonb_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string JsonbOut(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "json_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonMake(IntPtr keys_vals, int count); + + [LibraryImport(DllPath, EntryPoint = "json_make_two_arg", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonMakeTwoArg(IntPtr keys, IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbCopy(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbMake(IntPtr keys_vals, int count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_make_two_arg", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbMakeTwoArg(IntPtr keys, IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_bool", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbToBool(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_cstring", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string JsonbToCstring(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float JsonbToFloat4(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double JsonbToFloat8(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short JsonbToInt16(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int JsonbToInt32(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long JsonbToInt64(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_numeric", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbToNumeric(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbToText(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "json_array_element", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonArrayElement(IntPtr js, int element); + + [LibraryImport(DllPath, EntryPoint = "json_array_element_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonArrayElementText(IntPtr js, int element); + + [LibraryImport(DllPath, EntryPoint = "json_array_elements", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonArrayElements(IntPtr js, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "json_array_elements_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonArrayElementsText(IntPtr js, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "json_array_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int JsonArrayLength(IntPtr js); + + [LibraryImport(DllPath, EntryPoint = "json_each", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonEach(IntPtr js, IntPtr values, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "json_each_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonEachText(IntPtr js, IntPtr values, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "json_extract_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonExtractPath(IntPtr js, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "json_extract_path_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonExtractPathText(IntPtr js, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "json_object_field", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonObjectField(IntPtr js, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "json_object_field_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonObjectFieldText(IntPtr js, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "json_object_keys", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonObjectKeys(IntPtr js, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "json_typeof", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonTypeof(IntPtr js); + + [LibraryImport(DllPath, EntryPoint = "jsonb_array_element", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbArrayElement(IntPtr jb, int element); + + [LibraryImport(DllPath, EntryPoint = "jsonb_array_element_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbArrayElementText(IntPtr jb, int element); + + [LibraryImport(DllPath, EntryPoint = "jsonb_array_elements", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbArrayElements(IntPtr jb, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_array_elements_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbArrayElementsText(IntPtr jb, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_array_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int JsonbArrayLength(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_contained", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbContained(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_contains", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbContains(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_each", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbEach(IntPtr jb, IntPtr values, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_each_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbEachText(IntPtr jb, IntPtr values, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_exists", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbExists(IntPtr jb, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "jsonb_exists_array", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbExistsArray(IntPtr jb, IntPtr keys_elems, int keys_len, [MarshalAs(UnmanagedType.U1)] bool any); + + [LibraryImport(DllPath, EntryPoint = "jsonb_extract_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbExtractPath(IntPtr jb, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "jsonb_extract_path_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbExtractPathText(IntPtr jb, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "jsonb_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint JsonbHash(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong JsonbHashExtended(IntPtr jb, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "jsonb_object_field", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbObjectField(IntPtr jb, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "jsonb_object_field_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbObjectFieldText(IntPtr jb, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "jsonb_object_keys", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbObjectKeys(IntPtr jb, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "json_strip_nulls", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonStripNulls(IntPtr js, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); + + [LibraryImport(DllPath, EntryPoint = "jsonb_concat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbConcat(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_delete", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbDelete(IntPtr jb, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "jsonb_delete_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbDeleteArray(IntPtr jb, IntPtr keys_elems, int keys_len); + + [LibraryImport(DllPath, EntryPoint = "jsonb_delete_index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbDeleteIndex(IntPtr jb, int idx); + + [LibraryImport(DllPath, EntryPoint = "jsonb_delete_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbDeletePath(IntPtr jb, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "jsonb_insert", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbInsert(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool after); + + [LibraryImport(DllPath, EntryPoint = "jsonb_pretty", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbPretty(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbSet(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create); + + [LibraryImport(DllPath, EntryPoint = "jsonb_set_lax", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbSetLax(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create, IntPtr handle_null); + + [LibraryImport(DllPath, EntryPoint = "jsonb_strip_nulls", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbStripNulls(IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); + + [LibraryImport(DllPath, EntryPoint = "jsonb_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int JsonbCmp(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbEq(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbGe(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbGt(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbLe(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbLt(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbNe(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "jsonb_path_exists", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int JsonbPathExists(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "jsonb_path_match", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbPathMatch(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "jsonb_path_query_all", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbPathQueryAll(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_path_query_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbPathQueryArray(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "jsonb_path_query_first", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbPathQueryFirst(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "jsonpath_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonpathIn(string str); + + [LibraryImport(DllPath, EntryPoint = "jsonpath_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonpathCopy(IntPtr jp); + + [LibraryImport(DllPath, EntryPoint = "jsonpath_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string JsonpathOut(IntPtr jp); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string JsonbsetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "jsonb_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbToSet(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool JsonbsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "concat_jsonbset_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ConcatJsonbsetJsonb(IntPtr s, IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool invert); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_array_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetArrayLength(IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_object_field", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetObjectField(IntPtr set, IntPtr key, [MarshalAs(UnmanagedType.U1)] bool astext, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_array_element", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetArrayElement(IntPtr set, int idx, [MarshalAs(UnmanagedType.U1)] bool astext, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_delete_index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetDeleteIndex(IntPtr set, int idx); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_delete", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetDelete(IntPtr set, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_delete_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetDeleteArray(IntPtr set, IntPtr keys, int count); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_exists", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetExists(IntPtr set, IntPtr key, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_exists_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetExistsArray(IntPtr set, IntPtr keys, int count, [MarshalAs(UnmanagedType.U1)] bool any, IntPtr rescount); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetSet(IntPtr set, IntPtr keys, int count, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create, IntPtr null_handle, [MarshalAs(UnmanagedType.U1)] bool lax); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_to_alphanumset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetToAlphanumset(IntPtr set, string key, int settype, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_to_intset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetToIntset(IntPtr set, string key, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_to_bigintset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetToBigintset(IntPtr set, string key, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_to_floatset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetToFloatset(IntPtr set, string key, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_to_textset_key", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetToTextsetKey(IntPtr set, string key, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_strip_nulls", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetStripNulls(IntPtr set, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_pretty", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetPretty(IntPtr set); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_delete_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetDeletePath(IntPtr set, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_extract_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetExtractPath(IntPtr set, IntPtr path_elems, int path_len, [MarshalAs(UnmanagedType.U1)] bool astext, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_insert", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetInsert(IntPtr set, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool after); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_path_exists", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetPathExists(IntPtr set, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_path_match", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetPathMatch(IntPtr set, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_path_query_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetPathQueryArray(IntPtr set, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "jsonbset_path_query_first", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbsetPathQueryFirst(IntPtr set, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "contained_jsonb_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedJsonbSet(IntPtr jb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_set_jsonb", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetJsonb(IntPtr s, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "intersection_jsonb_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionJsonbSet(IntPtr jb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetJsonb(IntPtr s, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "jsonb_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr JsonbUnionTransfn(IntPtr state, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "minus_jsonb_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusJsonbSet(IntPtr jb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_set_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetJsonb(IntPtr s, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "union_jsonb_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionJsonbSet(IntPtr jb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_set_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetJsonb(IntPtr s, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TjsonbOut(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tjsonbinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tjsonbseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tjsonbseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbFromBaseTemp(IntPtr jsonb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tjsonbinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbinstMake(IntPtr jsonb, long t); + + [LibraryImport(DllPath, EntryPoint = "tjsonbseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbseqFromBaseTstzset(IntPtr jsonb, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tjsonbseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbseqFromBaseTstzspan(IntPtr jsonb, IntPtr sp); + + [LibraryImport(DllPath, EntryPoint = "tjsonbseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbseqsetFromBaseTstzspanset(IntPtr jsonb, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_to_ttext", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbToTtext(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ttext_to_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TtextToTjsonb(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TjsonbValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TjsonbValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "concat_tjsonb_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ConcatTjsonbJsonb(IntPtr temp, IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool invert); + + [LibraryImport(DllPath, EntryPoint = "concat_tjsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ConcatTjsonbTjsonb(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contains_tjsonb_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ContainsTjsonbJsonb(IntPtr temp, IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool invert); + + [LibraryImport(DllPath, EntryPoint = "contains_tjsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ContainsTjsonbTjsonb(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "null_handle_type_from_string", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NullHandleTypeFromString(string str); + + [LibraryImport(DllPath, EntryPoint = "tjson_array_element", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonArrayElement(IntPtr temp, int idx, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjson_array_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonArrayLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tjson_extract_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonExtractPath(IntPtr temp, IntPtr path_elems, int path_len, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjson_object_field", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonObjectField(IntPtr temp, IntPtr key, [MarshalAs(UnmanagedType.U1)] bool astext, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjson_strip_nulls", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonStripNulls(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_array_element", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbArrayElement(IntPtr temp, int idx, [MarshalAs(UnmanagedType.U1)] bool astext, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_array_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbArrayLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_delete", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbDelete(IntPtr temp, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_delete_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbDeleteArray(IntPtr temp, IntPtr keys, int count); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_delete_index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbDeleteIndex(IntPtr temp, int idx); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_delete_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbDeletePath(IntPtr temp, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_exists", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbExists(IntPtr temp, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_exists_all", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbExistsAll(IntPtr temp, IntPtr keys, int count); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_exists_any", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbExistsAny(IntPtr temp, IntPtr keys, int count); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_exists_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbExistsArray(IntPtr temp, IntPtr keys, int count, [MarshalAs(UnmanagedType.U1)] bool any); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_extract_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbExtractPath(IntPtr temp, IntPtr path_elems, int path_len, [MarshalAs(UnmanagedType.U1)] bool astext, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_insert", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbInsert(IntPtr temp, IntPtr keys, int count, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool after); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_object_field", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbObjectField(IntPtr temp, IntPtr key, [MarshalAs(UnmanagedType.U1)] bool astext, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_path_exists", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbPathExists(IntPtr temp, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_path_match", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbPathMatch(IntPtr temp, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_path_query_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbPathQueryArray(IntPtr temp, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_path_query_first", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbPathQueryFirst(IntPtr temp, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_pretty", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbPretty(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbSet(IntPtr temp, IntPtr keys, int count, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create, IntPtr handle_null, [MarshalAs(UnmanagedType.U1)] bool lax); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_strip_nulls", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbStripNulls(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_to_tbool", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbToTbool(IntPtr temp, string key, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_to_tfloat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbToTfloat(IntPtr temp, string key, int interp, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_to_tint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbToTint(IntPtr temp, string key, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_to_ttext_key", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbToTtextKey(IntPtr temp, string key, int null_handle); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbAtValue(IntPtr temp, IntPtr jsb); + + [LibraryImport(DllPath, EntryPoint = "tjsonb_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TjsonbMinusValue(IntPtr temp, IntPtr jsb); + + [LibraryImport(DllPath, EntryPoint = "always_eq_jsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqJsonbTjsonb(IntPtr jb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tjsonb_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTjsonbJsonb(IntPtr temp, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tjsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTjsonbTjsonb(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_jsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeJsonbTjsonb(IntPtr jb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tjsonb_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTjsonbJsonb(IntPtr temp, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tjsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTjsonbTjsonb(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_jsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqJsonbTjsonb(IntPtr jb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tjsonb_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTjsonbJsonb(IntPtr temp, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tjsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTjsonbTjsonb(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_jsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeJsonbTjsonb(IntPtr jb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tjsonb_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTjsonbJsonb(IntPtr temp, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tjsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTjsonbTjsonb(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_jsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqJsonbTjsonb(IntPtr jb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tjsonb_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTjsonbJsonb(IntPtr temp, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "tne_jsonb_tjsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneJsonbTjsonb(IntPtr jb, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tjsonb_jsonb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTjsonbJsonb(IntPtr temp, IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "npoint_as_ewkt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string NpointAsEwkt(IntPtr np, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "npoint_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string NpointAsHexwkb(IntPtr np, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "npoint_as_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string NpointAsText(IntPtr np, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "npoint_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointAsWkb(IntPtr np, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "npoint_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "npoint_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "npoint_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointIn(string str); + + [LibraryImport(DllPath, EntryPoint = "npoint_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string NpointOut(IntPtr np, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "nsegment_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NsegmentIn(string str); + + [LibraryImport(DllPath, EntryPoint = "nsegment_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string NsegmentOut(IntPtr ns, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "npoint_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointMake(long rid, double pos); + + [LibraryImport(DllPath, EntryPoint = "nsegment_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NsegmentMake(long rid, double pos1, double pos2); + + [LibraryImport(DllPath, EntryPoint = "geompoint_to_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeompointToNpoint(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "geom_to_nsegment", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeomToNsegment(IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "npoint_to_geompoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointToGeompoint(IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "npoint_to_nsegment", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointToNsegment(IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "npoint_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointToStbox(IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "nsegment_to_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NsegmentToGeom(IntPtr ns); + + [LibraryImport(DllPath, EntryPoint = "nsegment_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NsegmentToStbox(IntPtr ns); + + [LibraryImport(DllPath, EntryPoint = "npoint_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint NpointHash(IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "npoint_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong NpointHashExtended(IntPtr np, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "npoint_position", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NpointPosition(IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "npoint_route", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NpointRoute(IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "nsegment_end_position", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NsegmentEndPosition(IntPtr ns); + + [LibraryImport(DllPath, EntryPoint = "nsegment_route", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long NsegmentRoute(IntPtr ns); + + [LibraryImport(DllPath, EntryPoint = "nsegment_start_position", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NsegmentStartPosition(IntPtr ns); + + [LibraryImport(DllPath, EntryPoint = "route_exists", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RouteExists(long rid); + + [LibraryImport(DllPath, EntryPoint = "route_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RouteGeom(long rid); + + [LibraryImport(DllPath, EntryPoint = "route_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double RouteLength(long rid); + + [LibraryImport(DllPath, EntryPoint = "npoint_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointRound(IntPtr np, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "nsegment_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NsegmentRound(IntPtr ns, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "get_srid_ways", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int GetSridWays(); + + [LibraryImport(DllPath, EntryPoint = "npoint_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NpointSrid(IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "nsegment_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NsegmentSrid(IntPtr ns); + + [LibraryImport(DllPath, EntryPoint = "npoint_timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointTimestamptzToStbox(IntPtr np, long t); + + [LibraryImport(DllPath, EntryPoint = "npoint_tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointTstzspanToStbox(IntPtr np, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "npoint_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NpointCmp(IntPtr np1, IntPtr np2); + + [LibraryImport(DllPath, EntryPoint = "npoint_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NpointEq(IntPtr np1, IntPtr np2); + + [LibraryImport(DllPath, EntryPoint = "npoint_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NpointGe(IntPtr np1, IntPtr np2); + + [LibraryImport(DllPath, EntryPoint = "npoint_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NpointGt(IntPtr np1, IntPtr np2); + + [LibraryImport(DllPath, EntryPoint = "npoint_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NpointLe(IntPtr np1, IntPtr np2); + + [LibraryImport(DllPath, EntryPoint = "npoint_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NpointLt(IntPtr np1, IntPtr np2); + + [LibraryImport(DllPath, EntryPoint = "npoint_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NpointNe(IntPtr np1, IntPtr np2); + + [LibraryImport(DllPath, EntryPoint = "npoint_same", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NpointSame(IntPtr np1, IntPtr np2); + + [LibraryImport(DllPath, EntryPoint = "nsegment_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int NsegmentCmp(IntPtr ns1, IntPtr ns2); + + [LibraryImport(DllPath, EntryPoint = "nsegment_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NsegmentEq(IntPtr ns1, IntPtr ns2); + + [LibraryImport(DllPath, EntryPoint = "nsegment_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NsegmentGe(IntPtr ns1, IntPtr ns2); + + [LibraryImport(DllPath, EntryPoint = "nsegment_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NsegmentGt(IntPtr ns1, IntPtr ns2); + + [LibraryImport(DllPath, EntryPoint = "nsegment_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NsegmentLe(IntPtr ns1, IntPtr ns2); + + [LibraryImport(DllPath, EntryPoint = "nsegment_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NsegmentLt(IntPtr ns1, IntPtr ns2); + + [LibraryImport(DllPath, EntryPoint = "nsegment_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NsegmentNe(IntPtr ns1, IntPtr ns2); + + [LibraryImport(DllPath, EntryPoint = "npointset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "npointset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string NpointsetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "npointset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "npoint_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointToSet(IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "npointset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "npointset_routes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointsetRoutes(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "npointset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "npointset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NpointsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "npointset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "contained_npoint_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedNpointSet(IntPtr np, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_set_npoint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetNpoint(IntPtr s, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "intersection_npoint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionNpointSet(IntPtr np, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetNpoint(IntPtr s, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "minus_npoint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusNpointSet(IntPtr np, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_set_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetNpoint(IntPtr s, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "npoint_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NpointUnionTransfn(IntPtr state, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "union_npoint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionNpointSet(IntPtr np, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_set_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetNpoint(IntPtr s, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointFromMfjson(string mfjson); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TnpointOut(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tnpointinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointinstMake(IntPtr np, long t); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointFromBaseTemp(IntPtr np, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpointseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointseqFromBaseTstzset(IntPtr np, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tnpointseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointseqFromBaseTstzspan(IntPtr np, IntPtr s, int interp); + + [LibraryImport(DllPath, EntryPoint = "tnpointseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointseqsetFromBaseTstzspanset(IntPtr np, IntPtr ss, int interp); + + [LibraryImport(DllPath, EntryPoint = "tgeompoint_to_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TgeompointToTnpoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_to_tgeompoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointToTgeompoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_cumulative_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointCumulativeLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TnpointLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_positions", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointPositions(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_route", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TnpointRoute(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_routes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointRoutes(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_speed", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointSpeed(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_trajectory", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointTrajectory(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TnpointValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TnpointValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_twcentroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointTwcentroid(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_at_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointAtGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_at_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointAtNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_at_npointset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointAtNpointset(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_at_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointAtStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_minus_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointMinusGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_minus_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointMinusNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_minus_npointset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointMinusNpointset(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_minus_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointMinusStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tnpoint_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTnpointGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tnpoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTnpointTnpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_tnpoint_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTnpointGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nad_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "nad_tnpoint_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTnpointStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_tnpoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTnpointTnpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nai_tnpoint_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTnpointGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nai_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "nai_tnpoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTnpointTnpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tnpoint_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTnpointGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tnpoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTnpointTnpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tnpoint_tcentroid_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnpointTcentroidTransfn(IntPtr state, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_npoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqNpointTnpoint(IntPtr np, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tnpoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTnpointTnpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_npoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeNpointTnpoint(IntPtr np, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tnpoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTnpointTnpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_npoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqNpointTnpoint(IntPtr np, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tnpoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTnpointTnpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_npoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeNpointTnpoint(IntPtr np, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tnpoint_tnpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTnpointTnpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "tne_tnpoint_npoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTnpointNpoint(IntPtr temp, IntPtr np); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_hex_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointHexIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_hex_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcpointHexOut(IntPtr pt, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcpointAsHexwkb(IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointMake(uint pcid, IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointCopy(IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_get_pcid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcpointGetPcid(IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcpointHash(IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PcpointHashExtended(IntPtr pt, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_get_x", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointGetX(IntPtr pt, IntPtr schema, IntPtr @out); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_get_y", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointGetY(IntPtr pt, IntPtr schema, IntPtr @out); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_get_z", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointGetZ(IntPtr pt, IntPtr schema, IntPtr @out); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_get_dim", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointGetDim(IntPtr pt, IntPtr schema, string name, IntPtr @out); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_to_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointToTpcbox(IntPtr pt, IntPtr schema); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcSchema(uint pcid); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_register", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosPcSchemaRegister(uint pcid, IntPtr schema); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_from_dims", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcSchemaFromDims(uint pcid, int srid, string compression, IntPtr dims, int ndims); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_register_dims", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool MeosPcSchemaRegisterDims(uint pcid, int srid, string compression, IntPtr dims, int ndims); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_register_xml", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosPcSchemaRegisterXml(uint pcid, IntPtr schema, string xml_text); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_xml", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcSchemaXml(uint pcid); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_clear", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosPcSchemaClear(); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosPcSchemaSrid(uint pcid); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_compression", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcSchemaCompression(uint pcid); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_schema_ndims", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MeosPcSchemaNdims(uint pcid); + + [LibraryImport(DllPath, EntryPoint = "meos_set_pointcloud_schemas_xml", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void MeosSetPointcloudSchemasXml(string path); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcpointCmp(IntPtr pt1, IntPtr pt2); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointEq(IntPtr pt1, IntPtr pt2); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointNe(IntPtr pt1, IntPtr pt2); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointLt(IntPtr pt1, IntPtr pt2); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointLe(IntPtr pt1, IntPtr pt2); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointGt(IntPtr pt1, IntPtr pt2); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointGe(IntPtr pt1, IntPtr pt2); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_hex_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchHexIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_hex_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcpatchHexOut(IntPtr pa, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcpatchAsHexwkb(IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchMake(IntPtr points, int count); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_make_coords", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchMakeCoords(uint pcid, IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchCopy(IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_get_pcid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcpatchGetPcid(IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_npoints", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcpatchNpoints(IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcpatchHash(IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PcpatchHashExtended(IntPtr pa, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_to_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchToGeom(IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcpatchCmp(IntPtr pa1, IntPtr pa2); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpatchEq(IntPtr pa1, IntPtr pa2); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpatchNe(IntPtr pa1, IntPtr pa2); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpatchLt(IntPtr pa1, IntPtr pa2); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpatchLe(IntPtr pa1, IntPtr pa2); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpatchGt(IntPtr pa1, IntPtr pa2); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpatchGe(IntPtr pa1, IntPtr pa2); + + [LibraryImport(DllPath, EntryPoint = "pcpointset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pcpointset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcpointsetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "pcpointset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointToSet(IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pcpointset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pcpointset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pcpointset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpointsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "pcpointset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "contains_set_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetPcpoint(IntPtr s, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "contained_pcpoint_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedPcpointSet(IntPtr pt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_pcpoint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionPcpointSet(IntPtr pt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetPcpoint(IntPtr s, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "minus_pcpoint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusPcpointSet(IntPtr pt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_set_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetPcpoint(IntPtr s, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "union_pcpoint_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionPcpointSet(IntPtr pt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_set_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetPcpoint(IntPtr s, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pcpoint_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpointUnionTransfn(IntPtr state, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pcpatchset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pcpatchset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcpatchsetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "pcpatchset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchToSet(IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "pcpatchset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pcpatchset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pcpatchset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PcpatchsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "pcpatchset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "contains_set_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetPcpatch(IntPtr s, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "contained_pcpatch_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedPcpatchSet(IntPtr pa, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_pcpatch_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionPcpatchSet(IntPtr pa, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetPcpatch(IntPtr s, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "minus_pcpatch_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusPcpatchSet(IntPtr pa, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_set_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetPcpatch(IntPtr s, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "union_pcpatch_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionPcpatchSet(IntPtr pa, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_set_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetPcpatch(IntPtr s, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchUnionTransfn(IntPtr state, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcboxIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TpcboxOut(IntPtr box, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcboxMake([MarshalAs(UnmanagedType.U1)] bool hasx, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool hast, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid, uint pcid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr period); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcboxCopy(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "pcpatch_to_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcpatchToTpcbox(IntPtr pa, int srid); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_hasx", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxHasx(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_hasz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxHasz(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_hast", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxHast(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_geodetic", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxGeodetic(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_xmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxXmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_xmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxXmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_ymin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxYmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_ymax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxYmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_zmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxZmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_zmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxZmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_tmin", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxTmin(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_tmin_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxTminInc(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_tmax", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxTmax(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_tmax_inc", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxTmaxInc(IntPtr box, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TpcboxSrid(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_pcid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TpcboxPcid(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcboxToStbox(IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcboxRound(IntPtr box, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcboxSetSrid(IntPtr box, int srid); + + [LibraryImport(DllPath, EntryPoint = "union_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionTpcboxTpcbox(IntPtr box1, IntPtr box2, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "inter_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool InterTpcboxTpcbox(IntPtr box1, IntPtr box2, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "intersection_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "contains_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "contained_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "same_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TpcboxCmp(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxEq(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxNe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxLt(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxLe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxGt(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tpcbox_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcboxGe(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "left_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeftTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overleft_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverleftTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "right_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RightTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overright_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverrightTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "below_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BelowTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overbelow_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbelowTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "above_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AboveTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overabove_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OveraboveTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "front_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool FrontTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overfront_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverfrontTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "back_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BackTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overback_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbackTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "before_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BeforeTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overbefore_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverbeforeTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "after_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AfterTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "overafter_tpcbox_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverafterTpcboxTpcbox(IntPtr box1, IntPtr box2); + + [LibraryImport(DllPath, EntryPoint = "tpointcloud_to_tgeompoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpointcloudToTgeompoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_to_tgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchToTgeometry(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpcpointinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointinstMake(IntPtr pt, long t); + + [LibraryImport(DllPath, EntryPoint = "tpcpointseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointseqFromBaseTstzset(IntPtr pt, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tpcpointseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointseqFromBaseTstzspan(IntPtr pt, IntPtr sp); + + [LibraryImport(DllPath, EntryPoint = "tpcpointseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointseqsetFromBaseTstzspanset(IntPtr pt, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tpcpoint_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointFromBaseTemp(IntPtr pt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpcpoint_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpcpoint_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpcpoint_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcpointValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcpoint_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tpcpoint_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcpointValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tpcpoint_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointAtValue(IntPtr temp, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "tpcpoint_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpointMinusValue(IntPtr temp, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "tpcpatchinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchinstMake(IntPtr pa, long t); + + [LibraryImport(DllPath, EntryPoint = "tpcpatchseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchseqFromBaseTstzset(IntPtr pa, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tpcpatchseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchseqFromBaseTstzspan(IntPtr pa, IntPtr sp); + + [LibraryImport(DllPath, EntryPoint = "tpcpatchseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchseqsetFromBaseTstzspanset(IntPtr pa, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchFromBaseTemp(IntPtr pa, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcpatchValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TpcpatchValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchAtValue(IntPtr temp, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "tpcpatch_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TpcpatchMinusValue(IntPtr temp, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_pcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqPcpointTpcpoint(IntPtr pt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tpcpoint_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTpcpointPcpoint(IntPtr temp, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tpcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTpcpointTpcpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_pcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNePcpointTpcpoint(IntPtr pt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tpcpoint_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTpcpointPcpoint(IntPtr temp, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tpcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTpcpointTpcpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_pcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqPcpointTpcpoint(IntPtr pt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tpcpoint_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTpcpointPcpoint(IntPtr temp, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tpcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTpcpointTpcpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_pcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNePcpointTpcpoint(IntPtr pt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tpcpoint_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTpcpointPcpoint(IntPtr temp, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tpcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTpcpointTpcpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_pcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqPcpatchTpcpatch(IntPtr pa, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tpcpatch_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTpcpatchPcpatch(IntPtr temp, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tpcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTpcpatchTpcpatch(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_pcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNePcpatchTpcpatch(IntPtr pa, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tpcpatch_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTpcpatchPcpatch(IntPtr temp, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tpcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTpcpatchTpcpatch(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_pcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqPcpatchTpcpatch(IntPtr pa, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tpcpatch_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTpcpatchPcpatch(IntPtr temp, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tpcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTpcpatchTpcpatch(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_pcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNePcpatchTpcpatch(IntPtr pa, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tpcpatch_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTpcpatchPcpatch(IntPtr temp, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tpcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTpcpatchTpcpatch(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_pcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqPcpointTpcpoint(IntPtr pt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tpcpoint_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTpcpointPcpoint(IntPtr temp, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "tne_pcpoint_tpcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnePcpointTpcpoint(IntPtr pt, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tpcpoint_pcpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTpcpointPcpoint(IntPtr temp, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "teq_pcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqPcpatchTpcpatch(IntPtr pa, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tpcpatch_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTpcpatchPcpatch(IntPtr temp, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "tne_pcpatch_tpcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnePcpatchTpcpatch(IntPtr pa, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tpcpatch_pcpatch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTpcpatchPcpatch(IntPtr temp, IntPtr pa); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tpcbox_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTpcboxTpointcloud(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tpointcloud_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTpointcloudTpcbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "adjacent_tpointcloud_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool AdjacentTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contained_tpcbox_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTpcboxTpointcloud(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contained_tpointcloud_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTpointcloudTpcbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "contained_tpointcloud_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "contains_tpcbox_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTpcboxTpointcloud(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "contains_tpointcloud_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTpointcloudTpcbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "contains_tpointcloud_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tpcbox_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTpcboxTpointcloud(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tpointcloud_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTpointcloudTpcbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "overlaps_tpointcloud_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool OverlapsTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "same_tpcbox_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTpcboxTpointcloud(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "same_tpointcloud_tpcbox", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTpointcloudTpcbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "same_tpointcloud_tpointcloud", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool SameTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "eintersects_tpcpoint_geo", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EintersectsTpcpointGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nad_tpcpoint_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTpcpointGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "pose_as_ewkt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PoseAsEwkt(IntPtr pose, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "pose_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PoseAsHexwkb(IntPtr pose, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "pose_as_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PoseAsText(IntPtr pose, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "pose_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseAsWkb(IntPtr pose, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "pose_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "pose_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "pose_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pose_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PoseOut(IntPtr pose, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "pose_from_geopose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseFromGeopose(string json); + + [LibraryImport(DllPath, EntryPoint = "pose_as_geopose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PoseAsGeopose(IntPtr pose, int conformance, int precision); + + [LibraryImport(DllPath, EntryPoint = "tpose_from_geopose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeFromGeopose(string json); + + [LibraryImport(DllPath, EntryPoint = "tpose_as_geopose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TposeAsGeopose(IntPtr temp, int conformance, int precision); + + [LibraryImport(DllPath, EntryPoint = "tpose_as_geopose_stream_header", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TposeAsGeoposeStreamHeader(IntPtr temp, int precision); + + [LibraryImport(DllPath, EntryPoint = "tpose_as_geopose_stream_element", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TposeAsGeoposeStreamElement(IntPtr temp, IntPtr inst, int precision); + + [LibraryImport(DllPath, EntryPoint = "tpose_as_geopose_stream", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TposeAsGeoposeStream(IntPtr temp, int precision); + + [LibraryImport(DllPath, EntryPoint = "geopose_frames", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoposeFrames(IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "geopose_frame", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeoposeFrame(int frame_id); + + [LibraryImport(DllPath, EntryPoint = "pose_apply_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseApplyGeo(IntPtr pose, IntPtr body); + + [LibraryImport(DllPath, EntryPoint = "tpose_apply_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeApplyGeo(IntPtr temp, IntPtr body); + + [LibraryImport(DllPath, EntryPoint = "tpose_compose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeComposePose(IntPtr body, IntPtr frame); + + [LibraryImport(DllPath, EntryPoint = "pose_compose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseComposeTpose(IntPtr body, IntPtr frame); + + [LibraryImport(DllPath, EntryPoint = "tpose_compose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeComposeTpose(IntPtr body, IntPtr frame); + + [LibraryImport(DllPath, EntryPoint = "tpose_inverse", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeInverse(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "pose_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseCopy(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_make_2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseMake2d(double x, double y, double theta, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid); + + [LibraryImport(DllPath, EntryPoint = "pose_make_3d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseMake3d(double x, double y, double z, double W, double X, double Y, double Z, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid); + + [LibraryImport(DllPath, EntryPoint = "pose_make_point2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseMakePoint2d(IntPtr gs, double theta); + + [LibraryImport(DllPath, EntryPoint = "pose_make_point3d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseMakePoint3d(IntPtr gs, double W, double X, double Y, double Z); + + [LibraryImport(DllPath, EntryPoint = "pose_make_point3d_ypr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseMakePoint3dYpr(IntPtr gs, double yaw, double pitch, double roll); + + [LibraryImport(DllPath, EntryPoint = "pose_to_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseToPoint(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseToStbox(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PoseHash(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PoseHashExtended(IntPtr pose, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "pose_quaternion", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseQuaternion(IntPtr pose, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pose_ypr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseYpr(IntPtr pose, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pose_yaw", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PoseYaw(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_pitch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PosePitch(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_roll", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PoseRoll(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_angular_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PoseAngularDistance(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_compose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseCompose(IntPtr body, IntPtr frame); + + [LibraryImport(DllPath, EntryPoint = "pose_inverse", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseInverse(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_normalize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseNormalize(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseRound(IntPtr pose, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "posearr_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosearrRound(IntPtr posearr, int count, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "pose_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseSetSrid(IntPtr pose, int srid); + + [LibraryImport(DllPath, EntryPoint = "pose_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PoseSrid(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_transform", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseTransform(IntPtr pose, int srid); + + [LibraryImport(DllPath, EntryPoint = "pose_transform_pipeline", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseTransformPipeline(IntPtr pose, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); + + [LibraryImport(DllPath, EntryPoint = "pose_tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseTstzspanToStbox(IntPtr pose, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pose_timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseTimestamptzToStbox(IntPtr pose, long t); + + [LibraryImport(DllPath, EntryPoint = "distance_pose_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistancePoseGeo(IntPtr pose, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "distance_pose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistancePosePose(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "distance_pose_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DistancePoseStbox(IntPtr pose, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "pose_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PoseCmp(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PoseEq(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PoseGe(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PoseGt(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PoseLe(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PoseLt(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PoseNe(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_nsame", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PoseNsame(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "pose_same", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PoseSame(IntPtr pose1, IntPtr pose2); + + [LibraryImport(DllPath, EntryPoint = "poseset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosesetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "poseset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PosesetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "poseset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosesetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "pose_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseToSet(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "poseset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosesetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "poseset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosesetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "poseset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosesetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "poseset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosesetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "contained_pose_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedPoseSet(IntPtr pose, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_set_pose", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetPose(IntPtr s, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "intersection_pose_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionPoseSet(IntPtr pose, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetPose(IntPtr s, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "minus_pose_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusPoseSet(IntPtr pose, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_set_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetPose(IntPtr s, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseUnionTransfn(IntPtr state, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "union_pose_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionPoseSet(IntPtr pose, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_set_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetPose(IntPtr s, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "tpose_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeFromMfjson(string str); + + [LibraryImport(DllPath, EntryPoint = "tpose_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tposeinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeinstMake(IntPtr pose, long t); + + [LibraryImport(DllPath, EntryPoint = "tpose_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeFromBaseTemp(IntPtr pose, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tposeseq_from_base_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeseqFromBaseTstzset(IntPtr pose, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tposeseq_from_base_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeseqFromBaseTstzspan(IntPtr pose, IntPtr s, int interp); + + [LibraryImport(DllPath, EntryPoint = "tposeseqset_from_base_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeseqsetFromBaseTstzspanset(IntPtr pose, IntPtr ss, int interp); + + [LibraryImport(DllPath, EntryPoint = "tpose_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeMake(IntPtr tpoint, IntPtr ttheta); + + [LibraryImport(DllPath, EntryPoint = "tpose_to_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeToTpoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_points", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposePoints(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_yaw", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeYaw(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_pitch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposePitch(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_roll", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeRoll(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_speed", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeSpeed(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_angular_speed", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeAngularSpeed(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_trajectory", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeTrajectory(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tpose_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TposeValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpose_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TposeValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tpose_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tpose_at_elevation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeAtElevation(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tpose_at_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeAtGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tpose_at_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeAtStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tpose_at_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeAtPose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "tpose_minus_elevation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeMinusElevation(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tpose_minus_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeMinusGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tpose_minus_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeMinusPose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "tpose_minus_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposeMinusStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tpose_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTposeGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tdistance_tpose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTposeTpose(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_tpose_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTposeGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nad_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "nad_tpose_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTposeStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_tpose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTposeTpose(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nai_tpose_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTposeGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nai_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "nai_tpose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTposeTpose(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tpose_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTposeGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "shortestline_tpose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTposeTpose(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_pose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqPoseTpose(IntPtr pose, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tpose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTposeTpose(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_pose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNePoseTpose(IntPtr pose, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tpose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTposeTpose(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_pose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqPoseTpose(IntPtr pose, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tpose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTposeTpose(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_pose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNePoseTpose(IntPtr pose, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tpose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTposeTpose(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_pose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqPoseTpose(IntPtr pose, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "tne_pose_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnePoseTpose(IntPtr pose, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tpose_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTposePose(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "posechain_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainIn(string str); + + [LibraryImport(DllPath, EntryPoint = "posechain_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PosechainOut(IntPtr pc, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "posechain_as_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PosechainAsText(IntPtr pc, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "posechain_as_ewkt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PosechainAsEwkt(IntPtr pc, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "posechain_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainAsWkb(IntPtr pc, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "posechain_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PosechainAsHexwkb(IntPtr pc, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "posechain_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "posechain_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "posechain_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainMake(IntPtr poses, int count); + + [LibraryImport(DllPath, EntryPoint = "posechain_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainCopy(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_append", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainAppend(IntPtr pc, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "pose_to_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PoseToPosechain(IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "posechain_to_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainToPose(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_prefix_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainPrefixPose(IntPtr pc, int n); + + [LibraryImport(DllPath, EntryPoint = "posechain_to_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainToPoint(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainToStbox(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainTimestamptzToStbox(IntPtr pc, long t); + + [LibraryImport(DllPath, EntryPoint = "posechain_tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainTstzspanToStbox(IntPtr pc, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "posechain_num_poses", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PosechainNumPoses(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_start_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainStartPose(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_end_pose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainEndPose(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_pose_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainPoseN(IntPtr pc, int n); + + [LibraryImport(DllPath, EntryPoint = "posechain_poses", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainPoses(IntPtr pc, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "posechain_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PosechainHash(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PosechainHashExtended(IntPtr pc, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "posechain_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainRound(IntPtr pc, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "posechain_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PosechainSrid(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_set_srid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainSetSrid(IntPtr pc, int srid); + + [LibraryImport(DllPath, EntryPoint = "posechain_transform", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainTransform(IntPtr pc, int srid_to); + + [LibraryImport(DllPath, EntryPoint = "posechain_transform_pipeline", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainTransformPipeline(IntPtr pc, string pipeline, int srid_to, [MarshalAs(UnmanagedType.U1)] bool is_forward); + + [LibraryImport(DllPath, EntryPoint = "tposechain_from_geopose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposechainFromGeopose(string json); + + [LibraryImport(DllPath, EntryPoint = "tposechain_as_geopose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TposechainAsGeopose(IntPtr temp, int precision); + + [LibraryImport(DllPath, EntryPoint = "tposechainarr_as_geopose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TposechainarrAsGeopose(IntPtr temparr, int count, int precision); + + [LibraryImport(DllPath, EntryPoint = "posechain_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainEq(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechain_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainNe(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechain_same", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainSame(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechain_nsame", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainNsame(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechain_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PosechainCmp(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechain_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainLt(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechain_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainLe(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechain_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainGt(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechain_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainGe(IntPtr pc1, IntPtr pc2); + + [LibraryImport(DllPath, EntryPoint = "posechainset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "posechainset_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PosechainsetOut(IntPtr s, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "posechainset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainsetMake(IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "posechain_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainToSet(IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechainset_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainsetEndValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "posechainset_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainsetStartValue(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "posechainset_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PosechainsetValueN(IntPtr s, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "posechainset_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainsetValues(IntPtr s, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "contained_posechain_set", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainedPosechainSet(IntPtr pc, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "contains_set_posechain", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool ContainsSetPosechain(IntPtr s, IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "intersection_posechain_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionPosechainSet(IntPtr pc, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "intersection_set_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntersectionSetPosechain(IntPtr s, IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "minus_posechain_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusPosechainSet(IntPtr pc, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "minus_set_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusSetPosechain(IntPtr s, IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "posechain_union_transfn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PosechainUnionTransfn(IntPtr state, IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "union_posechain_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionPosechainSet(IntPtr pc, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "union_set_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnionSetPosechain(IntPtr s, IntPtr pc); + + [LibraryImport(DllPath, EntryPoint = "tposechain_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposechainIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tposechain_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposechainFromMfjson(string mfjson); + + [LibraryImport(DllPath, EntryPoint = "tposechain_from_base_temp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposechainFromBaseTemp(IntPtr pc, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tposechain_to_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TposechainToTpose(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tposechain_num_poses", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TposechainNumPoses(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_posechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqPosechainTposechain(IntPtr posechain, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tposechain_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTposechainPosechain(IntPtr temp, IntPtr posechain); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tposechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTposechainTposechain(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_posechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNePosechainTposechain(IntPtr posechain, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tposechain_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTposechainPosechain(IntPtr temp, IntPtr posechain); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tposechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTposechainTposechain(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_posechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqPosechainTposechain(IntPtr posechain, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tposechain_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTposechainPosechain(IntPtr temp, IntPtr posechain); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tposechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTposechainTposechain(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_posechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNePosechainTposechain(IntPtr posechain, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tposechain_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTposechainPosechain(IntPtr temp, IntPtr posechain); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tposechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTposechainTposechain(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_posechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqPosechainTposechain(IntPtr posechain, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tposechain_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTposechainPosechain(IntPtr temp, IntPtr posechain); + + [LibraryImport(DllPath, EntryPoint = "tne_posechain_tposechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TnePosechainTposechain(IntPtr posechain, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tposechain_posechain", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTposechainPosechain(IntPtr temp, IntPtr posechain); + + [LibraryImport(DllPath, EntryPoint = "quadbin_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong QuadbinIn(string str); + + [LibraryImport(DllPath, EntryPoint = "quadbin_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinEq(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "quadbin_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinNe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "quadbin_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinLt(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "quadbin_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinLe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "quadbin_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinGt(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "quadbin_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinGe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int QuadbinCmp(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "quadbin_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint QuadbinHash(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "quadbin_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong QuadbinHashExtended(ulong cell, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "quadbin_is_valid_index", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinIsValidIndex(ulong index); + + [LibraryImport(DllPath, EntryPoint = "quadbin_is_valid_cell", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinIsValidCell(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "quadbin_tile_to_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong QuadbinTileToCell(uint x, uint y, uint z); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_to_tile", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool QuadbinCellToTile(ulong cell, IntPtr x, IntPtr y, IntPtr z); + + [LibraryImport(DllPath, EntryPoint = "quadbin_get_resolution", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint QuadbinGetResolution(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_to_parent", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong QuadbinCellToParent(ulong cell, uint parent_resolution); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_to_children", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinCellToChildren(ulong cell, uint children_resolution, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_sibling", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong QuadbinCellSibling(ulong cell, string direction); + + [LibraryImport(DllPath, EntryPoint = "quadbin_k_ring", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinKRing(ulong cell, int k, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "quadbin_point_to_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong QuadbinPointToCell(double longitude, double latitude, uint resolution); + + [LibraryImport(DllPath, EntryPoint = "geo_to_quadbin_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong GeoToQuadbinCell(IntPtr point, int resolution); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_to_geompoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinCellToGeompoint(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_to_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinCellToGeom(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "quadbin_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinToStbox(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "quadbin_timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinTimestamptzToStbox(ulong cell, long t); + + [LibraryImport(DllPath, EntryPoint = "quadbin_tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinTstzspanToStbox(ulong cell, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double QuadbinCellArea(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "quadbin_index_to_string", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string QuadbinIndexToString(ulong index); + + [LibraryImport(DllPath, EntryPoint = "quadbin_string_to_index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong QuadbinStringToIndex(string str); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_to_quadkey", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string QuadbinCellToQuadkey(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "quadbin_grid_disk", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinGridDisk(ulong origin, int k); + + [LibraryImport(DllPath, EntryPoint = "quadbin_cell_to_children_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinCellToChildrenSet(ulong origin, int children_resolution); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tquadbininst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbininstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tquadbinseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "tquadbinseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinMake(ulong value, long t); + + [LibraryImport(DllPath, EntryPoint = "tquadbininst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbininstMake(ulong value, long t); + + [LibraryImport(DllPath, EntryPoint = "tquadbinseq_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinseqMake(IntPtr values, IntPtr times, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "tquadbinseqset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinseqsetMake(IntPtr sequences, int count); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TquadbinStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TquadbinEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TquadbinValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TquadbinValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "quadbin_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr QuadbinToSet(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "tbigint_to_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintToTquadbin(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_to_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinToTbigint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_quadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqQuadbinTquadbin(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tquadbin_quadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTquadbinQuadbin(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_quadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeQuadbinTquadbin(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tquadbin_quadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTquadbinQuadbin(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "always_eq_quadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqQuadbinTquadbin(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tquadbin_quadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTquadbinQuadbin(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "always_ne_quadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeQuadbinTquadbin(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tquadbin_quadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTquadbinQuadbin(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_tquadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTquadbinTquadbin(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_tquadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTquadbinTquadbin(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_tquadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTquadbinTquadbin(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_tquadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTquadbinTquadbin(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_quadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqQuadbinTquadbin(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_tquadbin_quadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTquadbinQuadbin(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "teq_tquadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTquadbinTquadbin(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tne_quadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneQuadbinTquadbin(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_tquadbin_quadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTquadbinQuadbin(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "tne_tquadbin_tquadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTquadbinTquadbin(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tquadbin_cell_to_quadkey", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TquadbinCellToQuadkey(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "raquet_pixtype_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong RaquetPixtypeSize(int pixtype); + + [LibraryImport(DllPath, EntryPoint = "raquet_pixtype_from_string", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RaquetPixtypeFromString(string str); + + [LibraryImport(DllPath, EntryPoint = "raquet_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "raquet_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string RaquetOut(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "raquet_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "raquet_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetAsWkb(IntPtr rq, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "raquet_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string RaquetAsHexwkb(IntPtr rq, byte variant, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "raquet_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetMake(ulong quadbin, int width, int height, int pixtype, double nodata, [MarshalAs(UnmanagedType.U1)] bool has_nodata, IntPtr pixels, ulong pixels_size); + + [LibraryImport(DllPath, EntryPoint = "raquet_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetCopy(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_read", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetRead(string path, ulong quadbin); + + [LibraryImport(DllPath, EntryPoint = "raquet_read_bytes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetReadBytes(IntPtr data, ulong size, ulong quadbin); + + [LibraryImport(DllPath, EntryPoint = "raquet_quadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong RaquetQuadbin(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_width", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RaquetWidth(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_height", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RaquetHeight(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_nodata", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double RaquetNodata(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_pixtype", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string RaquetPixtype(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_pixels", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetPixels(IntPtr rq, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "raquet_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint RaquetHash(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong RaquetHashExtended(IntPtr rq, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "raster_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterFromWkb(IntPtr wkb, ulong size); + + [LibraryImport(DllPath, EntryPoint = "raster_from_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterFromHexwkb(string hexwkb); + + [LibraryImport(DllPath, EntryPoint = "raster_as_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterAsWkb(IntPtr rast, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "raster_as_hexwkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string RasterAsHexwkb(IntPtr rast, IntPtr size_out); + + [LibraryImport(DllPath, EntryPoint = "raster_num_bands", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RasterNumBands(IntPtr rast); + + [LibraryImport(DllPath, EntryPoint = "raquet_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RaquetToStbox(IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raquet_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int RaquetCmp(IntPtr rq1, IntPtr rq2); + + [LibraryImport(DllPath, EntryPoint = "raquet_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RaquetEq(IntPtr rq1, IntPtr rq2); + + [LibraryImport(DllPath, EntryPoint = "raquet_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RaquetNe(IntPtr rq1, IntPtr rq2); + + [LibraryImport(DllPath, EntryPoint = "raquet_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RaquetLt(IntPtr rq1, IntPtr rq2); + + [LibraryImport(DllPath, EntryPoint = "raquet_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RaquetLe(IntPtr rq1, IntPtr rq2); + + [LibraryImport(DllPath, EntryPoint = "raquet_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RaquetGe(IntPtr rq1, IntPtr rq2); + + [LibraryImport(DllPath, EntryPoint = "raquet_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool RaquetGt(IntPtr rq1, IntPtr rq2); + + [LibraryImport(DllPath, EntryPoint = "raster_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx); + + [LibraryImport(DllPath, EntryPoint = "raster_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterAtValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx, IntPtr vspan); + + [LibraryImport(DllPath, EntryPoint = "raster_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterMinusValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx, IntPtr vspan); + + [LibraryImport(DllPath, EntryPoint = "eraster_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int ErasterValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx, IntPtr vspan); + + [LibraryImport(DllPath, EntryPoint = "araster_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int ArasterValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx, IntPtr vspan); + + [LibraryImport(DllPath, EntryPoint = "raster_value_gdal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterValueGdal(IntPtr traj, string path, int band); + + [LibraryImport(DllPath, EntryPoint = "raster_at_value_gdal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterAtValueGdal(IntPtr traj, string path, int band, IntPtr vspan); + + [LibraryImport(DllPath, EntryPoint = "raster_minus_value_gdal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterMinusValueGdal(IntPtr traj, string path, int band, IntPtr vspan); + + [LibraryImport(DllPath, EntryPoint = "eraster_value_gdal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int ErasterValueGdal(IntPtr traj, string path, int band, IntPtr vspan); + + [LibraryImport(DllPath, EntryPoint = "araster_value_gdal", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int ArasterValueGdal(IntPtr traj, string path, int band, IntPtr vspan); + + [LibraryImport(DllPath, EntryPoint = "raster_tile_value_quadbin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterTileValueQuadbin(IntPtr traj, IntPtr pixels, ulong pixels_size, int width, int height, ulong quadbin, int pixtype, double nodata, [MarshalAs(UnmanagedType.U1)] bool has_nodata); + + [LibraryImport(DllPath, EntryPoint = "raster_tile_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterTileValue(IntPtr traj, IntPtr rq); + + [LibraryImport(DllPath, EntryPoint = "raster_tile_value_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr RasterTileValueArray(IntPtr traj, IntPtr rqarr, int count); + + [LibraryImport(DllPath, EntryPoint = "trajectory_quadbins", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrajectoryQuadbins(IntPtr traj, uint zoom, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryIn(string str); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_from_mfjson", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryFromMfjson(string mfjson); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TrgeometryOut(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_as_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TrgeometryAsText(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_as_ewkt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TrgeometryAsEwkt(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "trgeometryinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryinstMake(IntPtr geom, IntPtr pose, long t); + + [LibraryImport(DllPath, EntryPoint = "trgeometryseq_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryseqMake(IntPtr geom, IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "trgeometryseqset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryseqsetMake(IntPtr geom, IntPtr sequences, int count, [MarshalAs(UnmanagedType.U1)] bool normalize); + + [LibraryImport(DllPath, EntryPoint = "trgeometryseqset_make_gaps", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryseqsetMakeGaps(IntPtr geom, IntPtr instants, int count, int interp, IntPtr maxt, double maxdist); + + [LibraryImport(DllPath, EntryPoint = "geometry_tpose_to_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr GeometryTposeToTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_to_tpose", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryToTpose(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_to_tgeompoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryToTgeompoint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_to_tgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryToTgeometry(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_end_instant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryEndInstant(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_end_sequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryEndSequence(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryGeom(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_instant_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryInstantN(IntPtr temp, int n); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_instants", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryInstants(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_points", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryPoints(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_yaw", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryYaw(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_pitch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryPitch(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_roll", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryRoll(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_segments", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySegments(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_sequence_n", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySequenceN(IntPtr temp, int i); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_sequences", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySequences(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_start_instant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryStartInstant(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_start_sequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryStartSequence(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TrgeometryValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_traversed_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryTraversedArea(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool unary_union); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_centroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryCentroid(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_convex_hull", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryConvexHull(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_body_point_trajectory", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryBodyPointTrajectory(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_space_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySpaceBoxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_space_time_boxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySpaceTimeBoxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryStboxes(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_split_n_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySplitNStboxes(IntPtr temp, int box_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_split_each_n_stboxes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySplitEachNStboxes(IntPtr temp, int elem_count, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_hausdorff_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TrgeometryHausdorffDistance(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_frechet_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TrgeometryFrechetDistance(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_dyntimewarp_distance", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TrgeometryDyntimewarpDistance(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_frechet_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryFrechetPath(IntPtr temp1, IntPtr temp2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_dyntimewarp_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryDyntimewarpPath(IntPtr temp1, IntPtr temp2, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TrgeometryLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_cumulative_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryCumulativeLength(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_angular_speed", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAngularSpeed(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_speed", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySpeed(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_twcentroid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryTwcentroid(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_append_tinstant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAppendTinstant(IntPtr temp, IntPtr inst, int interp, double maxdist, IntPtr maxt, [MarshalAs(UnmanagedType.U1)] bool expand); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_append_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAppendTsequence(IntPtr temp, IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool expand); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_delete_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryDeleteTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_delete_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryDeleteTstzset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_delete_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryDeleteTstzspan(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_delete_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryDeleteTstzspanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool connect); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_merge", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMerge(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_merge_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMergeArray(IntPtr temparr, int count); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryRound(IntPtr temp, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_set_interp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometrySetInterp(IntPtr temp, int interp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_as_tinstant", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAsTinstant(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_as_tsequence", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAsTsequence(IntPtr temp, string interp_str); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_as_tsequenceset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAsTsequenceset(IntPtr temp, string interp_str); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_after_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAfterTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_before_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryBeforeTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_restrict_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryRestrictValues(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_restrict_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryRestrictTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_restrict_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryRestrictTstzset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_restrict_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryRestrictTstzspan(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_restrict_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryRestrictTstzspanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_geom", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusGeom(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusStbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtValue(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusValue(IntPtr temp, IntPtr pose); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtValues(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusValues(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtTimestamptz(IntPtr temp, long t); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusTimestamptz(IntPtr temp, long t); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtTstzset(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_tstzset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusTstzset(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_tstzspan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusTstzspan(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtTstzspanset(IntPtr temp, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_tstzspanset", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusTstzspanset(IntPtr temp, IntPtr ss); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_at_elevation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryAtElevation(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "trgeometry_minus_elevation", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TrgeometryMinusElevation(IntPtr temp, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "tdistance_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tdistance_trgeometry_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTrgeometryTpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tdistance_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TdistanceTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_stbox_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadStboxTrgeometry(IntPtr box, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "nad_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nad_trgeometry_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTrgeometryStbox(IntPtr temp, IntPtr box); + + [LibraryImport(DllPath, EntryPoint = "nad_trgeometry_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTrgeometryTpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nad_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double NadTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nai_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "nai_trgeometry_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTrgeometryTpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "nai_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr NaiTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "shortestline_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "shortestline_trgeometry_tpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTrgeometryTpoint(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "shortestline_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ShortestlineTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "always_eq_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "always_ne_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "tne_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "econtains_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcontainsGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "acontains_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcontainsGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ecovers_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "acovers_geo_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversGeoTrgeometry(IntPtr gs, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ecovers_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EcoversTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "acovers_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AcoversTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "edisjoint_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdisjointTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdisjointTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "eintersects_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EintersectsTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "aintersects_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AintersectsTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "etouches_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EtouchesTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "atouches_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AtouchesTrgeometryGeo(IntPtr temp, IntPtr gs); + + [LibraryImport(DllPath, EntryPoint = "edwithin_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdwithinTrgeometryGeo(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "adwithin_trgeometry_geo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdwithinTrgeometryGeo(IntPtr temp, IntPtr gs, double dist); + + [LibraryImport(DllPath, EntryPoint = "edisjoint_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdisjointTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "adisjoint_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdisjointTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "eintersects_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EintersectsTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "aintersects_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AintersectsTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "edwithin_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EdwithinTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2, double dist); + + [LibraryImport(DllPath, EntryPoint = "adwithin_trgeometry_trgeometry", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AdwithinTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2, double dist); + + [LibraryImport(DllPath, EntryPoint = "s2cell_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong S2cellIn(string str); + + [LibraryImport(DllPath, EntryPoint = "s2cell_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string S2cellOut(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool S2cellEq(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "s2cell_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool S2cellNe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "s2cell_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool S2cellLt(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "s2cell_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool S2cellLe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "s2cell_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool S2cellGt(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "s2cell_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool S2cellGe(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int S2cellCmp(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "s2cell_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint S2cellHash(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong S2cellHashExtended(ulong cell, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "s2cell_is_valid_cell", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool S2cellIsValidCell(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_to_token", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string S2cellCellToToken(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_token_to_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong S2cellTokenToCell(string token); + + [LibraryImport(DllPath, EntryPoint = "s2cell_get_resolution", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint S2cellGetResolution(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_get_face", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint S2cellGetFace(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_to_parent", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong S2cellCellToParent(ulong cell, uint level); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_to_child", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong S2cellCellToChild(ulong cell, uint level, uint position); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_to_children", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellCellToChildren(ulong cell, uint level, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_contains", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool S2cellCellContains(ulong cell, ulong other); + + [LibraryImport(DllPath, EntryPoint = "s2cell_common_ancestor_level", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int S2cellCommonAncestorLevel(ulong a, ulong b); + + [LibraryImport(DllPath, EntryPoint = "s2cell_range_min", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong S2cellRangeMin(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_range_max", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong S2cellRangeMax(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_edge_neighbors", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellEdgeNeighbors(ulong cell, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "s2cell_point_to_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong S2cellPointToCell(double longitude, double latitude, uint level); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_area", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double S2cellCellArea(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_edge_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double S2cellEdgeLength(ulong cell, uint edge); + + [LibraryImport(DllPath, EntryPoint = "geo_to_s2cell_cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong GeoToS2cellCell(IntPtr point, int level); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_to_geogpoint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellCellToGeogpoint(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_to_geog", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellCellToGeog(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellToStbox(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_timestamptz_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellTimestamptzToStbox(ulong cell, long t); + + [LibraryImport(DllPath, EntryPoint = "s2cell_tstzspan_to_stbox", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellTstzspanToStbox(ulong cell, IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "s2cell_edge_neighbors_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellEdgeNeighborsSet(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "s2cell_cell_to_children_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellCellToChildrenSet(ulong cell, int children_level); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellIn(string str); + + [LibraryImport(DllPath, EntryPoint = "ts2cellinst_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellinstIn(string str); + + [LibraryImport(DllPath, EntryPoint = "ts2cellseq_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellseqIn(string str, int interp); + + [LibraryImport(DllPath, EntryPoint = "ts2cellseqset_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellseqsetIn(string str); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellMake(ulong value, long t); + + [LibraryImport(DllPath, EntryPoint = "ts2cellinst_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellinstMake(ulong value, long t); + + [LibraryImport(DllPath, EntryPoint = "ts2cellseq_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellseqMake(IntPtr values, IntPtr times, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); + + [LibraryImport(DllPath, EntryPoint = "ts2cellseqset_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellseqsetMake(IntPtr sequences, int count); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_start_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Ts2cellStartValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_end_value", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Ts2cellEndValue(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_value_n", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool Ts2cellValueN(IntPtr temp, int n, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_values", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellValues(IntPtr temp, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_value_at_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool Ts2cellValueAtTimestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); + + [LibraryImport(DllPath, EntryPoint = "s2cell_to_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr S2cellToSet(ulong cell); + + [LibraryImport(DllPath, EntryPoint = "tbigint_to_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TbigintToTs2cell(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_to_tbigint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellToTbigint(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_s2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqS2cellTs2cell(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_ts2cell_s2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTs2cellS2cell(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_s2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeS2cellTs2cell(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_ts2cell_s2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTs2cellS2cell(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "always_eq_s2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqS2cellTs2cell(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_eq_ts2cell_s2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTs2cellS2cell(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "always_ne_s2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeS2cellTs2cell(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "always_ne_ts2cell_s2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTs2cellS2cell(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "ever_eq_ts2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverEqTs2cellTs2cell(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ever_ne_ts2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int EverNeTs2cellTs2cell(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_eq_ts2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysEqTs2cellTs2cell(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "always_ne_ts2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AlwaysNeTs2cellTs2cell(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "teq_s2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqS2cellTs2cell(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "teq_ts2cell_s2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTs2cellS2cell(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "teq_ts2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TeqTs2cellTs2cell(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "tne_s2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneS2cellTs2cell(ulong cell, IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "tne_ts2cell_s2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTs2cellS2cell(IntPtr temp, ulong cell); + + [LibraryImport(DllPath, EntryPoint = "tne_ts2cell_ts2cell", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TneTs2cellTs2cell(IntPtr temp1, IntPtr temp2); + + [LibraryImport(DllPath, EntryPoint = "ts2cell_cell_to_token", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Ts2cellCellToToken(IntPtr temp); + + [LibraryImport(DllPath, EntryPoint = "bool_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BoolEq([MarshalAs(UnmanagedType.U1)] bool arg1, [MarshalAs(UnmanagedType.U1)] bool arg2); + + [LibraryImport(DllPath, EntryPoint = "bool_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BoolGe([MarshalAs(UnmanagedType.U1)] bool arg1, [MarshalAs(UnmanagedType.U1)] bool arg2); + + [LibraryImport(DllPath, EntryPoint = "bool_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BoolGt([MarshalAs(UnmanagedType.U1)] bool arg1, [MarshalAs(UnmanagedType.U1)] bool arg2); + + [LibraryImport(DllPath, EntryPoint = "bool_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint BoolHash([MarshalAs(UnmanagedType.U1)] bool arg); + + [LibraryImport(DllPath, EntryPoint = "bool_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong BoolHashExtended([MarshalAs(UnmanagedType.U1)] bool arg, long seed); + + [LibraryImport(DllPath, EntryPoint = "bool_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BoolLe([MarshalAs(UnmanagedType.U1)] bool arg1, [MarshalAs(UnmanagedType.U1)] bool arg2); + + [LibraryImport(DllPath, EntryPoint = "bool_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BoolLt([MarshalAs(UnmanagedType.U1)] bool arg1, [MarshalAs(UnmanagedType.U1)] bool arg2); + + [LibraryImport(DllPath, EntryPoint = "bool_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool BoolNe([MarshalAs(UnmanagedType.U1)] bool arg1, [MarshalAs(UnmanagedType.U1)] bool arg2); + + [LibraryImport(DllPath, EntryPoint = "bool_to_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr BoolToText([MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "add_date_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AddDateInt(int date, int days); + + [LibraryImport(DllPath, EntryPoint = "add_date_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AddDateInterval(int date, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "cmp_date_timestamp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CmpDateTimestamp(int date, long ts); + + [LibraryImport(DllPath, EntryPoint = "cmp_date_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CmpDateDate(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "cmp_date_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CmpDateTimestamptz(int date, long tstz); + + [LibraryImport(DllPath, EntryPoint = "cmp_timestamp_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CmpTimestampDate(long ts, int date); + + [LibraryImport(DllPath, EntryPoint = "cmp_timestamptz_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CmpTimestamptzDate(long tstz, int date); + + [LibraryImport(DllPath, EntryPoint = "date_extract", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DateExtract(int date, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "date_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint DateHash(int date); + + [LibraryImport(DllPath, EntryPoint = "date_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong DateHashExtended(int date, long seed); + + [LibraryImport(DllPath, EntryPoint = "date_is_finite", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool DateIsFinite(int date); + + [LibraryImport(DllPath, EntryPoint = "date_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DateLarger(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "date_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DateMake(int year, int mon, int mday); + + [LibraryImport(DllPath, EntryPoint = "date_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DateSmaller(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "date_time_to_timestamp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DateTimeToTimestamp(int date, long time); + + [LibraryImport(DllPath, EntryPoint = "date_to_timestamp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DateToTimestamp(int date); + + [LibraryImport(DllPath, EntryPoint = "date_to_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DateToTimestamptz(int date); + + [LibraryImport(DllPath, EntryPoint = "eq_date_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqDateDate(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "eq_date_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqDateTimestamp(int date, long ts); + + [LibraryImport(DllPath, EntryPoint = "eq_date_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqDateTimestamptz(int date, long tstz); + + [LibraryImport(DllPath, EntryPoint = "eq_timestamp_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqTimestampDate(long ts, int date); + + [LibraryImport(DllPath, EntryPoint = "eq_timestamptz_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqTimestamptzDate(long tstz, int date); + + [LibraryImport(DllPath, EntryPoint = "ge_date_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeDateDate(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "ge_date_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeDateTimestamp(int date, long ts); + + [LibraryImport(DllPath, EntryPoint = "ge_date_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeDateTimestamptz(int date, long tstz); + + [LibraryImport(DllPath, EntryPoint = "ge_timestamp_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeTimestampDate(long ts, int date); + + [LibraryImport(DllPath, EntryPoint = "ge_timestamptz_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeTimestamptzDate(long tstz, int date); + + [LibraryImport(DllPath, EntryPoint = "gt_date_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtDateDate(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "gt_date_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtDateTimestamp(int date, long ts); + + [LibraryImport(DllPath, EntryPoint = "gt_date_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtDateTimestamptz(int date, long tstz); + + [LibraryImport(DllPath, EntryPoint = "gt_timestamp_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtTimestampDate(long ts, int date); + + [LibraryImport(DllPath, EntryPoint = "gt_timestamptz_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtTimestamptzDate(long tstz, int date); + + [LibraryImport(DllPath, EntryPoint = "le_date_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeDateDate(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "le_date_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeDateTimestamp(int date, long ts); + + [LibraryImport(DllPath, EntryPoint = "le_date_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeDateTimestamptz(int date, long tstz); + + [LibraryImport(DllPath, EntryPoint = "le_timestamp_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeTimestampDate(long ts, int date); + + [LibraryImport(DllPath, EntryPoint = "le_timestamptz_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeTimestamptzDate(long tstz, int date); + + [LibraryImport(DllPath, EntryPoint = "lt_date_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtDateDate(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "lt_date_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtDateTimestamp(int date, long ts); + + [LibraryImport(DllPath, EntryPoint = "lt_date_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtDateTimestamptz(int date, long tstz); + + [LibraryImport(DllPath, EntryPoint = "lt_timestamp_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtTimestampDate(long ts, int date); + + [LibraryImport(DllPath, EntryPoint = "lt_timestamptz_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtTimestamptzDate(long tstz, int date); + + [LibraryImport(DllPath, EntryPoint = "minus_date_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MinusDateDate(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "minus_date_int", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MinusDateInt(int date, int days); + + [LibraryImport(DllPath, EntryPoint = "minus_date_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MinusDateInterval(int date, IntPtr span); + + [LibraryImport(DllPath, EntryPoint = "ne_date_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeDateDate(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "ne_date_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeDateTimestamp(int date, long ts); + + [LibraryImport(DllPath, EntryPoint = "ne_date_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeDateTimestamptz(int date, long tstz); + + [LibraryImport(DllPath, EntryPoint = "ne_timestamp_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeTimestampDate(long ts, int date); + + [LibraryImport(DllPath, EntryPoint = "ne_timestamptz_date", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeTimestamptzDate(long tstz, int date); + + [LibraryImport(DllPath, EntryPoint = "timestamp_to_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TimestampToDate(long ts); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_date", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TimestamptzToDate(long tstz); + + [LibraryImport(DllPath, EntryPoint = "add_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float AddFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "add_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double AddFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "add_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double AddFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "add_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double AddFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "div_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float DivFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "div_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DivFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "div_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DivFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "div_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double DivFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "eq_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "eq_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "eq_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "eq_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "float4_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Float4Abs(float num); + + [LibraryImport(DllPath, EntryPoint = "float4_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Float4Cmp(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "float4_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint Float4Hash(float num); + + [LibraryImport(DllPath, EntryPoint = "float4_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Float4HashExtended(float num, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "float4_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Float4In(string num); + + [LibraryImport(DllPath, EntryPoint = "float4_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Float4Larger(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "float4_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string Float4Out(float num); + + [LibraryImport(DllPath, EntryPoint = "float4_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Float4Smaller(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "float4_to_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float4ToFloat8(float num); + + [LibraryImport(DllPath, EntryPoint = "float4_to_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Float4ToInt16(float num); + + [LibraryImport(DllPath, EntryPoint = "float4_to_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Float4ToInt32(float num); + + [LibraryImport(DllPath, EntryPoint = "float4_um", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Float4Um(float num); + + [LibraryImport(DllPath, EntryPoint = "float4_up", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Float4Up(float num); + + [LibraryImport(DllPath, EntryPoint = "float8_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Abs(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_acos", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Acos(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_acosd", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Acosd(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_acosh", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Acosh(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_asin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Asin(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_asind", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Asind(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_asinh", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Asinh(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_atan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Atan(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_atan2", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Atan2(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "float8_atan2d", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Atan2d(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "float8_atand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Atand(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_atanh", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Atanh(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_cbrt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Cbrt(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_ceil", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Ceil(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Float8Cmp(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "float8_cos", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Cos(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_cosd", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Cosd(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_cosh", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Cosh(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_cot", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Cot(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_cotd", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Cotd(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_degrees", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Degrees(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_exp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Exp(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_floor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Floor(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_gamma", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Gamma(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint Float8Hash(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Float8HashExtended(double num, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "float8_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8In(string str); + + [LibraryImport(DllPath, EntryPoint = "float8_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Larger(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "float8_lgamma", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Lgamma(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_ln", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Ln(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_log10", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Log10(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_pi", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Pi(); + + [LibraryImport(DllPath, EntryPoint = "float8_pow", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Pow(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "float8_radians", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Radians(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_rint", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Rint(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Round(double num, int maxdd); + + [LibraryImport(DllPath, EntryPoint = "float8_sign", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Sign(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_sin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Sin(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_sind", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Sind(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_sinh", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Sinh(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Smaller(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "float8_sqrt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Sqrt(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_tan", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Tan(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_tand", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Tand(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_tanh", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Tanh(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_to_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Float8ToFloat4(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_to_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Float8ToInt16(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_to_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Float8ToInt32(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Trunc(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_um", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Um(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_up", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Float8Up(double num); + + [LibraryImport(DllPath, EntryPoint = "float8_width_bucket", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Float8WidthBucket(double num, double bound1, double bound2, int count); + + [LibraryImport(DllPath, EntryPoint = "ge_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "ge_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "ge_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "ge_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "gt_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "gt_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "gt_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "gt_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "int16_to_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Int16ToFloat4(short num); + + [LibraryImport(DllPath, EntryPoint = "int16_to_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Int16ToFloat8(short num); + + [LibraryImport(DllPath, EntryPoint = "int32_to_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Int32ToFloat4(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_to_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Int32ToFloat8(int num); + + [LibraryImport(DllPath, EntryPoint = "le_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "le_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "le_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "le_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "lt_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "lt_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "lt_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "lt_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "minus_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float MinusFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "minus_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MinusFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "minus_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MinusFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "minus_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MinusFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "mul_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float MulFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "mul_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MulFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "mul_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MulFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "mul_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MulFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "ne_float4_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeFloat4Float4(float num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "ne_float4_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeFloat4Float8(float num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "ne_float8_float4", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeFloat8Float4(double num1, float num2); + + [LibraryImport(DllPath, EntryPoint = "ne_float8_float8", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeFloat8Float8(double num1, double num2); + + [LibraryImport(DllPath, EntryPoint = "add_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short AddInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "add_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AddInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "add_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long AddInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "add_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AddInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "add_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int AddInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "add_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long AddInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "add_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long AddInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "add_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long AddInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "add_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long AddInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "bool_to_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int BoolToInt32([MarshalAs(UnmanagedType.U1)] bool b); + + [LibraryImport(DllPath, EntryPoint = "div_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short DivInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "div_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DivInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "div_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DivInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "div_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DivInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "div_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int DivInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "div_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DivInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "div_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DivInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "div_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DivInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "div_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DivInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "eq_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "float4_to_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Float4ToInt64(float num); + + [LibraryImport(DllPath, EntryPoint = "float8_to_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Float8ToInt64(double num); + + [LibraryImport(DllPath, EntryPoint = "ge_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "ge_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "ge_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "ge_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "ge_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "ge_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "ge_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "ge_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "ge_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "gt_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "int16_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Abs(short num); + + [LibraryImport(DllPath, EntryPoint = "int16_and", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16And(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "int16_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint Int16Hash(short val); + + [LibraryImport(DllPath, EntryPoint = "int16_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Int16HashExtended(short val, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "int16_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16In(string str); + + [LibraryImport(DllPath, EntryPoint = "int16_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Larger(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "int16_mod", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Mod(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "int16_not", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Not(short num); + + [LibraryImport(DllPath, EntryPoint = "int16_or", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Or(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "int16_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string Int16Out(short num); + + [LibraryImport(DllPath, EntryPoint = "int16_shl", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Shl(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int16_shr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Shr(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int16_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Smaller(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "int16_to_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int16ToInt32(short num); + + [LibraryImport(DllPath, EntryPoint = "int16_to_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int16ToInt64(short num); + + [LibraryImport(DllPath, EntryPoint = "int16_uminus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Uminus(short num); + + [LibraryImport(DllPath, EntryPoint = "int16_uplus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Uplus(short num); + + [LibraryImport(DllPath, EntryPoint = "int16_xor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int16Xor(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "int32_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Abs(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_and", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32And(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Cmp(int l, int r); + + [LibraryImport(DllPath, EntryPoint = "int32_gcd", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Gcd(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint Int32Hash(int val); + + [LibraryImport(DllPath, EntryPoint = "int32_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Int32HashExtended(int val, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "int32_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32In(string str); + + [LibraryImport(DllPath, EntryPoint = "int32_inc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Inc(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Larger(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_lcm", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Lcm(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_mod", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Mod(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_not", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Not(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_or", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Or(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string Int32Out(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_shl", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Shl(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_shr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Shr(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Smaller(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int32_to_bool", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool Int32ToBool(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_to_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int32ToInt16(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_to_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int32ToInt64(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_uminus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Uminus(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_uplus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Uplus(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_xor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int32Xor(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int64_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Abs(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_and", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64And(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "int64_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int64Cmp(long l, long r); + + [LibraryImport(DllPath, EntryPoint = "int64_dec", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Dec(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_gcd", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Gcd(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "int64_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint Int64Hash(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong Int64HashExtended(long num, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "int64_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64In(string str); + + [LibraryImport(DllPath, EntryPoint = "int64_inc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Inc(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Larger(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "int64_lcm", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Lcm(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "int64_mod", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Mod(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "int64_not", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Not(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_or", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Or(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "int64_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string Int64Out(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_shl", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Shl(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int64_shr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Shr(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "int64_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Smaller(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "int64_to_float4", StringMarshalling = StringMarshalling.Utf8)] + internal static partial float Int64ToFloat4(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_to_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double Int64ToFloat8(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_to_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short Int64ToInt16(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_to_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int Int64ToInt32(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_uminus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Uminus(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_uplus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Uplus(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_xor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Int64Xor(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "le_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "le_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "le_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "le_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "le_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "le_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "le_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "le_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "le_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "lt_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short MinusInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MinusInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MinusInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MinusInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "minus_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial short MulInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MulInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MulInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MulInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int MulInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MulInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MulInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MulInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "mul_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MulInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int16_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt16Int16(short num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int16_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt16Int32(short num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int16_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt16Int64(short num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int32_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt32Int16(int num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int32_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt32Int32(int num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int32_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt32Int64(int num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int64_int16", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt64Int16(long num1, short num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int64_int32", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt64Int32(long num1, int num2); + + [LibraryImport(DllPath, EntryPoint = "ne_int64_int64", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeInt64Int64(long num1, long num2); + + [LibraryImport(DllPath, EntryPoint = "add_interval_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr AddIntervalInterval(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "div_interval_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr DivIntervalFloat8(IntPtr interv, double factor); + + [LibraryImport(DllPath, EntryPoint = "interval_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalCopy(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "interval_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool IntervalEq(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_extract", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalExtract(IntPtr interv, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "interval_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool IntervalGe(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool IntervalGt(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint IntervalHash(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "interval_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong IntervalHashExtended(IntPtr interv, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "interval_is_finite", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool IntervalIsFinite(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "interval_justify_days", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalJustifyDays(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "interval_justify_hours", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalJustifyHours(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "interval_justify_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalJustifyInterval(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "interval_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalLarger(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool IntervalLe(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool IntervalLt(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalMake(int years, int months, int weeks, int days, int hours, int mins, double secs); + + [LibraryImport(DllPath, EntryPoint = "interval_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool IntervalNe(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_negate", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalNegate(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "interval_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double IntervalPart(IntPtr interv, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "interval_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalScale(IntPtr interv, int typmod); + + [LibraryImport(DllPath, EntryPoint = "interval_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalSmaller(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "interval_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IntervalTrunc(IntPtr interv, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "minus_interval_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusIntervalInterval(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "mul_float8_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulFloat8Interval(double factor, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "mul_interval_float8", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MulIntervalFloat8(IntPtr interv, double factor); + + [LibraryImport(DllPath, EntryPoint = "char_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint CharHash(byte c); + + [LibraryImport(DllPath, EntryPoint = "char_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong CharHashExtended(byte c, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "icu_unicode_version", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr IcuUnicodeVersion(); + + [LibraryImport(DllPath, EntryPoint = "int32_to_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int32ToBin(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_to_hex", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int32ToHex(int num); + + [LibraryImport(DllPath, EntryPoint = "int32_to_oct", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int32ToOct(int num); + + [LibraryImport(DllPath, EntryPoint = "int64_to_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int64ToBin(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_to_hex", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int64ToHex(long num); + + [LibraryImport(DllPath, EntryPoint = "int64_to_oct", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Int64ToOct(long num); + + [LibraryImport(DllPath, EntryPoint = "text_cat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextCat(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_concat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextConcat(IntPtr textarr, int count); + + [LibraryImport(DllPath, EntryPoint = "text_concat_ws", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextConcatWs(IntPtr textarr, int count, IntPtr sep); + + [LibraryImport(DllPath, EntryPoint = "text_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextEq(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextGe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextGt(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TextHash(IntPtr txt, uint collid); + + [LibraryImport(DllPath, EntryPoint = "text_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TextHashExtended(IntPtr txt, ulong seed, uint collid); + + [LibraryImport(DllPath, EntryPoint = "text_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextLarger(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextLe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_left", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextLeft(IntPtr txt, int n); + + [LibraryImport(DllPath, EntryPoint = "text_len", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TextLen(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "text_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextLt(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextNe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_octetlen", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TextOctetlen(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "text_overlay", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextOverlay(IntPtr txt1, IntPtr txt2, int from, int count); + + [LibraryImport(DllPath, EntryPoint = "text_overlay_no_len", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextOverlayNoLen(IntPtr txt1, IntPtr txt2, int from); + + [LibraryImport(DllPath, EntryPoint = "text_pattern_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextPatternGe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_pattern_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextPatternGt(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_pattern_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextPatternLe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_pattern_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextPatternLt(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_pos", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TextPos(IntPtr txt, IntPtr search); + + [LibraryImport(DllPath, EntryPoint = "text_replace", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextReplace(IntPtr txt, IntPtr from, IntPtr to); + + [LibraryImport(DllPath, EntryPoint = "text_reverse", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextReverse(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "text_right", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextRight(IntPtr txt, int n); + + [LibraryImport(DllPath, EntryPoint = "text_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextSmaller(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_split_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextSplitPart(IntPtr txt, IntPtr sep, int fldnum); + + [LibraryImport(DllPath, EntryPoint = "text_starts_with", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TextStartsWith(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "text_substr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextSubstr(IntPtr txt, int start, int length); + + [LibraryImport(DllPath, EntryPoint = "text_substr_no_len", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TextSubstrNoLen(IntPtr txt, int start); + + [LibraryImport(DllPath, EntryPoint = "unicode_assigned", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool UnicodeAssigned(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "unicode_is_normalized", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool UnicodeIsNormalized(IntPtr txt, IntPtr fmt); + + [LibraryImport(DllPath, EntryPoint = "unicode_normalize_func", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnicodeNormalizeFunc(IntPtr txt, IntPtr fmt); + + [LibraryImport(DllPath, EntryPoint = "unicode_version", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr UnicodeVersion(); + + [LibraryImport(DllPath, EntryPoint = "unistr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Unistr(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "date_timetz_to_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long DateTimetzToTimestamptz(int date, IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "interval_to_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long IntervalToTime(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "minus_time_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusTimeInterval(long time, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "minus_time_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusTimeTime(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "minus_timetz_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusTimetzInterval(IntPtr timetz, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "plus_time_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PlusTimeInterval(long time, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "plus_timetz_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PlusTimetzInterval(IntPtr timetz, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "time_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TimeCmp(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimeEq(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_extract", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimeExtract(long time, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "time_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimeGe(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimeGt(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TimeHash(long time); + + [LibraryImport(DllPath, EntryPoint = "time_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TimeHashExtended(long time, int seed); + + [LibraryImport(DllPath, EntryPoint = "time_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimeLarger(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimeLe(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimeLt(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimeMake(int tm_hour, int tm_min, double sec); + + [LibraryImport(DllPath, EntryPoint = "time_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimeNe(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_overlaps", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimeOverlaps(long ts1, long te1, long ts2, long te2); + + [LibraryImport(DllPath, EntryPoint = "time_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TimePart(long time, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "time_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimeScale(long date, int typmod); + + [LibraryImport(DllPath, EntryPoint = "time_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimeSmaller(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "time_to_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimeToInterval(long time); + + [LibraryImport(DllPath, EntryPoint = "time_to_timetz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimeToTimetz(long time); + + [LibraryImport(DllPath, EntryPoint = "timestamp_to_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampToTime(long ts); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzToTime(long tztz); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_timetz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzToTimetz(long tztz); + + [LibraryImport(DllPath, EntryPoint = "timetz_at_local", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzAtLocal(IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "timetz_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TimetzCmp(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimetzEq(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_extract", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzExtract(IntPtr timetz, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "timetz_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimetzGe(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimetzGt(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TimetzHash(IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "timetz_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TimetzHashExtended(IntPtr timetz, long seed); + + [LibraryImport(DllPath, EntryPoint = "timetz_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "timetz_izone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzIzone(IntPtr timetz, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "timetz_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzLarger(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimetzLe(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimetzLt(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimetzNe(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzCopy(IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "timetz_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string TimetzOut(IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "timetz_overlaps", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimetzOverlaps(IntPtr ts1, IntPtr te1, IntPtr ts2, IntPtr te2); + + [LibraryImport(DllPath, EntryPoint = "timetz_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TimetzPart(IntPtr timetz, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "timetz_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzScale(IntPtr timetz, int typmod); + + [LibraryImport(DllPath, EntryPoint = "timetz_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzSmaller(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "timetz_to_time", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimetzToTime(IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "timetz_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimetzZone(IntPtr timetz, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "add_timestamp_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long AddTimestampInterval(long ts, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "add_timestamptz_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long AddTimestamptzInterval(long tstz, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "add_timestamptz_interval_at_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long AddTimestamptzIntervalAtZone(long tstz, IntPtr interv, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "cmp_timestamp_timestamp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CmpTimestampTimestamp(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "cmp_timestamp_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CmpTimestampTimestamptz(long ts, long tstz); + + [LibraryImport(DllPath, EntryPoint = "cmp_timestamptz_timestamp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int CmpTimestamptzTimestamp(long tstz, long ts); + + [LibraryImport(DllPath, EntryPoint = "eq_timestamp_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqTimestampTimestamp(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "eq_timestamp_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqTimestampTimestamptz(long ts, long tstz); + + [LibraryImport(DllPath, EntryPoint = "eq_timestamptz_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqTimestamptzTimestamp(long tstz, long ts); + + [LibraryImport(DllPath, EntryPoint = "eq_timestamptz_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool EqTimestamptzTimestamptz(long tstz1, long tstz2); + + [LibraryImport(DllPath, EntryPoint = "float8_to_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long Float8ToTimestamptz(double seconds); + + [LibraryImport(DllPath, EntryPoint = "gt_timestamp_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtTimestampTimestamp(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "gt_timestamp_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtTimestampTimestamptz(long ts, long tstz); + + [LibraryImport(DllPath, EntryPoint = "gt_timestamptz_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GtTimestamptzTimestamp(long tstz, long ts); + + [LibraryImport(DllPath, EntryPoint = "ge_timestamp_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeTimestampTimestamp(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "ge_timestamp_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeTimestampTimestamptz(long ts, long tstz); + + [LibraryImport(DllPath, EntryPoint = "ge_timestamptz_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool GeTimestamptzTimestamp(long tstz, long ts); + + [LibraryImport(DllPath, EntryPoint = "le_timestamp_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeTimestampTimestamp(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "le_timestamp_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeTimestampTimestamptz(long ts, long tstz); + + [LibraryImport(DllPath, EntryPoint = "le_timestamptz_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LeTimestamptzTimestamp(long tstz, long ts); + + [LibraryImport(DllPath, EntryPoint = "lt_timestamp_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtTimestampTimestamp(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "lt_timestamp_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtTimestampTimestamptz(long ts, long tstz); + + [LibraryImport(DllPath, EntryPoint = "lt_timestamptz_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool LtTimestamptzTimestamp(long tstz, long ts); + + [LibraryImport(DllPath, EntryPoint = "minus_timestamp_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusTimestampInterval(long ts, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "minus_timestamp_timestamp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusTimestampTimestamp(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "minus_timestamptz_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusTimestamptzInterval(long tstz, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "minus_timestamptz_interval_at_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long MinusTimestamptzIntervalAtZone(long tstz, IntPtr interv, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "minus_timestamptz_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MinusTimestamptzTimestamptz(long tstz1, long tstz2); + + [LibraryImport(DllPath, EntryPoint = "ne_timestamp_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeTimestampTimestamp(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "ne_timestamp_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeTimestampTimestamptz(long ts, long tstz); + + [LibraryImport(DllPath, EntryPoint = "ne_timestamptz_timestamp", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool NeTimestamptzTimestamp(long tstz, long ts); + + [LibraryImport(DllPath, EntryPoint = "timestamp_age", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestampAge(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "timestamp_at_local", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampAtLocal(long ts); + + [LibraryImport(DllPath, EntryPoint = "timestamp_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampBin(long ts, IntPtr stride, long origin); + + [LibraryImport(DllPath, EntryPoint = "timestamp_extract", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestampExtract(long ts, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "timestamp_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint TimestampHash(long ts); + + [LibraryImport(DllPath, EntryPoint = "timestamp_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TimestampHashExtended(long tstz, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "timestamp_is_finite", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimestampIsFinite(long ts); + + [LibraryImport(DllPath, EntryPoint = "timestamp_izone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampIzone(long ts, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "time_of_day", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimeOfDay(); + + [LibraryImport(DllPath, EntryPoint = "timestamp_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampLarger(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "timestamp_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampMake(int year, int month, int mday, int hour, int min, double sec); + + [LibraryImport(DllPath, EntryPoint = "timestamp_overlaps", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimestampOverlaps(long ts1, long te1, long ts2, long te2); + + [LibraryImport(DllPath, EntryPoint = "timestamp_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TimestampPart(long ts, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "timestamp_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampScale(long ts, int typmod); + + [LibraryImport(DllPath, EntryPoint = "timestamp_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampSmaller(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "timestamp_to_timestamptz", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampToTimestamptz(long ts); + + [LibraryImport(DllPath, EntryPoint = "timestamp_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampTrunc(long ts, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "timestamp_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestampZone(long ts, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_age", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzAge(long tstz1, long tstz2); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_at_local", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzAtLocal(long tstz); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzBin(long tstz, IntPtr stride, long origin); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_extract", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr TimestamptzExtract(long tstz, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int TimestamptzHash(long tstz); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong TimestamptzHashExtended(long tstz, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_izone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzIzone(long tstz, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzMake(int year, int month, int day, int hour, int min, double sec); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_make_at_timezone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzMakeAtTimezone(int year, int month, int day, int hour, int min, double sec, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_overlaps", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool TimestamptzOverlaps(long ts1, long te1, long ts2, long te2); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double TimestamptzPart(long tstz, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzScale(long tstz, int typmod); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_shift", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzShift(long tstz, IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_to_timestamp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzToTimestamp(long tstz); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzTrunc(long tstz, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_trunc_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzTruncZone(long tstz, IntPtr units, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "timestamptz_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long TimestamptzZone(long tstz, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgNumericOut(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_typmodin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgNumericTypmodin(IntPtr tl, int n); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_typmodout", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgNumericTypmodout(int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumeric(IntPtr num, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_abs", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericAbs(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_uplus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericUplus(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_uminus", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericUminus(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_sign", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericSign(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_round", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericRound(IntPtr num, int scale); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericTrunc(IntPtr num, int scale); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_ceil", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericCeil(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_floor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericFloor(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgNumericCmp(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgNumericEq(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgNumericNe(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgNumericGt(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgNumericGe(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgNumericLt(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgNumericLe(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_add", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericAdd(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_sub", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericSub(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_mul", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericMul(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_div", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericDiv(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_div_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericDivTrunc(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_mod", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericMod(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_inc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericInc(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericSmaller(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericLarger(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_gcd", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericGcd(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_lcm", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericLcm(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_fac", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericFac(long num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_sqrt", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericSqrt(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_exp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericExp(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_ln", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericLn(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_log", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericLog(IntPtr num1, IntPtr num2); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgNumericScale(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_min_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgNumericMinScale(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "pg_numeric_trim_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgNumericTrimScale(IntPtr num); + + [LibraryImport(DllPath, EntryPoint = "meos_strtod", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double MeosStrtod(string str, IntPtr endptr); + + [LibraryImport(DllPath, EntryPoint = "pg_float4_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgFloat4Cmp(float a, float b); + + [LibraryImport(DllPath, EntryPoint = "pg_float8_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgFloat8Cmp(double a, double b); + + [LibraryImport(DllPath, EntryPoint = "pg_cstring_to_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgCstringToText(string str); + + [LibraryImport(DllPath, EntryPoint = "pg_icu_unicode_version", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIcuUnicodeVersion(); + + [LibraryImport(DllPath, EntryPoint = "pg_text_concat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextConcat(IntPtr textarr, int count); + + [LibraryImport(DllPath, EntryPoint = "pg_text_concat_ws", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextConcatWs(IntPtr textarr, int count, IntPtr sep); + + [LibraryImport(DllPath, EntryPoint = "pg_text_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextGe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextGt(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextLarger(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextLe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_left", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextLeft(IntPtr txt, int n); + + [LibraryImport(DllPath, EntryPoint = "pg_text_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextLt(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_pattern_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextPatternGe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_pattern_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextPatternGt(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_pattern_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextPatternLe(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_pattern_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextPatternLt(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_reverse", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextReverse(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "pg_text_right", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextRight(IntPtr txt, int n); + + [LibraryImport(DllPath, EntryPoint = "pg_text_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextSmaller(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_starts_with", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTextStartsWith(IntPtr txt1, IntPtr txt2); + + [LibraryImport(DllPath, EntryPoint = "pg_text_substr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextSubstr(IntPtr txt, int start, int length); + + [LibraryImport(DllPath, EntryPoint = "pg_text_substr_no_len", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTextSubstrNoLen(IntPtr txt, int start); + + [LibraryImport(DllPath, EntryPoint = "pg_unicode_assigned", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgUnicodeAssigned(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "pg_unicode_is_normalized", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgUnicodeIsNormalized(IntPtr txt, IntPtr fmt); + + [LibraryImport(DllPath, EntryPoint = "pg_unicode_normalize_func", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgUnicodeNormalizeFunc(IntPtr txt, IntPtr fmt); + + [LibraryImport(DllPath, EntryPoint = "pg_unicode_version", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgUnicodeVersion(); + + [LibraryImport(DllPath, EntryPoint = "pg_unistr", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgUnistr(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "pg_text_to_cstring", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgTextToCstring(IntPtr txt); + + [LibraryImport(DllPath, EntryPoint = "bytea_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr ByteaCopy(IntPtr ba); + + [LibraryImport(DllPath, EntryPoint = "pg_date_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgDateIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pg_date_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgDateLarger(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "pg_date_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgDateMake(int year, int mon, int mday); + + [LibraryImport(DllPath, EntryPoint = "pg_date_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgDateSmaller(int date1, int date2); + + [LibraryImport(DllPath, EntryPoint = "pg_date_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgDateOut(int date); + + [LibraryImport(DllPath, EntryPoint = "pg_time_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgTimeCmp(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_time_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimeEq(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_time_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimeGe(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_time_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimeGt(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_time_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PgTimeHash(long time); + + [LibraryImport(DllPath, EntryPoint = "pg_time_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PgTimeHashExtended(long time, int seed); + + [LibraryImport(DllPath, EntryPoint = "pg_time_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimeIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_time_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimeLarger(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_time_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimeLe(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_time_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimeLt(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_time_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimeNe(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_time_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgTimeOut(long time); + + [LibraryImport(DllPath, EntryPoint = "pg_time_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PgTimePart(long time, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "pg_time_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimeScale(long date, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_time_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimeSmaller(long time1, long time2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_at_local", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimetzAtLocal(IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgTimetzCmp(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimetzEq(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimetzGe(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimetzGt(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PgTimetzHash(IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PgTimetzHashExtended(IntPtr timetz, long seed); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimetzIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_izone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimetzIzone(IntPtr timetz, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimetzLe(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimetzLt(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgTimetzNe(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgTimetzOut(IntPtr timetz); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimetzLarger(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PgTimetzPart(IntPtr timetz, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimetzScale(IntPtr timetz, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimetzSmaller(IntPtr timetz1, IntPtr timetz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timetz_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimetzZone(IntPtr timetz, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_justify_days", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIntervalJustifyDays(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_justify_hours", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIntervalJustifyHours(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_justify_interval", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIntervalJustifyInterval(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_age", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimestampAge(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_at_local", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampAtLocal(long ts); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampBin(long ts, IntPtr stride, long origin); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PgTimestampHash(long ts); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PgTimestampHashExtended(long tstz, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_izone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampIzone(long ts, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampLarger(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgTimestampOut(long ts); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PgTimestampPart(long ts, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampScale(long ts, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampSmaller(long ts1, long ts2); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampTrunc(long ts, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamp_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestampZone(long ts, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_age", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgTimestamptzAge(long tstz1, long tstz2); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_bin", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestamptzBin(long tstz, IntPtr stride, long origin); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PgTimestamptzHash(long tstz); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PgTimestamptzHashExtended(long tstz, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestamptzIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_izone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestamptzIzone(long tstz, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgTimestamptzOut(long tstz); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PgTimestamptzPart(long tstz, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestamptzScale(long tstz, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestamptzTrunc(long tstz, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_trunc_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestamptzTruncZone(long tstz, IntPtr units, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_zone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestamptzZone(long tstz, IntPtr zone); + + [LibraryImport(DllPath, EntryPoint = "pg_timestamptz_at_local", StringMarshalling = StringMarshalling.Utf8)] + internal static partial long PgTimestamptzAtLocal(long tstz); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgIntervalCmp(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgIntervalEq(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgIntervalGe(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgIntervalGt(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PgIntervalHash(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PgIntervalHashExtended(IntPtr interv, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIntervalIn(string str, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_larger", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIntervalLarger(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgIntervalLe(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgIntervalLt(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgIntervalNe(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgIntervalOut(IntPtr interv); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_part", StringMarshalling = StringMarshalling.Utf8)] + internal static partial double PgIntervalPart(IntPtr interv, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_scale", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIntervalScale(IntPtr interv, int typmod); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_smaller", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIntervalSmaller(IntPtr interv1, IntPtr interv2); + + [LibraryImport(DllPath, EntryPoint = "pg_interval_trunc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgIntervalTrunc(IntPtr interv, IntPtr units); + + [LibraryImport(DllPath, EntryPoint = "pg_json_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pg_json_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgJsonOut(IntPtr js); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_from_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbFromText(IntPtr txt, [MarshalAs(UnmanagedType.U1)] bool unique_keys); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_to_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbToText(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgJsonbOut(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "pg_json_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonMake(IntPtr keyvalarr, int count); + + [LibraryImport(DllPath, EntryPoint = "pg_json_make_two_arg", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonMakeTwoArg(IntPtr keys, IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbCopy(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbMake(IntPtr keys_vals, int count); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_make_two_arg", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbMakeTwoArg(IntPtr keys, IntPtr values, int count); + + [LibraryImport(DllPath, EntryPoint = "pg_json_array_elements", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonArrayElements(IntPtr js, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_json_array_elements_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonArrayElementsText(IntPtr js, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_json_array_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgJsonArrayLength(IntPtr js); + + [LibraryImport(DllPath, EntryPoint = "pg_json_each", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonEach(IntPtr js, IntPtr values, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_json_each_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonEachText(IntPtr js, IntPtr values, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_json_object_keys", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonObjectKeys(IntPtr js, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_json_typeof", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonTypeof(IntPtr js); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_array_elements", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbArrayElements(IntPtr jb, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_array_elements_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbArrayElementsText(IntPtr jb, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_array_length", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgJsonbArrayLength(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_cmp", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgJsonbCmp(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_contained", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbContained(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_contains", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbContains(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_each", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbEach(IntPtr jb, IntPtr values, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_each_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbEachText(IntPtr jb, IntPtr values, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_eq", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbEq(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_exists", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbExists(IntPtr jb, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_exists_array", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbExistsArray(IntPtr jb, IntPtr keys_elems, int keys_len, [MarshalAs(UnmanagedType.U1)] bool any); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_ge", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbGe(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_gt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbGt(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PgJsonbHash(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_hash_extended", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PgJsonbHashExtended(IntPtr jb, ulong seed); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_object_keys", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbObjectKeys(IntPtr jb, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "pg_json_array_element", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonArrayElement(IntPtr js, int element); + + [LibraryImport(DllPath, EntryPoint = "pg_json_array_element_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonArrayElementText(IntPtr js, int element); + + [LibraryImport(DllPath, EntryPoint = "pg_json_extract_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonExtractPath(IntPtr js, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "pg_json_extract_path_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonExtractPathText(IntPtr js, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "pg_json_object_field", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonObjectField(IntPtr js, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "pg_json_object_field_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonObjectFieldText(IntPtr js, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "pg_json_strip_nulls", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonStripNulls(IntPtr js, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_array_element", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbArrayElement(IntPtr jb, int element); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_array_element_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbArrayElementText(IntPtr jb, int element); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_concat", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbConcat(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_delete", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbDelete(IntPtr jb, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_delete_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbDeleteArray(IntPtr jb, IntPtr keys_elems, int keys_len); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_delete_index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbDeleteIndex(IntPtr jb, int idx); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_delete_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbDeletePath(IntPtr jb, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_extract_path", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbExtractPath(IntPtr jb, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_extract_path_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbExtractPathText(IntPtr jb, IntPtr path_elems, int path_len); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_insert", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbInsert(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool after); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_object_field", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbObjectField(IntPtr jb, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_object_field_text", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbObjectFieldText(IntPtr jb, IntPtr key); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_pretty", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbPretty(IntPtr jb); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_set", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbSet(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_set_lax", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbSetLax(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create, IntPtr handle_null); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_strip_nulls", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbStripNulls(IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_le", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbLe(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_lt", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbLt(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_ne", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbNe(IntPtr jb1, IntPtr jb2); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonpath_in", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonpathIn(string str); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonpath_out", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PgJsonpathOut(IntPtr jp); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonpath_copy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonpathCopy(IntPtr jp); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_path_exists", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PgJsonbPathExists(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_path_match", StringMarshalling = StringMarshalling.Utf8)] + [return: MarshalAs(UnmanagedType.U1)] + internal static partial bool PgJsonbPathMatch(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_path_query_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbPathQueryArray(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_path_query_first", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbPathQueryFirst(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); + + [LibraryImport(DllPath, EntryPoint = "pg_jsonb_path_query_all", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PgJsonbPathQueryAll(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz, IntPtr count); + + [LibraryImport(DllPath, EntryPoint = "hash", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint Hash(IntPtr h, IntPtr k); + + [LibraryImport(DllPath, EntryPoint = "create_hashtable", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CreateHashtable(uint minsize, IntPtr hashfunction, IntPtr key_eq_fn); + + [LibraryImport(DllPath, EntryPoint = "create_string_hashtable", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr CreateStringHashtable(); + + [LibraryImport(DllPath, EntryPoint = "hashtable_insert", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int HashtableInsert(IntPtr h, IntPtr k, IntPtr v); + + [LibraryImport(DllPath, EntryPoint = "hashtable_search", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr HashtableSearch(IntPtr h, IntPtr k); + + [LibraryImport(DllPath, EntryPoint = "hashtable_remove", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr HashtableRemove(IntPtr h, IntPtr k); + + [LibraryImport(DllPath, EntryPoint = "hash_str", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint HashStr(IntPtr str); + + [LibraryImport(DllPath, EntryPoint = "str_eq", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int StrEq(IntPtr str1, IntPtr str2); + + [LibraryImport(DllPath, EntryPoint = "hashtable_count", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint HashtableCount(IntPtr h); + + [LibraryImport(DllPath, EntryPoint = "hashtable_destroy", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void HashtableDestroy(IntPtr h, int free_values); + + [LibraryImport(DllPath, EntryPoint = "indexFor", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint IndexFor(uint tablelength, uint hashvalue); + + [LibraryImport(DllPath, EntryPoint = "pcalloc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Pcalloc(ulong size); + + [LibraryImport(DllPath, EntryPoint = "pcrealloc", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr Pcrealloc(IntPtr mem, ulong size); + + [LibraryImport(DllPath, EntryPoint = "pcfree", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void Pcfree(IntPtr mem); + + [LibraryImport(DllPath, EntryPoint = "pcerror", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void Pcerror(string fmt); + + [LibraryImport(DllPath, EntryPoint = "pcinfo", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void Pcinfo(string fmt); + + [LibraryImport(DllPath, EntryPoint = "pcwarn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void Pcwarn(string fmt); + + [LibraryImport(DllPath, EntryPoint = "pc_set_handlers", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcSetHandlers(IntPtr allocator, IntPtr reallocator, IntPtr deallocator, IntPtr error_handler, IntPtr info_handler, IntPtr warning_handler); + + [LibraryImport(DllPath, EntryPoint = "pc_install_default_handlers", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcInstallDefaultHandlers(); + + [LibraryImport(DllPath, EntryPoint = "pc_bytes_from_hexbytes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcBytesFromHexbytes(string hexbuf, ulong hexsize); + + [LibraryImport(DllPath, EntryPoint = "pc_hexbytes_from_bytes", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcHexbytesFromBytes(IntPtr bytebuf, ulong bytesize); + + [LibraryImport(DllPath, EntryPoint = "pc_wkb_get_pcid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcWkbGetPcid(IntPtr wkb); + + [LibraryImport(DllPath, EntryPoint = "pc_dimstats_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcDimstatsMake(IntPtr schema); + + [LibraryImport(DllPath, EntryPoint = "pc_compression_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcCompressionName(int num); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcSchemaFree(IntPtr pcs); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_new", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcSchemaNew(uint ndims); + + [LibraryImport(DllPath, EntryPoint = "pc_interpretation_number", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcInterpretationNumber(string str); + + [LibraryImport(DllPath, EntryPoint = "pc_compression_number", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcCompressionNumber(string str); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_from_xml", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcSchemaFromXml(string xmlstr); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_to_json", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcSchemaToJson(IntPtr pcs); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_get_dimension", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcSchemaGetDimension(IntPtr s, uint dim); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_get_dimension_by_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcSchemaGetDimensionByName(IntPtr s, string name); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_is_valid", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcSchemaIsValid(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_clone", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcSchemaClone(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_set_dimension", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcSchemaSetDimension(IntPtr s, IntPtr d); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_check_xyzm", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcSchemaCheckXyzm(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_get_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PcSchemaGetSize(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_same_dimensions", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcSchemaSameDimensions(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "pc_schema_same_interpretations", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcSchemaSameInterpretations(IntPtr s1, IntPtr s2); + + [LibraryImport(DllPath, EntryPoint = "pc_pointlist_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointlistMake(uint npoints); + + [LibraryImport(DllPath, EntryPoint = "pc_pointlist_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcPointlistFree(IntPtr pl); + + [LibraryImport(DllPath, EntryPoint = "pc_pointlist_add_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcPointlistAddPoint(IntPtr pl, IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pc_pointlist_get_point", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointlistGetPoint(IntPtr pl, int i); + + [LibraryImport(DllPath, EntryPoint = "pc_point_make", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointMake(IntPtr s); + + [LibraryImport(DllPath, EntryPoint = "pc_point_from_data", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointFromData(IntPtr s, IntPtr data); + + [LibraryImport(DllPath, EntryPoint = "pc_point_from_double_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointFromDoubleArray(IntPtr s, IntPtr array, uint offset, uint stride); + + [LibraryImport(DllPath, EntryPoint = "pc_point_to_double_array", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointToDoubleArray(IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pc_point_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcPointFree(IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pc_point_get_double_by_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointGetDoubleByName(IntPtr pt, string name, IntPtr val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_get_double_by_index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointGetDoubleByIndex(IntPtr pt, uint idx, IntPtr val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_get_double", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointGetDouble(IntPtr pt, IntPtr dim, IntPtr val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_set_double_by_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointSetDoubleByName(IntPtr pt, string name, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_set_double_by_index", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointSetDoubleByIndex(IntPtr pt, uint idx, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_set_double", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointSetDouble(IntPtr pt, IntPtr dim, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_get_x", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointGetX(IntPtr pt, IntPtr val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_get_y", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointGetY(IntPtr pt, IntPtr val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_get_z", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointGetZ(IntPtr pt, IntPtr val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_get_m", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointGetM(IntPtr pt, IntPtr val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_set_x", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointSetX(IntPtr pt, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_set_y", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointSetY(IntPtr pt, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_set_z", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointSetZ(IntPtr pt, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_set_m", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPointSetM(IntPtr pt, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_point_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointFromWkb(IntPtr s, IntPtr wkb, ulong wkbsize); + + [LibraryImport(DllPath, EntryPoint = "pc_point_to_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointToWkb(IntPtr pt, IntPtr wkbsize); + + [LibraryImport(DllPath, EntryPoint = "pc_point_to_string", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcPointToString(IntPtr pt); + + [LibraryImport(DllPath, EntryPoint = "pc_point_to_geometry_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointToGeometryWkb(IntPtr pt, IntPtr wkbsize); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_from_pointlist", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchFromPointlist(IntPtr ptl); + + [LibraryImport(DllPath, EntryPoint = "pc_pointlist_from_patch", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPointlistFromPatch(IntPtr patch); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_from_patchlist", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchFromPatchlist(IntPtr palist, int numpatches); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcPatchFree(IntPtr patch); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_compress", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchCompress(IntPtr patch, IntPtr userdata); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_uncompress", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchUncompress(IntPtr patch); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_from_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchFromWkb(IntPtr s, IntPtr wkb, ulong wkbsize); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_to_wkb", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchToWkb(IntPtr patch, IntPtr wkbsize); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_to_string", StringMarshalling = StringMarshalling.Utf8)] + internal static partial string PcPatchToString(IntPtr patch); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_dimensional_serialized_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PcPatchDimensionalSerializedSize(IntPtr patch); + + [LibraryImport(DllPath, EntryPoint = "pc_bytes_serialized_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PcBytesSerializedSize(IntPtr pcb); + + [LibraryImport(DllPath, EntryPoint = "pc_bytes_serialize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcBytesSerialize(IntPtr pcb, IntPtr buf, IntPtr size); + + [LibraryImport(DllPath, EntryPoint = "pc_bytes_deserialize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcBytesDeserialize(IntPtr buf, IntPtr dim, IntPtr pcb, int @readonly, int flip_endian); + + [LibraryImport(DllPath, EntryPoint = "pc_stats_new_from_data", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcStatsNewFromData(IntPtr schema, IntPtr mindata, IntPtr maxdata, IntPtr avgdata); + + [LibraryImport(DllPath, EntryPoint = "pc_stats_new", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcStatsNew(IntPtr schema); + + [LibraryImport(DllPath, EntryPoint = "pc_stats_free", StringMarshalling = StringMarshalling.Utf8)] + internal static partial void PcStatsFree(IntPtr stats); + + [LibraryImport(DllPath, EntryPoint = "pc_stats_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong PcStatsSize(IntPtr schema); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_compute_stats", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPatchComputeStats(IntPtr patch); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_compute_extent", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcPatchComputeExtent(IntPtr patch); + + [LibraryImport(DllPath, EntryPoint = "pc_bounds_intersects", StringMarshalling = StringMarshalling.Utf8)] + internal static partial int PcBoundsIntersects(IntPtr b1, IntPtr b2); + + [LibraryImport(DllPath, EntryPoint = "pc_bounding_diagonal_wkb_from_bounds", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcBoundingDiagonalWkbFromBounds(IntPtr bounds, IntPtr schema, IntPtr wkbsize); + + [LibraryImport(DllPath, EntryPoint = "pc_bounding_diagonal_wkb_from_stats", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcBoundingDiagonalWkbFromStats(IntPtr stats, IntPtr wkbsize); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_filter_lt_by_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchFilterLtByName(IntPtr pa, string name, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_filter_gt_by_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchFilterGtByName(IntPtr pa, string name, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_filter_equal_by_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchFilterEqualByName(IntPtr pa, string name, double val); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_filter_between_by_name", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchFilterBetweenByName(IntPtr pa, string name, double val1, double val2); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_pointn", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchPointn(IntPtr patch, int n); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_sort", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchSort(IntPtr pa, IntPtr name, int ndims); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_is_sorted", StringMarshalling = StringMarshalling.Utf8)] + internal static partial uint PcPatchIsSorted(IntPtr pa, IntPtr name, int ndims, byte strict); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_range", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchRange(IntPtr pa, int first, int count); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_set_schema", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchSetSchema(IntPtr patch, IntPtr schema, double def); + + [LibraryImport(DllPath, EntryPoint = "pc_patch_transform", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr PcPatchTransform(IntPtr patch, IntPtr schema, double def); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_point_serialize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcPointSerialize(IntPtr pcpt); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_point_deserialize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcPointDeserialize(IntPtr serpt, IntPtr schema); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_patch_serialized_size", StringMarshalling = StringMarshalling.Utf8)] + internal static partial ulong MeosPcPatchSerializedSize(IntPtr patch); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_patch_serialize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcPatchSerialize(IntPtr patch_in, IntPtr userdata); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_patch_serialize_to_uncompressed", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcPatchSerializeToUncompressed(IntPtr patch_in); + + [LibraryImport(DllPath, EntryPoint = "meos_pc_patch_deserialize", StringMarshalling = StringMarshalling.Utf8)] + internal static partial IntPtr MeosPcPatchDeserialize(IntPtr serpatch, IntPtr schema); + + } + } +} diff --git a/MEOS.NET/Functions/Meos.hashtable.g.cs b/MEOS.NET/Functions/Meos.hashtable.g.cs new file mode 100644 index 0000000..e9ec0a6 --- /dev/null +++ b/MEOS.NET/Functions/Meos.hashtable.g.cs @@ -0,0 +1,42 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions hashtable.h declares. + public static partial class Meos + { + public static uint Hash(IntPtr h, IntPtr k) + => SafeExecution(() => Native.Hash(h, k)); + + public static IntPtr CreateHashtable(uint minsize, IntPtr hashfunction, IntPtr key_eq_fn) + => SafeExecution(() => Native.CreateHashtable(minsize, hashfunction, key_eq_fn)); + + public static IntPtr CreateStringHashtable() + => SafeExecution(() => Native.CreateStringHashtable()); + + public static int HashtableInsert(IntPtr h, IntPtr k, IntPtr v) + => SafeExecution(() => Native.HashtableInsert(h, k, v)); + + public static IntPtr HashtableSearch(IntPtr h, IntPtr k) + => SafeExecution(() => Native.HashtableSearch(h, k)); + + public static IntPtr HashtableRemove(IntPtr h, IntPtr k) + => SafeExecution(() => Native.HashtableRemove(h, k)); + + public static uint HashStr(IntPtr str) + => SafeExecution(() => Native.HashStr(str)); + + public static int StrEq(IntPtr str1, IntPtr str2) + => SafeExecution(() => Native.StrEq(str1, str2)); + + public static uint HashtableCount(IntPtr h) + => SafeExecution(() => Native.HashtableCount(h)); + + public static void HashtableDestroy(IntPtr h, int free_values) + => SafeExecution(() => Native.HashtableDestroy(h, free_values)); + + public static uint IndexFor(uint tablelength, uint hashvalue) + => SafeExecution(() => Native.IndexFor(tablelength, hashvalue)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos.g.cs b/MEOS.NET/Functions/Meos.meos.g.cs new file mode 100644 index 0000000..c4d5b27 --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos.g.cs @@ -0,0 +1,5034 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos.h declares. + public static partial class Meos + { + public static bool BoolIn(string str) + => SafeExecution(() => Native.BoolIn(str)); + + public static string BoolOut(bool b) + => SafeExecution(() => Native.BoolOut(b)); + + public static string Float8Out(double num, int maxdd) + => SafeExecution(() => Native.Float8Out(num, maxdd)); + + public static int DateIn(string str) + => SafeExecution(() => Native.DateIn(str)); + + public static string DateOut(int date) + => SafeExecution(() => Native.DateOut(date)); + + public static int IntervalCmp(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalCmp(interv1, interv2)); + + public static IntPtr IntervalIn(string str, int typmod) + => SafeExecution(() => Native.IntervalIn(str, typmod)); + + public static string IntervalOut(IntPtr interv) + => SafeExecution(() => Native.IntervalOut(interv)); + + public static long TimeIn(string str, int typmod) + => SafeExecution(() => Native.TimeIn(str, typmod)); + + public static string TimeOut(long time) + => SafeExecution(() => Native.TimeOut(time)); + + public static long TimestampIn(string str, int typmod) + => SafeExecution(() => Native.TimestampIn(str, typmod)); + + public static string TimestampOut(long ts) + => SafeExecution(() => Native.TimestampOut(ts)); + + public static long TimestamptzIn(string str, int typmod) + => SafeExecution(() => Native.TimestamptzIn(str, typmod)); + + public static string TimestamptzOut(long tstz) + => SafeExecution(() => Native.TimestamptzOut(tstz)); + + public static IntPtr CstringToText(string str) + => SafeExecution(() => Native.CstringToText(str)); + + public static string TextToCstring(IntPtr txt) + => SafeExecution(() => Native.TextToCstring(txt)); + + public static IntPtr TextIn(string str) + => SafeExecution(() => Native.TextIn(str)); + + public static string TextOut(IntPtr txt) + => SafeExecution(() => Native.TextOut(txt)); + + public static int TextCmp(IntPtr txt1, IntPtr txt2, uint collid) + => SafeExecution(() => Native.TextCmp(txt1, txt2, collid)); + + public static IntPtr TextCopy(IntPtr txt) + => SafeExecution(() => Native.TextCopy(txt)); + + public static IntPtr TextInitcap(IntPtr txt) + => SafeExecution(() => Native.TextInitcap(txt)); + + public static IntPtr TextLower(IntPtr txt) + => SafeExecution(() => Native.TextLower(txt)); + + public static IntPtr TextUpper(IntPtr txt) + => SafeExecution(() => Native.TextUpper(txt)); + + public static IntPtr TextcatTextText(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextcatTextText(txt1, txt2)); + + public static void MeosError(int errlevel, int errcode, string format) + => SafeExecution(() => Native.MeosError(errlevel, errcode, format)); + + public static int MeosErrno() + => SafeExecution(() => Native.MeosErrno()); + + public static int MeosErrnoSet(int err) + => SafeExecution(() => Native.MeosErrnoSet(err)); + + public static int MeosErrnoRestore(int err) + => SafeExecution(() => Native.MeosErrnoRestore(err)); + + public static int MeosErrnoReset() + => SafeExecution(() => Native.MeosErrnoReset()); + + public static IntPtr MeosArrayCreate(int elem_size) + => SafeExecution(() => Native.MeosArrayCreate(elem_size)); + + public static void MeosArrayAdd(IntPtr array, IntPtr value) + => SafeExecution(() => Native.MeosArrayAdd(array, value)); + + public static IntPtr MeosArrayGet(IntPtr array, int n) + => SafeExecution(() => Native.MeosArrayGet(array, n)); + + public static int MeosArrayCount(IntPtr array) + => SafeExecution(() => Native.MeosArrayCount(array)); + + public static void MeosArrayReset(IntPtr array) + => SafeExecution(() => Native.MeosArrayReset(array)); + + public static void MeosArrayResetFree(IntPtr array) + => SafeExecution(() => Native.MeosArrayResetFree(array)); + + public static void MeosArrayDestroy(IntPtr array) + => SafeExecution(() => Native.MeosArrayDestroy(array)); + + public static void MeosArrayDestroyFree(IntPtr array) + => SafeExecution(() => Native.MeosArrayDestroyFree(array)); + + public static IntPtr RtreeCreateIntspan() + => SafeExecution(() => Native.RtreeCreateIntspan()); + + public static IntPtr RtreeCreateBigintspan() + => SafeExecution(() => Native.RtreeCreateBigintspan()); + + public static IntPtr RtreeCreateFloatspan() + => SafeExecution(() => Native.RtreeCreateFloatspan()); + + public static IntPtr RtreeCreateDatespan() + => SafeExecution(() => Native.RtreeCreateDatespan()); + + public static IntPtr RtreeCreateTstzspan() + => SafeExecution(() => Native.RtreeCreateTstzspan()); + + public static IntPtr RtreeCreateTbox() + => SafeExecution(() => Native.RtreeCreateTbox()); + + public static IntPtr RtreeCreateStbox() + => SafeExecution(() => Native.RtreeCreateStbox()); + + public static IntPtr RtreeCreateTpcbox() + => SafeExecution(() => Native.RtreeCreateTpcbox()); + + public static void RtreeFree(IntPtr rtree) + => SafeExecution(() => Native.RtreeFree(rtree)); + + public static int RtreeNumEntries(IntPtr rtree) + => SafeExecution(() => Native.RtreeNumEntries(rtree)); + + public static long RtreeMemSize(IntPtr rtree) + => SafeExecution(() => Native.RtreeMemSize(rtree)); + + public static int RtreeHeight(IntPtr rtree) + => SafeExecution(() => Native.RtreeHeight(rtree)); + + public static bool RtreeInsert(IntPtr rtree, IntPtr box, long id) + => SafeExecution(() => Native.RtreeInsert(rtree, box, id)); + + public static bool RtreeLoad(IntPtr rtree, IntPtr boxes, IntPtr ids, int count) + => SafeExecution(() => Native.RtreeLoad(rtree, boxes, ids, count)); + + public static bool RtreeInsertTemporal(IntPtr rtree, IntPtr temp, long id) + => SafeExecution(() => Native.RtreeInsertTemporal(rtree, temp, id)); + + public static bool RtreeInsertTemporalSplit(IntPtr rtree, IntPtr temp, long id, int maxboxes) + => SafeExecution(() => Native.RtreeInsertTemporalSplit(rtree, temp, id, maxboxes)); + + public static int RtreeSearch(IntPtr rtree, int op, IntPtr query, IntPtr result) + => SafeExecution(() => Native.RtreeSearch(rtree, op, query, result)); + + public static int RtreeJoin(IntPtr rtree1, IntPtr rtree2, int op, IntPtr result) + => SafeExecution(() => Native.RtreeJoin(rtree1, rtree2, op, result)); + + public static int RtreeSearchTemporal(IntPtr rtree, int op, IntPtr temp, IntPtr result) + => SafeExecution(() => Native.RtreeSearchTemporal(rtree, op, temp, result)); + + public static int RtreeSearchTemporalDedup(IntPtr rtree, int op, IntPtr temp, int maxboxes, IntPtr result) + => SafeExecution(() => Native.RtreeSearchTemporalDedup(rtree, op, temp, maxboxes, result)); + + public static IntPtr RtreeNnCursorOpen(IntPtr rtree, IntPtr query) + => SafeExecution(() => Native.RtreeNnCursorOpen(rtree, query)); + + public static bool RtreeNnCursorNext(IntPtr cursor, IntPtr id_out, IntPtr dist_out) + => SafeExecution(() => Native.RtreeNnCursorNext(cursor, id_out, dist_out)); + + public static void RtreeNnCursorClose(IntPtr cursor) + => SafeExecution(() => Native.RtreeNnCursorClose(cursor)); + + public static IntPtr SptreeCreateIntspan(int kind) + => SafeExecution(() => Native.SptreeCreateIntspan(kind)); + + public static IntPtr SptreeCreateBigintspan(int kind) + => SafeExecution(() => Native.SptreeCreateBigintspan(kind)); + + public static IntPtr SptreeCreateFloatspan(int kind) + => SafeExecution(() => Native.SptreeCreateFloatspan(kind)); + + public static IntPtr SptreeCreateDatespan(int kind) + => SafeExecution(() => Native.SptreeCreateDatespan(kind)); + + public static IntPtr SptreeCreateTstzspan(int kind) + => SafeExecution(() => Native.SptreeCreateTstzspan(kind)); + + public static IntPtr SptreeCreateTbox(int kind) + => SafeExecution(() => Native.SptreeCreateTbox(kind)); + + public static IntPtr SptreeCreateStbox(int kind) + => SafeExecution(() => Native.SptreeCreateStbox(kind)); + + public static IntPtr SptreeCreateTpcbox(int kind) + => SafeExecution(() => Native.SptreeCreateTpcbox(kind)); + + public static void SptreeFree(IntPtr sptree) + => SafeExecution(() => Native.SptreeFree(sptree)); + + public static int SptreeNumEntries(IntPtr sptree) + => SafeExecution(() => Native.SptreeNumEntries(sptree)); + + public static long SptreeMemSize(IntPtr sptree) + => SafeExecution(() => Native.SptreeMemSize(sptree)); + + public static int SptreeHeight(IntPtr sptree) + => SafeExecution(() => Native.SptreeHeight(sptree)); + + public static bool SptreeInsert(IntPtr sptree, IntPtr box, long id) + => SafeExecution(() => Native.SptreeInsert(sptree, box, id)); + + public static bool SptreeLoad(IntPtr sptree, IntPtr boxes, IntPtr ids, int count) + => SafeExecution(() => Native.SptreeLoad(sptree, boxes, ids, count)); + + public static bool SptreeInsertTemporal(IntPtr sptree, IntPtr temp, long id) + => SafeExecution(() => Native.SptreeInsertTemporal(sptree, temp, id)); + + public static bool SptreeInsertTemporalSplit(IntPtr sptree, IntPtr temp, long id, int maxboxes) + => SafeExecution(() => Native.SptreeInsertTemporalSplit(sptree, temp, id, maxboxes)); + + public static int SptreeSearch(IntPtr sptree, int op, IntPtr query, IntPtr result) + => SafeExecution(() => Native.SptreeSearch(sptree, op, query, result)); + + public static int SptreeJoin(IntPtr sptree1, IntPtr sptree2, int op, IntPtr result) + => SafeExecution(() => Native.SptreeJoin(sptree1, sptree2, op, result)); + + public static int SptreeSearchTemporal(IntPtr sptree, int op, IntPtr temp, IntPtr result) + => SafeExecution(() => Native.SptreeSearchTemporal(sptree, op, temp, result)); + + public static int SptreeSearchTemporalDedup(IntPtr sptree, int op, IntPtr temp, int maxboxes, IntPtr result) + => SafeExecution(() => Native.SptreeSearchTemporalDedup(sptree, op, temp, maxboxes, result)); + + public static IntPtr SptreeNnCursorOpen(IntPtr sptree, IntPtr query) + => SafeExecution(() => Native.SptreeNnCursorOpen(sptree, query)); + + public static bool SptreeNnCursorNext(IntPtr cursor, IntPtr id_out, IntPtr dist_out) + => SafeExecution(() => Native.SptreeNnCursorNext(cursor, id_out, dist_out)); + + public static void SptreeNnCursorClose(IntPtr cursor) + => SafeExecution(() => Native.SptreeNnCursorClose(cursor)); + + public static void MeosInitializeErrorHandler(IntPtr err_handler) + => SafeExecution(() => Native.MeosInitializeErrorHandler(err_handler)); + + public static void MeosInitializeAllocator(IntPtr malloc_fn, IntPtr realloc_fn, IntPtr free_fn) + => SafeExecution(() => Native.MeosInitializeAllocator(malloc_fn, realloc_fn, free_fn)); + + public static void MeosInitializeNoexitErrorHandler() + => SafeExecution(() => Native.MeosInitializeNoexitErrorHandler()); + + public static void MeosInitializeTimezone(string name) + => SafeExecution(() => Native.MeosInitializeTimezone(name)); + + public static void MeosInitializeCollation() + => SafeExecution(() => Native.MeosInitializeCollation()); + + public static void MeosFinalizeTimezone() + => SafeExecution(() => Native.MeosFinalizeTimezone()); + + public static void MeosFinalizeCollation() + => SafeExecution(() => Native.MeosFinalizeCollation()); + + public static void MeosFinalizeProjsrs() + => SafeExecution(() => Native.MeosFinalizeProjsrs()); + + public static void MeosFinalizeWays() + => SafeExecution(() => Native.MeosFinalizeWays()); + + public static void MeosInitializePointcloud() + => SafeExecution(() => Native.MeosInitializePointcloud()); + + public static bool MeosSetDatestyle(string newval, IntPtr extra) + => SafeExecution(() => Native.MeosSetDatestyle(newval, extra)); + + public static bool MeosSetIntervalstyle(string newval, int extra) + => SafeExecution(() => Native.MeosSetIntervalstyle(newval, extra)); + + public static string MeosGetDatestyle() + => SafeExecution(() => Native.MeosGetDatestyle()); + + public static string MeosGetIntervalstyle() + => SafeExecution(() => Native.MeosGetIntervalstyle()); + + public static void MeosSetSpatialRefSysCsv(string path) + => SafeExecution(() => Native.MeosSetSpatialRefSysCsv(path)); + + public static void MeosSetWaysCsv(string path) + => SafeExecution(() => Native.MeosSetWaysCsv(path)); + + public static void MeosInitialize() + => SafeExecution(() => Native.MeosInitialize()); + + public static void MeosFinalize() + => SafeExecution(() => Native.MeosFinalize()); + + public static string MeosVersion() + => SafeExecution(() => Native.MeosVersion()); + + public static string MeosFullVersion() + => SafeExecution(() => Native.MeosFullVersion()); + + public static string MobilitydbVersion() + => SafeExecution(() => Native.MobilitydbVersion()); + + public static string MobilitydbFullVersion() + => SafeExecution(() => Native.MobilitydbFullVersion()); + + public static IntPtr BigintsetIn(string str) + => SafeExecution(() => Native.BigintsetIn(str)); + + public static string BigintsetOut(IntPtr set) + => SafeExecution(() => Native.BigintsetOut(set)); + + public static IntPtr BigintspanExpand(IntPtr s, long value) + => SafeExecution(() => Native.BigintspanExpand(s, value)); + + public static IntPtr BigintspanIn(string str) + => SafeExecution(() => Native.BigintspanIn(str)); + + public static string BigintspanOut(IntPtr s) + => SafeExecution(() => Native.BigintspanOut(s)); + + public static IntPtr BigintspansetIn(string str) + => SafeExecution(() => Native.BigintspansetIn(str)); + + public static string BigintspansetOut(IntPtr ss) + => SafeExecution(() => Native.BigintspansetOut(ss)); + + public static IntPtr DatesetIn(string str) + => SafeExecution(() => Native.DatesetIn(str)); + + public static string DatesetOut(IntPtr s) + => SafeExecution(() => Native.DatesetOut(s)); + + public static IntPtr DatespanIn(string str) + => SafeExecution(() => Native.DatespanIn(str)); + + public static string DatespanOut(IntPtr s) + => SafeExecution(() => Native.DatespanOut(s)); + + public static IntPtr DatespansetIn(string str) + => SafeExecution(() => Native.DatespansetIn(str)); + + public static string DatespansetOut(IntPtr ss) + => SafeExecution(() => Native.DatespansetOut(ss)); + + public static IntPtr FloatsetIn(string str) + => SafeExecution(() => Native.FloatsetIn(str)); + + public static string FloatsetOut(IntPtr set, int maxdd) + => SafeExecution(() => Native.FloatsetOut(set, maxdd)); + + public static IntPtr FloatspanExpand(IntPtr s, double value) + => SafeExecution(() => Native.FloatspanExpand(s, value)); + + public static IntPtr FloatspanIn(string str) + => SafeExecution(() => Native.FloatspanIn(str)); + + public static string FloatspanOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.FloatspanOut(s, maxdd)); + + public static IntPtr FloatspansetIn(string str) + => SafeExecution(() => Native.FloatspansetIn(str)); + + public static string FloatspansetOut(IntPtr ss, int maxdd) + => SafeExecution(() => Native.FloatspansetOut(ss, maxdd)); + + public static IntPtr IntsetIn(string str) + => SafeExecution(() => Native.IntsetIn(str)); + + public static string IntsetOut(IntPtr set) + => SafeExecution(() => Native.IntsetOut(set)); + + public static IntPtr IntspanExpand(IntPtr s, int value) + => SafeExecution(() => Native.IntspanExpand(s, value)); + + public static IntPtr IntspanIn(string str) + => SafeExecution(() => Native.IntspanIn(str)); + + public static string IntspanOut(IntPtr s) + => SafeExecution(() => Native.IntspanOut(s)); + + public static IntPtr IntspansetIn(string str) + => SafeExecution(() => Native.IntspansetIn(str)); + + public static string IntspansetOut(IntPtr ss) + => SafeExecution(() => Native.IntspansetOut(ss)); + + public static string SetAsHexwkb(IntPtr s, byte variant, IntPtr size_out) + => SafeExecution(() => Native.SetAsHexwkb(s, variant, size_out)); + + public static IntPtr SetAsWkb(IntPtr s, byte variant, IntPtr size_out) + => SafeExecution(() => Native.SetAsWkb(s, variant, size_out)); + + public static IntPtr SetFromHexwkb(string hexwkb) + => SafeExecution(() => Native.SetFromHexwkb(hexwkb)); + + public static IntPtr SetFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.SetFromWkb(wkb, size)); + + public static string SpanAsHexwkb(IntPtr s, byte variant, IntPtr size_out) + => SafeExecution(() => Native.SpanAsHexwkb(s, variant, size_out)); + + public static IntPtr SpanAsWkb(IntPtr s, byte variant, IntPtr size_out) + => SafeExecution(() => Native.SpanAsWkb(s, variant, size_out)); + + public static IntPtr SpanFromHexwkb(string hexwkb) + => SafeExecution(() => Native.SpanFromHexwkb(hexwkb)); + + public static IntPtr SpanFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.SpanFromWkb(wkb, size)); + + public static string SpansetAsHexwkb(IntPtr ss, byte variant, IntPtr size_out) + => SafeExecution(() => Native.SpansetAsHexwkb(ss, variant, size_out)); + + public static IntPtr SpansetAsWkb(IntPtr ss, byte variant, IntPtr size_out) + => SafeExecution(() => Native.SpansetAsWkb(ss, variant, size_out)); + + public static IntPtr SpansetFromHexwkb(string hexwkb) + => SafeExecution(() => Native.SpansetFromHexwkb(hexwkb)); + + public static IntPtr SpansetFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.SpansetFromWkb(wkb, size)); + + public static IntPtr TextsetIn(string str) + => SafeExecution(() => Native.TextsetIn(str)); + + public static string TextsetOut(IntPtr set) + => SafeExecution(() => Native.TextsetOut(set)); + + public static IntPtr TstzsetIn(string str) + => SafeExecution(() => Native.TstzsetIn(str)); + + public static string TstzsetOut(IntPtr set) + => SafeExecution(() => Native.TstzsetOut(set)); + + public static IntPtr TstzspanIn(string str) + => SafeExecution(() => Native.TstzspanIn(str)); + + public static string TstzspanOut(IntPtr s) + => SafeExecution(() => Native.TstzspanOut(s)); + + public static IntPtr TstzspansetIn(string str) + => SafeExecution(() => Native.TstzspansetIn(str)); + + public static string TstzspansetOut(IntPtr ss) + => SafeExecution(() => Native.TstzspansetOut(ss)); + + public static IntPtr BigintsetMake(IntPtr values, int count) + => SafeExecution(() => Native.BigintsetMake(values, count)); + + public static IntPtr BigintspanMake(long lower, long upper, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.BigintspanMake(lower, upper, lower_inc, upper_inc)); + + public static IntPtr DatesetMake(IntPtr values, int count) + => SafeExecution(() => Native.DatesetMake(values, count)); + + public static IntPtr DatespanMake(int lower, int upper, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.DatespanMake(lower, upper, lower_inc, upper_inc)); + + public static IntPtr FloatsetMake(IntPtr values, int count) + => SafeExecution(() => Native.FloatsetMake(values, count)); + + public static IntPtr FloatspanMake(double lower, double upper, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.FloatspanMake(lower, upper, lower_inc, upper_inc)); + + public static IntPtr IntsetMake(IntPtr values, int count) + => SafeExecution(() => Native.IntsetMake(values, count)); + + public static IntPtr IntspanMake(int lower, int upper, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.IntspanMake(lower, upper, lower_inc, upper_inc)); + + public static IntPtr SetCopy(IntPtr s) + => SafeExecution(() => Native.SetCopy(s)); + + public static IntPtr SpanCopy(IntPtr s) + => SafeExecution(() => Native.SpanCopy(s)); + + public static IntPtr SpansetCopy(IntPtr ss) + => SafeExecution(() => Native.SpansetCopy(ss)); + + public static IntPtr SpansetMake(IntPtr spans, int count) + => SafeExecution(() => Native.SpansetMake(spans, count)); + + public static IntPtr TextsetMake(IntPtr values, int count) + => SafeExecution(() => Native.TextsetMake(values, count)); + + public static IntPtr TstzsetMake(IntPtr values, int count) + => SafeExecution(() => Native.TstzsetMake(values, count)); + + public static IntPtr TstzspanMake(long lower, long upper, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.TstzspanMake(lower, upper, lower_inc, upper_inc)); + + public static IntPtr BigintToSet(long i) + => SafeExecution(() => Native.BigintToSet(i)); + + public static IntPtr BigintToSpan(int i) + => SafeExecution(() => Native.BigintToSpan(i)); + + public static IntPtr BigintToSpanset(int i) + => SafeExecution(() => Native.BigintToSpanset(i)); + + public static IntPtr DateToSet(int d) + => SafeExecution(() => Native.DateToSet(d)); + + public static IntPtr DateToSpan(int d) + => SafeExecution(() => Native.DateToSpan(d)); + + public static IntPtr DateToSpanset(int d) + => SafeExecution(() => Native.DateToSpanset(d)); + + public static IntPtr DatesetToTstzset(IntPtr s) + => SafeExecution(() => Native.DatesetToTstzset(s)); + + public static IntPtr DatespanToTstzspan(IntPtr s) + => SafeExecution(() => Native.DatespanToTstzspan(s)); + + public static IntPtr DatespansetToTstzspanset(IntPtr ss) + => SafeExecution(() => Native.DatespansetToTstzspanset(ss)); + + public static IntPtr FloatToSet(double d) + => SafeExecution(() => Native.FloatToSet(d)); + + public static IntPtr FloatToSpan(double d) + => SafeExecution(() => Native.FloatToSpan(d)); + + public static IntPtr FloatToSpanset(double d) + => SafeExecution(() => Native.FloatToSpanset(d)); + + public static IntPtr FloatsetToIntset(IntPtr s) + => SafeExecution(() => Native.FloatsetToIntset(s)); + + public static IntPtr FloatspanToIntspan(IntPtr s) + => SafeExecution(() => Native.FloatspanToIntspan(s)); + + public static IntPtr FloatspanToBigintspan(IntPtr s) + => SafeExecution(() => Native.FloatspanToBigintspan(s)); + + public static IntPtr FloatspansetToIntspanset(IntPtr ss) + => SafeExecution(() => Native.FloatspansetToIntspanset(ss)); + + public static IntPtr IntToSet(int i) + => SafeExecution(() => Native.IntToSet(i)); + + public static IntPtr IntToSpan(int i) + => SafeExecution(() => Native.IntToSpan(i)); + + public static IntPtr IntToSpanset(int i) + => SafeExecution(() => Native.IntToSpanset(i)); + + public static IntPtr IntsetToFloatset(IntPtr s) + => SafeExecution(() => Native.IntsetToFloatset(s)); + + public static IntPtr IntspanToFloatspan(IntPtr s) + => SafeExecution(() => Native.IntspanToFloatspan(s)); + + public static IntPtr IntspanToBigintspan(IntPtr s) + => SafeExecution(() => Native.IntspanToBigintspan(s)); + + public static IntPtr BigintspanToIntspan(IntPtr s) + => SafeExecution(() => Native.BigintspanToIntspan(s)); + + public static IntPtr BigintspanToFloatspan(IntPtr s) + => SafeExecution(() => Native.BigintspanToFloatspan(s)); + + public static IntPtr IntspansetToFloatspanset(IntPtr ss) + => SafeExecution(() => Native.IntspansetToFloatspanset(ss)); + + public static IntPtr SetToSpan(IntPtr s) + => SafeExecution(() => Native.SetToSpan(s)); + + public static IntPtr SetToSpanset(IntPtr s) + => SafeExecution(() => Native.SetToSpanset(s)); + + public static IntPtr SpanToSpanset(IntPtr s) + => SafeExecution(() => Native.SpanToSpanset(s)); + + public static IntPtr TextToSet(IntPtr txt) + => SafeExecution(() => Native.TextToSet(txt)); + + public static IntPtr TimestamptzToSet(long t) + => SafeExecution(() => Native.TimestamptzToSet(t)); + + public static IntPtr TimestamptzToSpan(long t) + => SafeExecution(() => Native.TimestamptzToSpan(t)); + + public static IntPtr TimestamptzToSpanset(long t) + => SafeExecution(() => Native.TimestamptzToSpanset(t)); + + public static IntPtr TstzsetToDateset(IntPtr s) + => SafeExecution(() => Native.TstzsetToDateset(s)); + + public static IntPtr TstzspanToDatespan(IntPtr s) + => SafeExecution(() => Native.TstzspanToDatespan(s)); + + public static IntPtr TstzspansetToDatespanset(IntPtr ss) + => SafeExecution(() => Native.TstzspansetToDatespanset(ss)); + + public static long BigintsetEndValue(IntPtr s) + => SafeExecution(() => Native.BigintsetEndValue(s)); + + public static long BigintsetStartValue(IntPtr s) + => SafeExecution(() => Native.BigintsetStartValue(s)); + + public static bool BigintsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.BigintsetValueN(s, n, result)); + + public static long[] BigintsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.BigintsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static long BigintspanLower(IntPtr s) + => SafeExecution(() => Native.BigintspanLower(s)); + + public static long BigintspanUpper(IntPtr s) + => SafeExecution(() => Native.BigintspanUpper(s)); + + public static long BigintspanWidth(IntPtr s) + => SafeExecution(() => Native.BigintspanWidth(s)); + + public static long BigintspansetLower(IntPtr ss) + => SafeExecution(() => Native.BigintspansetLower(ss)); + + public static long BigintspansetUpper(IntPtr ss) + => SafeExecution(() => Native.BigintspansetUpper(ss)); + + public static long BigintspansetWidth(IntPtr ss, bool boundspan) + => SafeExecution(() => Native.BigintspansetWidth(ss, boundspan)); + + public static int DatesetEndValue(IntPtr s) + => SafeExecution(() => Native.DatesetEndValue(s)); + + public static int DatesetStartValue(IntPtr s) + => SafeExecution(() => Native.DatesetStartValue(s)); + + public static bool DatesetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.DatesetValueN(s, n, result)); + + public static int[] DatesetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.DatesetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr DatespanDuration(IntPtr s) + => SafeExecution(() => Native.DatespanDuration(s)); + + public static int DatespanLower(IntPtr s) + => SafeExecution(() => Native.DatespanLower(s)); + + public static int DatespanUpper(IntPtr s) + => SafeExecution(() => Native.DatespanUpper(s)); + + public static bool DatespansetDateN(IntPtr ss, int n, IntPtr result) + => SafeExecution(() => Native.DatespansetDateN(ss, n, result)); + + public static IntPtr DatespansetDates(IntPtr ss) + => SafeExecution(() => Native.DatespansetDates(ss)); + + public static IntPtr DatespansetDuration(IntPtr ss, bool boundspan) + => SafeExecution(() => Native.DatespansetDuration(ss, boundspan)); + + public static int DatespansetEndDate(IntPtr ss) + => SafeExecution(() => Native.DatespansetEndDate(ss)); + + public static int DatespansetLower(IntPtr ss) + => SafeExecution(() => Native.DatespansetLower(ss)); + + public static int DatespansetNumDates(IntPtr ss) + => SafeExecution(() => Native.DatespansetNumDates(ss)); + + public static int DatespansetStartDate(IntPtr ss) + => SafeExecution(() => Native.DatespansetStartDate(ss)); + + public static int DatespansetUpper(IntPtr ss) + => SafeExecution(() => Native.DatespansetUpper(ss)); + + public static double FloatsetEndValue(IntPtr s) + => SafeExecution(() => Native.FloatsetEndValue(s)); + + public static double FloatsetStartValue(IntPtr s) + => SafeExecution(() => Native.FloatsetStartValue(s)); + + public static bool FloatsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.FloatsetValueN(s, n, result)); + + public static double[] FloatsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.FloatsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + double[] _out = new double[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double FloatspanLower(IntPtr s) + => SafeExecution(() => Native.FloatspanLower(s)); + + public static double FloatspanUpper(IntPtr s) + => SafeExecution(() => Native.FloatspanUpper(s)); + + public static double FloatspanWidth(IntPtr s) + => SafeExecution(() => Native.FloatspanWidth(s)); + + public static double FloatspansetLower(IntPtr ss) + => SafeExecution(() => Native.FloatspansetLower(ss)); + + public static double FloatspansetUpper(IntPtr ss) + => SafeExecution(() => Native.FloatspansetUpper(ss)); + + public static double FloatspansetWidth(IntPtr ss, bool boundspan) + => SafeExecution(() => Native.FloatspansetWidth(ss, boundspan)); + + public static int IntsetEndValue(IntPtr s) + => SafeExecution(() => Native.IntsetEndValue(s)); + + public static int IntsetStartValue(IntPtr s) + => SafeExecution(() => Native.IntsetStartValue(s)); + + public static bool IntsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.IntsetValueN(s, n, result)); + + public static int[] IntsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.IntsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int IntspanLower(IntPtr s) + => SafeExecution(() => Native.IntspanLower(s)); + + public static int IntspanUpper(IntPtr s) + => SafeExecution(() => Native.IntspanUpper(s)); + + public static int IntspanWidth(IntPtr s) + => SafeExecution(() => Native.IntspanWidth(s)); + + public static int IntspansetLower(IntPtr ss) + => SafeExecution(() => Native.IntspansetLower(ss)); + + public static int IntspansetUpper(IntPtr ss) + => SafeExecution(() => Native.IntspansetUpper(ss)); + + public static int IntspansetWidth(IntPtr ss, bool boundspan) + => SafeExecution(() => Native.IntspansetWidth(ss, boundspan)); + + public static uint SetHash(IntPtr s) + => SafeExecution(() => Native.SetHash(s)); + + public static ulong SetHashExtended(IntPtr s, ulong seed) + => SafeExecution(() => Native.SetHashExtended(s, seed)); + + public static int SetNumValues(IntPtr s) + => SafeExecution(() => Native.SetNumValues(s)); + + public static uint SpanHash(IntPtr s) + => SafeExecution(() => Native.SpanHash(s)); + + public static ulong SpanHashExtended(IntPtr s, ulong seed) + => SafeExecution(() => Native.SpanHashExtended(s, seed)); + + public static bool SpanLowerInc(IntPtr s) + => SafeExecution(() => Native.SpanLowerInc(s)); + + public static bool SpanUpperInc(IntPtr s) + => SafeExecution(() => Native.SpanUpperInc(s)); + + public static IntPtr SpansetEndSpan(IntPtr ss) + => SafeExecution(() => Native.SpansetEndSpan(ss)); + + public static uint SpansetHash(IntPtr ss) + => SafeExecution(() => Native.SpansetHash(ss)); + + public static ulong SpansetHashExtended(IntPtr ss, ulong seed) + => SafeExecution(() => Native.SpansetHashExtended(ss, seed)); + + public static bool SpansetLowerInc(IntPtr ss) + => SafeExecution(() => Native.SpansetLowerInc(ss)); + + public static int SpansetNumSpans(IntPtr ss) + => SafeExecution(() => Native.SpansetNumSpans(ss)); + + public static IntPtr SpansetSpan(IntPtr ss) + => SafeExecution(() => Native.SpansetSpan(ss)); + + public static IntPtr SpansetSpanN(IntPtr ss, int i) + => SafeExecution(() => Native.SpansetSpanN(ss, i)); + + public static IntPtr[] SpansetSpanarr(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SpansetSpanarr(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr SpansetStartSpan(IntPtr ss) + => SafeExecution(() => Native.SpansetStartSpan(ss)); + + public static bool SpansetUpperInc(IntPtr ss) + => SafeExecution(() => Native.SpansetUpperInc(ss)); + + public static IntPtr TextsetEndValue(IntPtr s) + => SafeExecution(() => Native.TextsetEndValue(s)); + + public static IntPtr TextsetStartValue(IntPtr s) + => SafeExecution(() => Native.TextsetStartValue(s)); + + public static bool TextsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.TextsetValueN(s, n, result)); + + public static IntPtr[] TextsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TextsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static long TstzsetEndValue(IntPtr s) + => SafeExecution(() => Native.TstzsetEndValue(s)); + + public static long TstzsetStartValue(IntPtr s) + => SafeExecution(() => Native.TstzsetStartValue(s)); + + public static bool TstzsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.TstzsetValueN(s, n, result)); + + public static long[] TstzsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TstzsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TstzspanDuration(IntPtr s) + => SafeExecution(() => Native.TstzspanDuration(s)); + + public static long TstzspanLower(IntPtr s) + => SafeExecution(() => Native.TstzspanLower(s)); + + public static long TstzspanUpper(IntPtr s) + => SafeExecution(() => Native.TstzspanUpper(s)); + + public static IntPtr TstzspansetDuration(IntPtr ss, bool boundspan) + => SafeExecution(() => Native.TstzspansetDuration(ss, boundspan)); + + public static long TstzspansetEndTimestamptz(IntPtr ss) + => SafeExecution(() => Native.TstzspansetEndTimestamptz(ss)); + + public static long TstzspansetLower(IntPtr ss) + => SafeExecution(() => Native.TstzspansetLower(ss)); + + public static int TstzspansetNumTimestamps(IntPtr ss) + => SafeExecution(() => Native.TstzspansetNumTimestamps(ss)); + + public static long TstzspansetStartTimestamptz(IntPtr ss) + => SafeExecution(() => Native.TstzspansetStartTimestamptz(ss)); + + public static IntPtr TstzspansetTimestamps(IntPtr ss) + => SafeExecution(() => Native.TstzspansetTimestamps(ss)); + + public static bool TstzspansetTimestamptzN(IntPtr ss, int n, IntPtr result) + => SafeExecution(() => Native.TstzspansetTimestamptzN(ss, n, result)); + + public static long TstzspansetUpper(IntPtr ss) + => SafeExecution(() => Native.TstzspansetUpper(ss)); + + public static IntPtr BigintsetShiftScale(IntPtr s, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.BigintsetShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr BigintspanShiftScale(IntPtr s, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.BigintspanShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr BigintspansetShiftScale(IntPtr ss, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.BigintspansetShiftScale(ss, shift, width, hasshift, haswidth)); + + public static IntPtr DatesetShiftScale(IntPtr s, int shift, int width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.DatesetShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr DatespanShiftScale(IntPtr s, int shift, int width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.DatespanShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr DatespansetShiftScale(IntPtr ss, int shift, int width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.DatespansetShiftScale(ss, shift, width, hasshift, haswidth)); + + public static IntPtr FloatsetCeil(IntPtr s) + => SafeExecution(() => Native.FloatsetCeil(s)); + + public static IntPtr FloatsetDegrees(IntPtr s, bool normalize) + => SafeExecution(() => Native.FloatsetDegrees(s, normalize)); + + public static IntPtr FloatsetFloor(IntPtr s) + => SafeExecution(() => Native.FloatsetFloor(s)); + + public static IntPtr FloatsetRadians(IntPtr s) + => SafeExecution(() => Native.FloatsetRadians(s)); + + public static IntPtr FloatsetShiftScale(IntPtr s, double shift, double width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.FloatsetShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr FloatspanCeil(IntPtr s) + => SafeExecution(() => Native.FloatspanCeil(s)); + + public static IntPtr FloatspanDegrees(IntPtr s, bool normalize) + => SafeExecution(() => Native.FloatspanDegrees(s, normalize)); + + public static IntPtr FloatspanFloor(IntPtr s) + => SafeExecution(() => Native.FloatspanFloor(s)); + + public static IntPtr FloatspanRadians(IntPtr s) + => SafeExecution(() => Native.FloatspanRadians(s)); + + public static IntPtr FloatspanRound(IntPtr s, int maxdd) + => SafeExecution(() => Native.FloatspanRound(s, maxdd)); + + public static IntPtr FloatspanShiftScale(IntPtr s, double shift, double width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.FloatspanShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr FloatspansetCeil(IntPtr ss) + => SafeExecution(() => Native.FloatspansetCeil(ss)); + + public static IntPtr FloatspansetFloor(IntPtr ss) + => SafeExecution(() => Native.FloatspansetFloor(ss)); + + public static IntPtr FloatspansetDegrees(IntPtr ss, bool normalize) + => SafeExecution(() => Native.FloatspansetDegrees(ss, normalize)); + + public static IntPtr FloatspansetRadians(IntPtr ss) + => SafeExecution(() => Native.FloatspansetRadians(ss)); + + public static IntPtr FloatspansetRound(IntPtr ss, int maxdd) + => SafeExecution(() => Native.FloatspansetRound(ss, maxdd)); + + public static IntPtr FloatspansetShiftScale(IntPtr ss, double shift, double width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.FloatspansetShiftScale(ss, shift, width, hasshift, haswidth)); + + public static IntPtr IntsetShiftScale(IntPtr s, int shift, int width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.IntsetShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr IntspanShiftScale(IntPtr s, int shift, int width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.IntspanShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr IntspansetShiftScale(IntPtr ss, int shift, int width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.IntspansetShiftScale(ss, shift, width, hasshift, haswidth)); + + public static IntPtr TstzspanExpand(IntPtr s, IntPtr interv) + => SafeExecution(() => Native.TstzspanExpand(s, interv)); + + public static IntPtr SetRound(IntPtr s, int maxdd) + => SafeExecution(() => Native.SetRound(s, maxdd)); + + public static IntPtr TextcatTextTextset(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.TextcatTextTextset(txt, s)); + + public static IntPtr TextcatTextsetText(IntPtr s, IntPtr txt) + => SafeExecution(() => Native.TextcatTextsetText(s, txt)); + + public static IntPtr TextsetInitcap(IntPtr s) + => SafeExecution(() => Native.TextsetInitcap(s)); + + public static IntPtr TextsetLower(IntPtr s) + => SafeExecution(() => Native.TextsetLower(s)); + + public static IntPtr TextsetUpper(IntPtr s) + => SafeExecution(() => Native.TextsetUpper(s)); + + public static long TimestamptzTprecision(long t, IntPtr duration, long torigin) + => SafeExecution(() => Native.TimestamptzTprecision(t, duration, torigin)); + + public static IntPtr TstzsetShiftScale(IntPtr s, IntPtr shift, IntPtr duration) + => SafeExecution(() => Native.TstzsetShiftScale(s, shift, duration)); + + public static IntPtr TstzsetTprecision(IntPtr s, IntPtr duration, long torigin) + => SafeExecution(() => Native.TstzsetTprecision(s, duration, torigin)); + + public static IntPtr TstzspanShiftScale(IntPtr s, IntPtr shift, IntPtr duration) + => SafeExecution(() => Native.TstzspanShiftScale(s, shift, duration)); + + public static IntPtr TstzspanTprecision(IntPtr s, IntPtr duration, long torigin) + => SafeExecution(() => Native.TstzspanTprecision(s, duration, torigin)); + + public static IntPtr TstzspansetShiftScale(IntPtr ss, IntPtr shift, IntPtr duration) + => SafeExecution(() => Native.TstzspansetShiftScale(ss, shift, duration)); + + public static IntPtr TstzspansetTprecision(IntPtr ss, IntPtr duration, long torigin) + => SafeExecution(() => Native.TstzspansetTprecision(ss, duration, torigin)); + + public static int SetCmp(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SetCmp(s1, s2)); + + public static bool SetEq(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SetEq(s1, s2)); + + public static bool SetGe(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SetGe(s1, s2)); + + public static bool SetGt(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SetGt(s1, s2)); + + public static bool SetLe(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SetLe(s1, s2)); + + public static bool SetLt(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SetLt(s1, s2)); + + public static bool SetNe(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SetNe(s1, s2)); + + public static int SpanCmp(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanCmp(s1, s2)); + + public static bool SpanEq(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanEq(s1, s2)); + + public static bool SpanGe(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanGe(s1, s2)); + + public static bool SpanGt(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanGt(s1, s2)); + + public static bool SpanLe(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanLe(s1, s2)); + + public static bool SpanLt(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanLt(s1, s2)); + + public static bool SpanNe(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanNe(s1, s2)); + + public static int SpansetCmp(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.SpansetCmp(ss1, ss2)); + + public static bool SpansetEq(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.SpansetEq(ss1, ss2)); + + public static bool SpansetGe(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.SpansetGe(ss1, ss2)); + + public static bool SpansetGt(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.SpansetGt(ss1, ss2)); + + public static bool SpansetLe(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.SpansetLe(ss1, ss2)); + + public static bool SpansetLt(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.SpansetLt(ss1, ss2)); + + public static bool SpansetNe(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.SpansetNe(ss1, ss2)); + + public static IntPtr[] SetSpans(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SetSpans(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] SetSplitEachNSpans(IntPtr s, int elems_per_span) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SetSplitEachNSpans(s, elems_per_span, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] SetSplitNSpans(IntPtr s, int span_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SetSplitNSpans(s, span_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] SpansetSpans(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SpansetSpans(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] SpansetSplitEachNSpans(IntPtr ss, int elems_per_span) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SpansetSplitEachNSpans(ss, elems_per_span, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] SpansetSplitNSpans(IntPtr ss, int span_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SpansetSplitNSpans(ss, span_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool AdjacentSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.AdjacentSpanBigint(s, i)); + + public static bool AdjacentSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.AdjacentSpanDate(s, d)); + + public static bool AdjacentSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.AdjacentSpanFloat(s, d)); + + public static bool AdjacentSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.AdjacentSpanInt(s, i)); + + public static bool AdjacentSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.AdjacentSpanSpan(s1, s2)); + + public static bool AdjacentSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.AdjacentSpanSpanset(s, ss)); + + public static bool AdjacentSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.AdjacentSpanTimestamptz(s, t)); + + public static bool AdjacentBigintSpan(long i, IntPtr s) + => SafeExecution(() => Native.AdjacentBigintSpan(i, s)); + + public static bool AdjacentDateSpan(int d, IntPtr s) + => SafeExecution(() => Native.AdjacentDateSpan(d, s)); + + public static bool AdjacentFloatSpan(double d, IntPtr s) + => SafeExecution(() => Native.AdjacentFloatSpan(d, s)); + + public static bool AdjacentIntSpan(int i, IntPtr s) + => SafeExecution(() => Native.AdjacentIntSpan(i, s)); + + public static bool AdjacentTimestamptzSpan(long t, IntPtr s) + => SafeExecution(() => Native.AdjacentTimestamptzSpan(t, s)); + + public static bool AdjacentSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.AdjacentSpansetBigint(ss, i)); + + public static bool AdjacentSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.AdjacentSpansetDate(ss, d)); + + public static bool AdjacentSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.AdjacentSpansetFloat(ss, d)); + + public static bool AdjacentSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.AdjacentSpansetInt(ss, i)); + + public static bool AdjacentSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.AdjacentSpansetTimestamptz(ss, t)); + + public static bool AdjacentSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.AdjacentSpansetSpan(ss, s)); + + public static bool AdjacentSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.AdjacentSpansetSpanset(ss1, ss2)); + + public static bool ContainedBigintSet(long i, IntPtr s) + => SafeExecution(() => Native.ContainedBigintSet(i, s)); + + public static bool ContainedBigintSpan(long i, IntPtr s) + => SafeExecution(() => Native.ContainedBigintSpan(i, s)); + + public static bool ContainedBigintSpanset(long i, IntPtr ss) + => SafeExecution(() => Native.ContainedBigintSpanset(i, ss)); + + public static bool ContainedDateSet(int d, IntPtr s) + => SafeExecution(() => Native.ContainedDateSet(d, s)); + + public static bool ContainedDateSpan(int d, IntPtr s) + => SafeExecution(() => Native.ContainedDateSpan(d, s)); + + public static bool ContainedDateSpanset(int d, IntPtr ss) + => SafeExecution(() => Native.ContainedDateSpanset(d, ss)); + + public static bool ContainedFloatSet(double d, IntPtr s) + => SafeExecution(() => Native.ContainedFloatSet(d, s)); + + public static bool ContainedFloatSpan(double d, IntPtr s) + => SafeExecution(() => Native.ContainedFloatSpan(d, s)); + + public static bool ContainedFloatSpanset(double d, IntPtr ss) + => SafeExecution(() => Native.ContainedFloatSpanset(d, ss)); + + public static bool ContainedIntSet(int i, IntPtr s) + => SafeExecution(() => Native.ContainedIntSet(i, s)); + + public static bool ContainedIntSpan(int i, IntPtr s) + => SafeExecution(() => Native.ContainedIntSpan(i, s)); + + public static bool ContainedIntSpanset(int i, IntPtr ss) + => SafeExecution(() => Native.ContainedIntSpanset(i, ss)); + + public static bool ContainedSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.ContainedSetSet(s1, s2)); + + public static bool ContainedSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.ContainedSpanSpan(s1, s2)); + + public static bool ContainedSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.ContainedSpanSpanset(s, ss)); + + public static bool ContainedSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.ContainedSpansetSpan(ss, s)); + + public static bool ContainedSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.ContainedSpansetSpanset(ss1, ss2)); + + public static bool ContainedTextSet(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.ContainedTextSet(txt, s)); + + public static bool ContainedTimestamptzSet(long t, IntPtr s) + => SafeExecution(() => Native.ContainedTimestamptzSet(t, s)); + + public static bool ContainedTimestamptzSpan(long t, IntPtr s) + => SafeExecution(() => Native.ContainedTimestamptzSpan(t, s)); + + public static bool ContainedTimestamptzSpanset(long t, IntPtr ss) + => SafeExecution(() => Native.ContainedTimestamptzSpanset(t, ss)); + + public static bool ContainsSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.ContainsSetBigint(s, i)); + + public static bool ContainsSetDate(IntPtr s, int d) + => SafeExecution(() => Native.ContainsSetDate(s, d)); + + public static bool ContainsSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.ContainsSetFloat(s, d)); + + public static bool ContainsSetInt(IntPtr s, int i) + => SafeExecution(() => Native.ContainsSetInt(s, i)); + + public static bool ContainsSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.ContainsSetSet(s1, s2)); + + public static bool ContainsSetText(IntPtr s, IntPtr t) + => SafeExecution(() => Native.ContainsSetText(s, t)); + + public static bool ContainsSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.ContainsSetTimestamptz(s, t)); + + public static bool ContainsSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.ContainsSpanBigint(s, i)); + + public static bool ContainsSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.ContainsSpanDate(s, d)); + + public static bool ContainsSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.ContainsSpanFloat(s, d)); + + public static bool ContainsSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.ContainsSpanInt(s, i)); + + public static bool ContainsSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.ContainsSpanSpan(s1, s2)); + + public static bool ContainsSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.ContainsSpanSpanset(s, ss)); + + public static bool ContainsSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.ContainsSpanTimestamptz(s, t)); + + public static bool ContainsSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.ContainsSpansetBigint(ss, i)); + + public static bool ContainsSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.ContainsSpansetDate(ss, d)); + + public static bool ContainsSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.ContainsSpansetFloat(ss, d)); + + public static bool ContainsSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.ContainsSpansetInt(ss, i)); + + public static bool ContainsSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.ContainsSpansetSpan(ss, s)); + + public static bool ContainsSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.ContainsSpansetSpanset(ss1, ss2)); + + public static bool ContainsSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.ContainsSpansetTimestamptz(ss, t)); + + public static bool OverlapsSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.OverlapsSetSet(s1, s2)); + + public static bool OverlapsSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.OverlapsSpanSpan(s1, s2)); + + public static bool OverlapsSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.OverlapsSpanSpanset(s, ss)); + + public static bool OverlapsSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.OverlapsSpansetSpan(ss, s)); + + public static bool OverlapsSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.OverlapsSpansetSpanset(ss1, ss2)); + + public static bool SameSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SameSpanSpan(s1, s2)); + + public static bool AfterDateSet(int d, IntPtr s) + => SafeExecution(() => Native.AfterDateSet(d, s)); + + public static bool AfterDateSpan(int d, IntPtr s) + => SafeExecution(() => Native.AfterDateSpan(d, s)); + + public static bool AfterDateSpanset(int d, IntPtr ss) + => SafeExecution(() => Native.AfterDateSpanset(d, ss)); + + public static bool AfterSetDate(IntPtr s, int d) + => SafeExecution(() => Native.AfterSetDate(s, d)); + + public static bool AfterSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.AfterSetTimestamptz(s, t)); + + public static bool AfterSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.AfterSpanDate(s, d)); + + public static bool AfterSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.AfterSpanTimestamptz(s, t)); + + public static bool AfterSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.AfterSpansetDate(ss, d)); + + public static bool AfterSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.AfterSpansetTimestamptz(ss, t)); + + public static bool AfterTimestamptzSet(long t, IntPtr s) + => SafeExecution(() => Native.AfterTimestamptzSet(t, s)); + + public static bool AfterTimestamptzSpan(long t, IntPtr s) + => SafeExecution(() => Native.AfterTimestamptzSpan(t, s)); + + public static bool AfterTimestamptzSpanset(long t, IntPtr ss) + => SafeExecution(() => Native.AfterTimestamptzSpanset(t, ss)); + + public static bool BeforeDateSet(int d, IntPtr s) + => SafeExecution(() => Native.BeforeDateSet(d, s)); + + public static bool BeforeDateSpan(int d, IntPtr s) + => SafeExecution(() => Native.BeforeDateSpan(d, s)); + + public static bool BeforeDateSpanset(int d, IntPtr ss) + => SafeExecution(() => Native.BeforeDateSpanset(d, ss)); + + public static bool BeforeSetDate(IntPtr s, int d) + => SafeExecution(() => Native.BeforeSetDate(s, d)); + + public static bool BeforeSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.BeforeSetTimestamptz(s, t)); + + public static bool BeforeSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.BeforeSpanDate(s, d)); + + public static bool BeforeSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.BeforeSpanTimestamptz(s, t)); + + public static bool BeforeSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.BeforeSpansetDate(ss, d)); + + public static bool BeforeSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.BeforeSpansetTimestamptz(ss, t)); + + public static bool BeforeTimestamptzSet(long t, IntPtr s) + => SafeExecution(() => Native.BeforeTimestamptzSet(t, s)); + + public static bool BeforeTimestamptzSpan(long t, IntPtr s) + => SafeExecution(() => Native.BeforeTimestamptzSpan(t, s)); + + public static bool BeforeTimestamptzSpanset(long t, IntPtr ss) + => SafeExecution(() => Native.BeforeTimestamptzSpanset(t, ss)); + + public static bool LeftBigintSet(long i, IntPtr s) + => SafeExecution(() => Native.LeftBigintSet(i, s)); + + public static bool LeftBigintSpan(long i, IntPtr s) + => SafeExecution(() => Native.LeftBigintSpan(i, s)); + + public static bool LeftBigintSpanset(long i, IntPtr ss) + => SafeExecution(() => Native.LeftBigintSpanset(i, ss)); + + public static bool LeftFloatSet(double d, IntPtr s) + => SafeExecution(() => Native.LeftFloatSet(d, s)); + + public static bool LeftFloatSpan(double d, IntPtr s) + => SafeExecution(() => Native.LeftFloatSpan(d, s)); + + public static bool LeftFloatSpanset(double d, IntPtr ss) + => SafeExecution(() => Native.LeftFloatSpanset(d, ss)); + + public static bool LeftIntSet(int i, IntPtr s) + => SafeExecution(() => Native.LeftIntSet(i, s)); + + public static bool LeftIntSpan(int i, IntPtr s) + => SafeExecution(() => Native.LeftIntSpan(i, s)); + + public static bool LeftIntSpanset(int i, IntPtr ss) + => SafeExecution(() => Native.LeftIntSpanset(i, ss)); + + public static bool LeftSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.LeftSetBigint(s, i)); + + public static bool LeftSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.LeftSetFloat(s, d)); + + public static bool LeftSetInt(IntPtr s, int i) + => SafeExecution(() => Native.LeftSetInt(s, i)); + + public static bool LeftSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.LeftSetSet(s1, s2)); + + public static bool LeftSetText(IntPtr s, IntPtr txt) + => SafeExecution(() => Native.LeftSetText(s, txt)); + + public static bool LeftSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.LeftSpanBigint(s, i)); + + public static bool LeftSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.LeftSpanFloat(s, d)); + + public static bool LeftSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.LeftSpanInt(s, i)); + + public static bool LeftSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.LeftSpanSpan(s1, s2)); + + public static bool LeftSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.LeftSpanSpanset(s, ss)); + + public static bool LeftSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.LeftSpansetBigint(ss, i)); + + public static bool LeftSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.LeftSpansetFloat(ss, d)); + + public static bool LeftSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.LeftSpansetInt(ss, i)); + + public static bool LeftSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.LeftSpansetSpan(ss, s)); + + public static bool LeftSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.LeftSpansetSpanset(ss1, ss2)); + + public static bool LeftTextSet(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.LeftTextSet(txt, s)); + + public static bool OverafterDateSet(int d, IntPtr s) + => SafeExecution(() => Native.OverafterDateSet(d, s)); + + public static bool OverafterDateSpan(int d, IntPtr s) + => SafeExecution(() => Native.OverafterDateSpan(d, s)); + + public static bool OverafterDateSpanset(int d, IntPtr ss) + => SafeExecution(() => Native.OverafterDateSpanset(d, ss)); + + public static bool OverafterSetDate(IntPtr s, int d) + => SafeExecution(() => Native.OverafterSetDate(s, d)); + + public static bool OverafterSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.OverafterSetTimestamptz(s, t)); + + public static bool OverafterSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.OverafterSpanDate(s, d)); + + public static bool OverafterSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.OverafterSpanTimestamptz(s, t)); + + public static bool OverafterSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.OverafterSpansetDate(ss, d)); + + public static bool OverafterSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.OverafterSpansetTimestamptz(ss, t)); + + public static bool OverafterTimestamptzSet(long t, IntPtr s) + => SafeExecution(() => Native.OverafterTimestamptzSet(t, s)); + + public static bool OverafterTimestamptzSpan(long t, IntPtr s) + => SafeExecution(() => Native.OverafterTimestamptzSpan(t, s)); + + public static bool OverafterTimestamptzSpanset(long t, IntPtr ss) + => SafeExecution(() => Native.OverafterTimestamptzSpanset(t, ss)); + + public static bool OverbeforeDateSet(int d, IntPtr s) + => SafeExecution(() => Native.OverbeforeDateSet(d, s)); + + public static bool OverbeforeDateSpan(int d, IntPtr s) + => SafeExecution(() => Native.OverbeforeDateSpan(d, s)); + + public static bool OverbeforeDateSpanset(int d, IntPtr ss) + => SafeExecution(() => Native.OverbeforeDateSpanset(d, ss)); + + public static bool OverbeforeSetDate(IntPtr s, int d) + => SafeExecution(() => Native.OverbeforeSetDate(s, d)); + + public static bool OverbeforeSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.OverbeforeSetTimestamptz(s, t)); + + public static bool OverbeforeSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.OverbeforeSpanDate(s, d)); + + public static bool OverbeforeSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.OverbeforeSpanTimestamptz(s, t)); + + public static bool OverbeforeSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.OverbeforeSpansetDate(ss, d)); + + public static bool OverbeforeSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.OverbeforeSpansetTimestamptz(ss, t)); + + public static bool OverbeforeTimestamptzSet(long t, IntPtr s) + => SafeExecution(() => Native.OverbeforeTimestamptzSet(t, s)); + + public static bool OverbeforeTimestamptzSpan(long t, IntPtr s) + => SafeExecution(() => Native.OverbeforeTimestamptzSpan(t, s)); + + public static bool OverbeforeTimestamptzSpanset(long t, IntPtr ss) + => SafeExecution(() => Native.OverbeforeTimestamptzSpanset(t, ss)); + + public static bool OverleftBigintSet(long i, IntPtr s) + => SafeExecution(() => Native.OverleftBigintSet(i, s)); + + public static bool OverleftBigintSpan(long i, IntPtr s) + => SafeExecution(() => Native.OverleftBigintSpan(i, s)); + + public static bool OverleftBigintSpanset(long i, IntPtr ss) + => SafeExecution(() => Native.OverleftBigintSpanset(i, ss)); + + public static bool OverleftFloatSet(double d, IntPtr s) + => SafeExecution(() => Native.OverleftFloatSet(d, s)); + + public static bool OverleftFloatSpan(double d, IntPtr s) + => SafeExecution(() => Native.OverleftFloatSpan(d, s)); + + public static bool OverleftFloatSpanset(double d, IntPtr ss) + => SafeExecution(() => Native.OverleftFloatSpanset(d, ss)); + + public static bool OverleftIntSet(int i, IntPtr s) + => SafeExecution(() => Native.OverleftIntSet(i, s)); + + public static bool OverleftIntSpan(int i, IntPtr s) + => SafeExecution(() => Native.OverleftIntSpan(i, s)); + + public static bool OverleftIntSpanset(int i, IntPtr ss) + => SafeExecution(() => Native.OverleftIntSpanset(i, ss)); + + public static bool OverleftSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.OverleftSetBigint(s, i)); + + public static bool OverleftSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.OverleftSetFloat(s, d)); + + public static bool OverleftSetInt(IntPtr s, int i) + => SafeExecution(() => Native.OverleftSetInt(s, i)); + + public static bool OverleftSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.OverleftSetSet(s1, s2)); + + public static bool OverleftSetText(IntPtr s, IntPtr txt) + => SafeExecution(() => Native.OverleftSetText(s, txt)); + + public static bool OverleftSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.OverleftSpanBigint(s, i)); + + public static bool OverleftSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.OverleftSpanFloat(s, d)); + + public static bool OverleftSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.OverleftSpanInt(s, i)); + + public static bool OverleftSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.OverleftSpanSpan(s1, s2)); + + public static bool OverleftSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.OverleftSpanSpanset(s, ss)); + + public static bool OverleftSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.OverleftSpansetBigint(ss, i)); + + public static bool OverleftSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.OverleftSpansetFloat(ss, d)); + + public static bool OverleftSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.OverleftSpansetInt(ss, i)); + + public static bool OverleftSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.OverleftSpansetSpan(ss, s)); + + public static bool OverleftSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.OverleftSpansetSpanset(ss1, ss2)); + + public static bool OverleftTextSet(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.OverleftTextSet(txt, s)); + + public static bool OverrightBigintSet(long i, IntPtr s) + => SafeExecution(() => Native.OverrightBigintSet(i, s)); + + public static bool OverrightBigintSpan(long i, IntPtr s) + => SafeExecution(() => Native.OverrightBigintSpan(i, s)); + + public static bool OverrightBigintSpanset(long i, IntPtr ss) + => SafeExecution(() => Native.OverrightBigintSpanset(i, ss)); + + public static bool OverrightFloatSet(double d, IntPtr s) + => SafeExecution(() => Native.OverrightFloatSet(d, s)); + + public static bool OverrightFloatSpan(double d, IntPtr s) + => SafeExecution(() => Native.OverrightFloatSpan(d, s)); + + public static bool OverrightFloatSpanset(double d, IntPtr ss) + => SafeExecution(() => Native.OverrightFloatSpanset(d, ss)); + + public static bool OverrightIntSet(int i, IntPtr s) + => SafeExecution(() => Native.OverrightIntSet(i, s)); + + public static bool OverrightIntSpan(int i, IntPtr s) + => SafeExecution(() => Native.OverrightIntSpan(i, s)); + + public static bool OverrightIntSpanset(int i, IntPtr ss) + => SafeExecution(() => Native.OverrightIntSpanset(i, ss)); + + public static bool OverrightSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.OverrightSetBigint(s, i)); + + public static bool OverrightSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.OverrightSetFloat(s, d)); + + public static bool OverrightSetInt(IntPtr s, int i) + => SafeExecution(() => Native.OverrightSetInt(s, i)); + + public static bool OverrightSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.OverrightSetSet(s1, s2)); + + public static bool OverrightSetText(IntPtr s, IntPtr txt) + => SafeExecution(() => Native.OverrightSetText(s, txt)); + + public static bool OverrightSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.OverrightSpanBigint(s, i)); + + public static bool OverrightSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.OverrightSpanFloat(s, d)); + + public static bool OverrightSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.OverrightSpanInt(s, i)); + + public static bool OverrightSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.OverrightSpanSpan(s1, s2)); + + public static bool OverrightSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.OverrightSpanSpanset(s, ss)); + + public static bool OverrightSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.OverrightSpansetBigint(ss, i)); + + public static bool OverrightSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.OverrightSpansetFloat(ss, d)); + + public static bool OverrightSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.OverrightSpansetInt(ss, i)); + + public static bool OverrightSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.OverrightSpansetSpan(ss, s)); + + public static bool OverrightSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.OverrightSpansetSpanset(ss1, ss2)); + + public static bool OverrightTextSet(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.OverrightTextSet(txt, s)); + + public static bool RightBigintSet(long i, IntPtr s) + => SafeExecution(() => Native.RightBigintSet(i, s)); + + public static bool RightBigintSpan(long i, IntPtr s) + => SafeExecution(() => Native.RightBigintSpan(i, s)); + + public static bool RightBigintSpanset(long i, IntPtr ss) + => SafeExecution(() => Native.RightBigintSpanset(i, ss)); + + public static bool RightFloatSet(double d, IntPtr s) + => SafeExecution(() => Native.RightFloatSet(d, s)); + + public static bool RightFloatSpan(double d, IntPtr s) + => SafeExecution(() => Native.RightFloatSpan(d, s)); + + public static bool RightFloatSpanset(double d, IntPtr ss) + => SafeExecution(() => Native.RightFloatSpanset(d, ss)); + + public static bool RightIntSet(int i, IntPtr s) + => SafeExecution(() => Native.RightIntSet(i, s)); + + public static bool RightIntSpan(int i, IntPtr s) + => SafeExecution(() => Native.RightIntSpan(i, s)); + + public static bool RightIntSpanset(int i, IntPtr ss) + => SafeExecution(() => Native.RightIntSpanset(i, ss)); + + public static bool RightSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.RightSetBigint(s, i)); + + public static bool RightSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.RightSetFloat(s, d)); + + public static bool RightSetInt(IntPtr s, int i) + => SafeExecution(() => Native.RightSetInt(s, i)); + + public static bool RightSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.RightSetSet(s1, s2)); + + public static bool RightSetText(IntPtr s, IntPtr txt) + => SafeExecution(() => Native.RightSetText(s, txt)); + + public static bool RightSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.RightSpanBigint(s, i)); + + public static bool RightSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.RightSpanFloat(s, d)); + + public static bool RightSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.RightSpanInt(s, i)); + + public static bool RightSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.RightSpanSpan(s1, s2)); + + public static bool RightSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.RightSpanSpanset(s, ss)); + + public static bool RightSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.RightSpansetBigint(ss, i)); + + public static bool RightSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.RightSpansetFloat(ss, d)); + + public static bool RightSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.RightSpansetInt(ss, i)); + + public static bool RightSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.RightSpansetSpan(ss, s)); + + public static bool RightSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.RightSpansetSpanset(ss1, ss2)); + + public static bool RightTextSet(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.RightTextSet(txt, s)); + + public static IntPtr IntersectionBigintSet(long i, IntPtr s) + => SafeExecution(() => Native.IntersectionBigintSet(i, s)); + + public static IntPtr IntersectionDateSet(int d, IntPtr s) + => SafeExecution(() => Native.IntersectionDateSet(d, s)); + + public static IntPtr IntersectionFloatSet(double d, IntPtr s) + => SafeExecution(() => Native.IntersectionFloatSet(d, s)); + + public static IntPtr IntersectionIntSet(int i, IntPtr s) + => SafeExecution(() => Native.IntersectionIntSet(i, s)); + + public static IntPtr IntersectionSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.IntersectionSetBigint(s, i)); + + public static IntPtr IntersectionSetDate(IntPtr s, int d) + => SafeExecution(() => Native.IntersectionSetDate(s, d)); + + public static IntPtr IntersectionSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.IntersectionSetFloat(s, d)); + + public static IntPtr IntersectionSetInt(IntPtr s, int i) + => SafeExecution(() => Native.IntersectionSetInt(s, i)); + + public static IntPtr IntersectionSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.IntersectionSetSet(s1, s2)); + + public static IntPtr IntersectionSetText(IntPtr s, IntPtr txt) + => SafeExecution(() => Native.IntersectionSetText(s, txt)); + + public static IntPtr IntersectionSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.IntersectionSetTimestamptz(s, t)); + + public static IntPtr IntersectionSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.IntersectionSpanBigint(s, i)); + + public static IntPtr IntersectionSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.IntersectionSpanDate(s, d)); + + public static IntPtr IntersectionSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.IntersectionSpanFloat(s, d)); + + public static IntPtr IntersectionSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.IntersectionSpanInt(s, i)); + + public static IntPtr IntersectionSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.IntersectionSpanSpan(s1, s2)); + + public static IntPtr IntersectionSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.IntersectionSpanSpanset(s, ss)); + + public static IntPtr IntersectionSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.IntersectionSpanTimestamptz(s, t)); + + public static IntPtr IntersectionSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.IntersectionSpansetBigint(ss, i)); + + public static IntPtr IntersectionSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.IntersectionSpansetDate(ss, d)); + + public static IntPtr IntersectionSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.IntersectionSpansetFloat(ss, d)); + + public static IntPtr IntersectionSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.IntersectionSpansetInt(ss, i)); + + public static IntPtr IntersectionSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.IntersectionSpansetSpan(ss, s)); + + public static IntPtr IntersectionSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.IntersectionSpansetSpanset(ss1, ss2)); + + public static IntPtr IntersectionSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.IntersectionSpansetTimestamptz(ss, t)); + + public static IntPtr IntersectionTextSet(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.IntersectionTextSet(txt, s)); + + public static IntPtr IntersectionTimestamptzSet(long t, IntPtr s) + => SafeExecution(() => Native.IntersectionTimestamptzSet(t, s)); + + public static IntPtr MinusBigintSet(long i, IntPtr s) + => SafeExecution(() => Native.MinusBigintSet(i, s)); + + public static IntPtr MinusBigintSpan(long i, IntPtr s) + => SafeExecution(() => Native.MinusBigintSpan(i, s)); + + public static IntPtr MinusBigintSpanset(long i, IntPtr ss) + => SafeExecution(() => Native.MinusBigintSpanset(i, ss)); + + public static IntPtr MinusDateSet(int d, IntPtr s) + => SafeExecution(() => Native.MinusDateSet(d, s)); + + public static IntPtr MinusDateSpan(int d, IntPtr s) + => SafeExecution(() => Native.MinusDateSpan(d, s)); + + public static IntPtr MinusDateSpanset(int d, IntPtr ss) + => SafeExecution(() => Native.MinusDateSpanset(d, ss)); + + public static IntPtr MinusFloatSet(double d, IntPtr s) + => SafeExecution(() => Native.MinusFloatSet(d, s)); + + public static IntPtr MinusFloatSpan(double d, IntPtr s) + => SafeExecution(() => Native.MinusFloatSpan(d, s)); + + public static IntPtr MinusFloatSpanset(double d, IntPtr ss) + => SafeExecution(() => Native.MinusFloatSpanset(d, ss)); + + public static IntPtr MinusIntSet(int i, IntPtr s) + => SafeExecution(() => Native.MinusIntSet(i, s)); + + public static IntPtr MinusIntSpan(int i, IntPtr s) + => SafeExecution(() => Native.MinusIntSpan(i, s)); + + public static IntPtr MinusIntSpanset(int i, IntPtr ss) + => SafeExecution(() => Native.MinusIntSpanset(i, ss)); + + public static IntPtr MinusSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.MinusSetBigint(s, i)); + + public static IntPtr MinusSetDate(IntPtr s, int d) + => SafeExecution(() => Native.MinusSetDate(s, d)); + + public static IntPtr MinusSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.MinusSetFloat(s, d)); + + public static IntPtr MinusSetInt(IntPtr s, int i) + => SafeExecution(() => Native.MinusSetInt(s, i)); + + public static IntPtr MinusSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.MinusSetSet(s1, s2)); + + public static IntPtr MinusSetText(IntPtr s, IntPtr txt) + => SafeExecution(() => Native.MinusSetText(s, txt)); + + public static IntPtr MinusSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.MinusSetTimestamptz(s, t)); + + public static IntPtr MinusSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.MinusSpanBigint(s, i)); + + public static IntPtr MinusSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.MinusSpanDate(s, d)); + + public static IntPtr MinusSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.MinusSpanFloat(s, d)); + + public static IntPtr MinusSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.MinusSpanInt(s, i)); + + public static IntPtr MinusSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.MinusSpanSpan(s1, s2)); + + public static IntPtr MinusSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.MinusSpanSpanset(s, ss)); + + public static IntPtr MinusSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.MinusSpanTimestamptz(s, t)); + + public static IntPtr MinusSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.MinusSpansetBigint(ss, i)); + + public static IntPtr MinusSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.MinusSpansetDate(ss, d)); + + public static IntPtr MinusSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.MinusSpansetFloat(ss, d)); + + public static IntPtr MinusSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.MinusSpansetInt(ss, i)); + + public static IntPtr MinusSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.MinusSpansetSpan(ss, s)); + + public static IntPtr MinusSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.MinusSpansetSpanset(ss1, ss2)); + + public static IntPtr MinusSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.MinusSpansetTimestamptz(ss, t)); + + public static IntPtr MinusTextSet(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.MinusTextSet(txt, s)); + + public static IntPtr MinusTimestamptzSet(long t, IntPtr s) + => SafeExecution(() => Native.MinusTimestamptzSet(t, s)); + + public static IntPtr MinusTimestamptzSpan(long t, IntPtr s) + => SafeExecution(() => Native.MinusTimestamptzSpan(t, s)); + + public static IntPtr MinusTimestamptzSpanset(long t, IntPtr ss) + => SafeExecution(() => Native.MinusTimestamptzSpanset(t, ss)); + + public static IntPtr UnionBigintSet(long i, IntPtr s) + => SafeExecution(() => Native.UnionBigintSet(i, s)); + + public static IntPtr UnionBigintSpan(long i, IntPtr s) + => SafeExecution(() => Native.UnionBigintSpan(i, s)); + + public static IntPtr UnionBigintSpanset(long i, IntPtr ss) + => SafeExecution(() => Native.UnionBigintSpanset(i, ss)); + + public static IntPtr UnionDateSet(int d, IntPtr s) + => SafeExecution(() => Native.UnionDateSet(d, s)); + + public static IntPtr UnionDateSpan(int d, IntPtr s) + => SafeExecution(() => Native.UnionDateSpan(d, s)); + + public static IntPtr UnionDateSpanset(int d, IntPtr ss) + => SafeExecution(() => Native.UnionDateSpanset(d, ss)); + + public static IntPtr UnionFloatSet(double d, IntPtr s) + => SafeExecution(() => Native.UnionFloatSet(d, s)); + + public static IntPtr UnionFloatSpan(double d, IntPtr s) + => SafeExecution(() => Native.UnionFloatSpan(d, s)); + + public static IntPtr UnionFloatSpanset(double d, IntPtr ss) + => SafeExecution(() => Native.UnionFloatSpanset(d, ss)); + + public static IntPtr UnionIntSet(int i, IntPtr s) + => SafeExecution(() => Native.UnionIntSet(i, s)); + + public static IntPtr UnionIntSpan(int i, IntPtr s) + => SafeExecution(() => Native.UnionIntSpan(i, s)); + + public static IntPtr UnionIntSpanset(int i, IntPtr ss) + => SafeExecution(() => Native.UnionIntSpanset(i, ss)); + + public static IntPtr UnionSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.UnionSetBigint(s, i)); + + public static IntPtr UnionSetDate(IntPtr s, int d) + => SafeExecution(() => Native.UnionSetDate(s, d)); + + public static IntPtr UnionSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.UnionSetFloat(s, d)); + + public static IntPtr UnionSetInt(IntPtr s, int i) + => SafeExecution(() => Native.UnionSetInt(s, i)); + + public static IntPtr UnionSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.UnionSetSet(s1, s2)); + + public static IntPtr UnionSetText(IntPtr s, IntPtr txt) + => SafeExecution(() => Native.UnionSetText(s, txt)); + + public static IntPtr UnionSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.UnionSetTimestamptz(s, t)); + + public static IntPtr UnionSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.UnionSpanBigint(s, i)); + + public static IntPtr UnionSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.UnionSpanDate(s, d)); + + public static IntPtr UnionSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.UnionSpanFloat(s, d)); + + public static IntPtr UnionSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.UnionSpanInt(s, i)); + + public static IntPtr UnionSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.UnionSpanSpan(s1, s2)); + + public static IntPtr UnionSpanSpanset(IntPtr s, IntPtr ss) + => SafeExecution(() => Native.UnionSpanSpanset(s, ss)); + + public static IntPtr UnionSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.UnionSpanTimestamptz(s, t)); + + public static IntPtr UnionSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.UnionSpansetBigint(ss, i)); + + public static IntPtr UnionSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.UnionSpansetDate(ss, d)); + + public static IntPtr UnionSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.UnionSpansetFloat(ss, d)); + + public static IntPtr UnionSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.UnionSpansetInt(ss, i)); + + public static IntPtr UnionSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.UnionSpansetSpan(ss, s)); + + public static IntPtr UnionSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.UnionSpansetSpanset(ss1, ss2)); + + public static IntPtr UnionSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.UnionSpansetTimestamptz(ss, t)); + + public static IntPtr UnionTextSet(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.UnionTextSet(txt, s)); + + public static IntPtr UnionTimestamptzSet(long t, IntPtr s) + => SafeExecution(() => Native.UnionTimestamptzSet(t, s)); + + public static IntPtr UnionTimestamptzSpan(long t, IntPtr s) + => SafeExecution(() => Native.UnionTimestamptzSpan(t, s)); + + public static IntPtr UnionTimestamptzSpanset(long t, IntPtr ss) + => SafeExecution(() => Native.UnionTimestamptzSpanset(t, ss)); + + public static long DistanceBigintsetBigintset(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceBigintsetBigintset(s1, s2)); + + public static long DistanceBigintspanBigintspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceBigintspanBigintspan(s1, s2)); + + public static long DistanceBigintspansetBigintspan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.DistanceBigintspansetBigintspan(ss, s)); + + public static long DistanceBigintspansetBigintspanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.DistanceBigintspansetBigintspanset(ss1, ss2)); + + public static int DistanceDatesetDateset(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceDatesetDateset(s1, s2)); + + public static int DistanceDatespanDatespan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceDatespanDatespan(s1, s2)); + + public static int DistanceDatespansetDatespan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.DistanceDatespansetDatespan(ss, s)); + + public static int DistanceDatespansetDatespanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.DistanceDatespansetDatespanset(ss1, ss2)); + + public static double DistanceFloatsetFloatset(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceFloatsetFloatset(s1, s2)); + + public static double DistanceFloatspanFloatspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceFloatspanFloatspan(s1, s2)); + + public static double DistanceFloatspansetFloatspan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.DistanceFloatspansetFloatspan(ss, s)); + + public static double DistanceFloatspansetFloatspanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.DistanceFloatspansetFloatspanset(ss1, ss2)); + + public static int DistanceIntsetIntset(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceIntsetIntset(s1, s2)); + + public static int DistanceIntspanIntspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceIntspanIntspan(s1, s2)); + + public static int DistanceIntspansetIntspan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.DistanceIntspansetIntspan(ss, s)); + + public static int DistanceIntspansetIntspanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.DistanceIntspansetIntspanset(ss1, ss2)); + + public static long DistanceSetBigint(IntPtr s, long i) + => SafeExecution(() => Native.DistanceSetBigint(s, i)); + + public static int DistanceSetDate(IntPtr s, int d) + => SafeExecution(() => Native.DistanceSetDate(s, d)); + + public static double DistanceSetFloat(IntPtr s, double d) + => SafeExecution(() => Native.DistanceSetFloat(s, d)); + + public static int DistanceSetInt(IntPtr s, int i) + => SafeExecution(() => Native.DistanceSetInt(s, i)); + + public static double DistanceSetTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.DistanceSetTimestamptz(s, t)); + + public static long DistanceSpanBigint(IntPtr s, long i) + => SafeExecution(() => Native.DistanceSpanBigint(s, i)); + + public static int DistanceSpanDate(IntPtr s, int d) + => SafeExecution(() => Native.DistanceSpanDate(s, d)); + + public static double DistanceSpanFloat(IntPtr s, double d) + => SafeExecution(() => Native.DistanceSpanFloat(s, d)); + + public static int DistanceSpanInt(IntPtr s, int i) + => SafeExecution(() => Native.DistanceSpanInt(s, i)); + + public static double DistanceSpanTimestamptz(IntPtr s, long t) + => SafeExecution(() => Native.DistanceSpanTimestamptz(s, t)); + + public static long DistanceSpansetBigint(IntPtr ss, long i) + => SafeExecution(() => Native.DistanceSpansetBigint(ss, i)); + + public static int DistanceSpansetDate(IntPtr ss, int d) + => SafeExecution(() => Native.DistanceSpansetDate(ss, d)); + + public static double DistanceSpansetFloat(IntPtr ss, double d) + => SafeExecution(() => Native.DistanceSpansetFloat(ss, d)); + + public static int DistanceSpansetInt(IntPtr ss, int i) + => SafeExecution(() => Native.DistanceSpansetInt(ss, i)); + + public static double DistanceSpansetTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.DistanceSpansetTimestamptz(ss, t)); + + public static double DistanceTstzsetTstzset(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceTstzsetTstzset(s1, s2)); + + public static double DistanceTstzspanTstzspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceTstzspanTstzspan(s1, s2)); + + public static double DistanceTstzspansetTstzspan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.DistanceTstzspansetTstzspan(ss, s)); + + public static double DistanceTstzspansetTstzspanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.DistanceTstzspansetTstzspanset(ss1, ss2)); + + public static IntPtr BigintExtentTransfn(IntPtr state, long i) + => SafeExecution(() => Native.BigintExtentTransfn(state, i)); + + public static IntPtr BigintUnionTransfn(IntPtr state, long i) + => SafeExecution(() => Native.BigintUnionTransfn(state, i)); + + public static IntPtr DateExtentTransfn(IntPtr state, int d) + => SafeExecution(() => Native.DateExtentTransfn(state, d)); + + public static IntPtr DateUnionTransfn(IntPtr state, int d) + => SafeExecution(() => Native.DateUnionTransfn(state, d)); + + public static IntPtr FloatExtentTransfn(IntPtr state, double d) + => SafeExecution(() => Native.FloatExtentTransfn(state, d)); + + public static IntPtr FloatUnionTransfn(IntPtr state, double d) + => SafeExecution(() => Native.FloatUnionTransfn(state, d)); + + public static IntPtr IntExtentTransfn(IntPtr state, int i) + => SafeExecution(() => Native.IntExtentTransfn(state, i)); + + public static IntPtr IntUnionTransfn(IntPtr state, int i) + => SafeExecution(() => Native.IntUnionTransfn(state, i)); + + public static IntPtr SetExtentTransfn(IntPtr state, IntPtr s) + => SafeExecution(() => Native.SetExtentTransfn(state, s)); + + public static IntPtr SetUnionFinalfn(IntPtr state) + => SafeExecution(() => Native.SetUnionFinalfn(state)); + + public static IntPtr SetUnionTransfn(IntPtr state, IntPtr s) + => SafeExecution(() => Native.SetUnionTransfn(state, s)); + + public static IntPtr SpanExtentTransfn(IntPtr state, IntPtr s) + => SafeExecution(() => Native.SpanExtentTransfn(state, s)); + + public static IntPtr SpanUnionTransfn(IntPtr state, IntPtr s) + => SafeExecution(() => Native.SpanUnionTransfn(state, s)); + + public static IntPtr SpansetExtentTransfn(IntPtr state, IntPtr ss) + => SafeExecution(() => Native.SpansetExtentTransfn(state, ss)); + + public static IntPtr SpansetUnionFinalfn(IntPtr state) + => SafeExecution(() => Native.SpansetUnionFinalfn(state)); + + public static IntPtr SpansetUnionTransfn(IntPtr state, IntPtr ss) + => SafeExecution(() => Native.SpansetUnionTransfn(state, ss)); + + public static IntPtr TextUnionTransfn(IntPtr state, IntPtr txt) + => SafeExecution(() => Native.TextUnionTransfn(state, txt)); + + public static IntPtr TimestamptzExtentTransfn(IntPtr state, long t) + => SafeExecution(() => Native.TimestamptzExtentTransfn(state, t)); + + public static IntPtr TimestamptzUnionTransfn(IntPtr state, long t) + => SafeExecution(() => Native.TimestamptzUnionTransfn(state, t)); + + public static long BigintGetBin(long value, long vsize, long vorigin) + => SafeExecution(() => Native.BigintGetBin(value, vsize, vorigin)); + + public static IntPtr[] BigintspanBins(IntPtr s, long vsize, long vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.BigintspanBins(s, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] BigintspansetBins(IntPtr ss, long vsize, long vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.BigintspansetBins(ss, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int DateGetBin(int d, IntPtr duration, int torigin) + => SafeExecution(() => Native.DateGetBin(d, duration, torigin)); + + public static IntPtr[] DatespanBins(IntPtr s, IntPtr duration, int torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.DatespanBins(s, duration, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] DatespansetBins(IntPtr ss, IntPtr duration, int torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.DatespansetBins(ss, duration, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double FloatGetBin(double value, double vsize, double vorigin) + => SafeExecution(() => Native.FloatGetBin(value, vsize, vorigin)); + + public static IntPtr[] FloatspanBins(IntPtr s, double vsize, double vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.FloatspanBins(s, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] FloatspansetBins(IntPtr ss, double vsize, double vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.FloatspansetBins(ss, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int IntGetBin(int value, int vsize, int vorigin) + => SafeExecution(() => Native.IntGetBin(value, vsize, vorigin)); + + public static IntPtr[] IntspanBins(IntPtr s, int vsize, int vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.IntspanBins(s, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] IntspansetBins(IntPtr ss, int vsize, int vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.IntspansetBins(ss, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static long TimestamptzGetBin(long t, IntPtr duration, long torigin) + => SafeExecution(() => Native.TimestamptzGetBin(t, duration, torigin)); + + public static IntPtr[] TstzspanBins(IntPtr s, IntPtr duration, long origin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TstzspanBins(s, duration, origin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TstzspansetBins(IntPtr ss, IntPtr duration, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TstzspansetBins(ss, duration, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static string TboxAsHexwkb(IntPtr box, byte variant, IntPtr size_out) + => SafeExecution(() => Native.TboxAsHexwkb(box, variant, size_out)); + + public static IntPtr TboxAsWkb(IntPtr box, byte variant, IntPtr size_out) + => SafeExecution(() => Native.TboxAsWkb(box, variant, size_out)); + + public static IntPtr TboxFromHexwkb(string hexwkb) + => SafeExecution(() => Native.TboxFromHexwkb(hexwkb)); + + public static IntPtr TboxFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.TboxFromWkb(wkb, size)); + + public static IntPtr TboxIn(string str) + => SafeExecution(() => Native.TboxIn(str)); + + public static string TboxOut(IntPtr box, int maxdd) + => SafeExecution(() => Native.TboxOut(box, maxdd)); + + public static IntPtr FloatTimestamptzToTbox(double d, long t) + => SafeExecution(() => Native.FloatTimestamptzToTbox(d, t)); + + public static IntPtr FloatTstzspanToTbox(double d, IntPtr s) + => SafeExecution(() => Native.FloatTstzspanToTbox(d, s)); + + public static IntPtr IntTimestamptzToTbox(int i, long t) + => SafeExecution(() => Native.IntTimestamptzToTbox(i, t)); + + public static IntPtr BigintTimestamptzToTbox(long i, long t) + => SafeExecution(() => Native.BigintTimestamptzToTbox(i, t)); + + public static IntPtr IntTstzspanToTbox(int i, IntPtr s) + => SafeExecution(() => Native.IntTstzspanToTbox(i, s)); + + public static IntPtr BigintTstzspanToTbox(long i, IntPtr s) + => SafeExecution(() => Native.BigintTstzspanToTbox(i, s)); + + public static IntPtr NumspanTstzspanToTbox(IntPtr span, IntPtr s) + => SafeExecution(() => Native.NumspanTstzspanToTbox(span, s)); + + public static IntPtr NumspanTimestamptzToTbox(IntPtr span, long t) + => SafeExecution(() => Native.NumspanTimestamptzToTbox(span, t)); + + public static IntPtr TboxCopy(IntPtr box) + => SafeExecution(() => Native.TboxCopy(box)); + + public static IntPtr TboxMake(IntPtr s, IntPtr p) + => SafeExecution(() => Native.TboxMake(s, p)); + + public static IntPtr FloatToTbox(double d) + => SafeExecution(() => Native.FloatToTbox(d)); + + public static IntPtr IntToTbox(int i) + => SafeExecution(() => Native.IntToTbox(i)); + + public static IntPtr BigintToTbox(long i) + => SafeExecution(() => Native.BigintToTbox(i)); + + public static IntPtr SetToTbox(IntPtr s) + => SafeExecution(() => Native.SetToTbox(s)); + + public static IntPtr SpanToTbox(IntPtr s) + => SafeExecution(() => Native.SpanToTbox(s)); + + public static IntPtr SpansetToTbox(IntPtr ss) + => SafeExecution(() => Native.SpansetToTbox(ss)); + + public static IntPtr TboxToIntspan(IntPtr box) + => SafeExecution(() => Native.TboxToIntspan(box)); + + public static IntPtr TboxToBigintspan(IntPtr box) + => SafeExecution(() => Native.TboxToBigintspan(box)); + + public static IntPtr TboxToFloatspan(IntPtr box) + => SafeExecution(() => Native.TboxToFloatspan(box)); + + public static IntPtr TboxToTstzspan(IntPtr box) + => SafeExecution(() => Native.TboxToTstzspan(box)); + + public static IntPtr TimestamptzToTbox(long t) + => SafeExecution(() => Native.TimestamptzToTbox(t)); + + public static uint TboxHash(IntPtr box) + => SafeExecution(() => Native.TboxHash(box)); + + public static ulong TboxHashExtended(IntPtr box, ulong seed) + => SafeExecution(() => Native.TboxHashExtended(box, seed)); + + public static bool TboxHast(IntPtr box) + => SafeExecution(() => Native.TboxHast(box)); + + public static bool TboxHasx(IntPtr box) + => SafeExecution(() => Native.TboxHasx(box)); + + public static bool TboxTmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxTmax(box, result)); + + public static bool TboxTmaxInc(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxTmaxInc(box, result)); + + public static bool TboxTmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxTmin(box, result)); + + public static bool TboxTminInc(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxTminInc(box, result)); + + public static bool TboxXmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxXmax(box, result)); + + public static bool TboxXmaxInc(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxXmaxInc(box, result)); + + public static bool TboxXmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxXmin(box, result)); + + public static bool TboxXminInc(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxXminInc(box, result)); + + public static bool TboxfloatXmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxfloatXmax(box, result)); + + public static bool TboxfloatXmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxfloatXmin(box, result)); + + public static bool TboxintXmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxintXmax(box, result)); + + public static bool TboxbigintXmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxbigintXmax(box, result)); + + public static bool TboxintXmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxintXmin(box, result)); + + public static bool TboxbigintXmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TboxbigintXmin(box, result)); + + public static IntPtr TfloatboxExpand(IntPtr box, double d) + => SafeExecution(() => Native.TfloatboxExpand(box, d)); + + public static IntPtr TintboxExpand(IntPtr box, int i) + => SafeExecution(() => Native.TintboxExpand(box, i)); + + public static IntPtr TboxExpandTime(IntPtr box, IntPtr interv) + => SafeExecution(() => Native.TboxExpandTime(box, interv)); + + public static IntPtr TboxRound(IntPtr box, int maxdd) + => SafeExecution(() => Native.TboxRound(box, maxdd)); + + public static IntPtr TfloatboxShiftScale(IntPtr box, double shift, double width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.TfloatboxShiftScale(box, shift, width, hasshift, haswidth)); + + public static IntPtr TintboxShiftScale(IntPtr box, int shift, int width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.TintboxShiftScale(box, shift, width, hasshift, haswidth)); + + public static IntPtr TboxShiftScaleTime(IntPtr box, IntPtr shift, IntPtr duration) + => SafeExecution(() => Native.TboxShiftScaleTime(box, shift, duration)); + + public static IntPtr TbigintboxExpand(IntPtr box, long i) + => SafeExecution(() => Native.TbigintboxExpand(box, i)); + + public static IntPtr TbigintboxShiftScale(IntPtr box, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.TbigintboxShiftScale(box, shift, width, hasshift, haswidth)); + + public static IntPtr UnionTboxTbox(IntPtr box1, IntPtr box2, bool strict) + => SafeExecution(() => Native.UnionTboxTbox(box1, box2, strict)); + + public static IntPtr IntersectionTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.IntersectionTboxTbox(box1, box2)); + + public static bool AdjacentTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.AdjacentTboxTbox(box1, box2)); + + public static bool ContainedTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.ContainedTboxTbox(box1, box2)); + + public static bool ContainsTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.ContainsTboxTbox(box1, box2)); + + public static bool OverlapsTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverlapsTboxTbox(box1, box2)); + + public static bool SameTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.SameTboxTbox(box1, box2)); + + public static bool AfterTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.AfterTboxTbox(box1, box2)); + + public static bool BeforeTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.BeforeTboxTbox(box1, box2)); + + public static bool LeftTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.LeftTboxTbox(box1, box2)); + + public static bool OverafterTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverafterTboxTbox(box1, box2)); + + public static bool OverbeforeTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverbeforeTboxTbox(box1, box2)); + + public static bool OverleftTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverleftTboxTbox(box1, box2)); + + public static bool OverrightTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverrightTboxTbox(box1, box2)); + + public static bool RightTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.RightTboxTbox(box1, box2)); + + public static int TboxCmp(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxCmp(box1, box2)); + + public static bool TboxEq(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxEq(box1, box2)); + + public static bool TboxGe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxGe(box1, box2)); + + public static bool TboxGt(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxGt(box1, box2)); + + public static bool TboxLe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxLe(box1, box2)); + + public static bool TboxLt(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxLt(box1, box2)); + + public static bool TboxNe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxNe(box1, box2)); + + public static IntPtr TboolFromMfjson(string str) + => SafeExecution(() => Native.TboolFromMfjson(str)); + + public static IntPtr TboolIn(string str) + => SafeExecution(() => Native.TboolIn(str)); + + public static string TboolOut(IntPtr temp) + => SafeExecution(() => Native.TboolOut(temp)); + + public static string TemporalAsHexwkb(IntPtr temp, byte variant, IntPtr size_out) + => SafeExecution(() => Native.TemporalAsHexwkb(temp, variant, size_out)); + + public static string TemporalAsMfjson(IntPtr temp, bool with_bbox, int flags, int precision, string srs) + => SafeExecution(() => Native.TemporalAsMfjson(temp, with_bbox, flags, precision, srs)); + + public static IntPtr TemporalAsWkb(IntPtr temp, byte variant, IntPtr size_out) + => SafeExecution(() => Native.TemporalAsWkb(temp, variant, size_out)); + + public static byte WkbVariantFromEndian(string endian) + => SafeExecution(() => Native.WkbVariantFromEndian(endian)); + + public static IntPtr TemporalFromHexwkb(string hexwkb) + => SafeExecution(() => Native.TemporalFromHexwkb(hexwkb)); + + public static IntPtr TemporalFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.TemporalFromWkb(wkb, size)); + + public static IntPtr TfloatFromMfjson(string str) + => SafeExecution(() => Native.TfloatFromMfjson(str)); + + public static IntPtr TfloatIn(string str) + => SafeExecution(() => Native.TfloatIn(str)); + + public static string TfloatOut(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TfloatOut(temp, maxdd)); + + public static IntPtr TintFromMfjson(string str) + => SafeExecution(() => Native.TintFromMfjson(str)); + + public static IntPtr TbigintFromMfjson(string str) + => SafeExecution(() => Native.TbigintFromMfjson(str)); + + public static IntPtr TintIn(string str) + => SafeExecution(() => Native.TintIn(str)); + + public static IntPtr TbigintIn(string str) + => SafeExecution(() => Native.TbigintIn(str)); + + public static string TintOut(IntPtr temp) + => SafeExecution(() => Native.TintOut(temp)); + + public static string TbigintOut(IntPtr temp) + => SafeExecution(() => Native.TbigintOut(temp)); + + public static IntPtr TtextFromMfjson(string str) + => SafeExecution(() => Native.TtextFromMfjson(str)); + + public static IntPtr TtextIn(string str) + => SafeExecution(() => Native.TtextIn(str)); + + public static string TtextOut(IntPtr temp) + => SafeExecution(() => Native.TtextOut(temp)); + + public static IntPtr TboolFromBaseTemp(bool b, IntPtr temp) + => SafeExecution(() => Native.TboolFromBaseTemp(b, temp)); + + public static IntPtr TboolinstMake(bool b, long t) + => SafeExecution(() => Native.TboolinstMake(b, t)); + + public static IntPtr TboolseqFromBaseTstzset(bool b, IntPtr s) + => SafeExecution(() => Native.TboolseqFromBaseTstzset(b, s)); + + public static IntPtr TboolseqFromBaseTstzspan(bool b, IntPtr s) + => SafeExecution(() => Native.TboolseqFromBaseTstzspan(b, s)); + + public static IntPtr TboolseqsetFromBaseTstzspanset(bool b, IntPtr ss) + => SafeExecution(() => Native.TboolseqsetFromBaseTstzspanset(b, ss)); + + public static IntPtr TemporalCopy(IntPtr temp) + => SafeExecution(() => Native.TemporalCopy(temp)); + + public static IntPtr TfloatFromBaseTemp(double d, IntPtr temp) + => SafeExecution(() => Native.TfloatFromBaseTemp(d, temp)); + + public static IntPtr TfloatinstMake(double d, long t) + => SafeExecution(() => Native.TfloatinstMake(d, t)); + + public static IntPtr TfloatseqFromBaseTstzset(double d, IntPtr s) + => SafeExecution(() => Native.TfloatseqFromBaseTstzset(d, s)); + + public static IntPtr TfloatseqFromBaseTstzspan(double d, IntPtr s, int interp) + => SafeExecution(() => Native.TfloatseqFromBaseTstzspan(d, s, interp)); + + public static IntPtr TfloatseqsetFromBaseTstzspanset(double d, IntPtr ss, int interp) + => SafeExecution(() => Native.TfloatseqsetFromBaseTstzspanset(d, ss, interp)); + + public static IntPtr TintFromBaseTemp(int i, IntPtr temp) + => SafeExecution(() => Native.TintFromBaseTemp(i, temp)); + + public static IntPtr TbigintFromBaseTemp(long i, IntPtr temp) + => SafeExecution(() => Native.TbigintFromBaseTemp(i, temp)); + + public static IntPtr TintinstMake(int i, long t) + => SafeExecution(() => Native.TintinstMake(i, t)); + + public static IntPtr TbigintinstMake(long i, long t) + => SafeExecution(() => Native.TbigintinstMake(i, t)); + + public static IntPtr TintseqFromBaseTstzset(int i, IntPtr s) + => SafeExecution(() => Native.TintseqFromBaseTstzset(i, s)); + + public static IntPtr TbigintseqFromBaseTstzset(long i, IntPtr s) + => SafeExecution(() => Native.TbigintseqFromBaseTstzset(i, s)); + + public static IntPtr TintseqFromBaseTstzspan(int i, IntPtr s) + => SafeExecution(() => Native.TintseqFromBaseTstzspan(i, s)); + + public static IntPtr TbigintseqFromBaseTstzspan(long i, IntPtr s) + => SafeExecution(() => Native.TbigintseqFromBaseTstzspan(i, s)); + + public static IntPtr TintseqsetFromBaseTstzspanset(int i, IntPtr ss) + => SafeExecution(() => Native.TintseqsetFromBaseTstzspanset(i, ss)); + + public static IntPtr TbigintseqsetFromBaseTstzspanset(long i, IntPtr ss) + => SafeExecution(() => Native.TbigintseqsetFromBaseTstzspanset(i, ss)); + + public static IntPtr TsequenceMake(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, bool normalize) + => SafeExecution(() => Native.TsequenceMake(instants, count, lower_inc, upper_inc, interp, normalize)); + + public static IntPtr TsequencesetMake(IntPtr sequences, int count, bool normalize) + => SafeExecution(() => Native.TsequencesetMake(sequences, count, normalize)); + + public static IntPtr TsequencesetMakeGaps(IntPtr instants, int count, int interp, IntPtr maxt, double maxdist) + => SafeExecution(() => Native.TsequencesetMakeGaps(instants, count, interp, maxt, maxdist)); + + public static IntPtr TtextFromBaseTemp(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.TtextFromBaseTemp(txt, temp)); + + public static IntPtr TtextinstMake(IntPtr txt, long t) + => SafeExecution(() => Native.TtextinstMake(txt, t)); + + public static IntPtr TtextseqFromBaseTstzset(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.TtextseqFromBaseTstzset(txt, s)); + + public static IntPtr TtextseqFromBaseTstzspan(IntPtr txt, IntPtr s) + => SafeExecution(() => Native.TtextseqFromBaseTstzspan(txt, s)); + + public static IntPtr TtextseqsetFromBaseTstzspanset(IntPtr txt, IntPtr ss) + => SafeExecution(() => Native.TtextseqsetFromBaseTstzspanset(txt, ss)); + + public static IntPtr TboolToTint(IntPtr temp) + => SafeExecution(() => Native.TboolToTint(temp)); + + public static IntPtr TemporalToTstzspan(IntPtr temp) + => SafeExecution(() => Native.TemporalToTstzspan(temp)); + + public static IntPtr TfloatToTint(IntPtr temp) + => SafeExecution(() => Native.TfloatToTint(temp)); + + public static IntPtr TfloatToTbigint(IntPtr temp) + => SafeExecution(() => Native.TfloatToTbigint(temp)); + + public static IntPtr TintToTfloat(IntPtr temp) + => SafeExecution(() => Native.TintToTfloat(temp)); + + public static IntPtr TintToTbigint(IntPtr temp) + => SafeExecution(() => Native.TintToTbigint(temp)); + + public static IntPtr TbigintToTint(IntPtr temp) + => SafeExecution(() => Native.TbigintToTint(temp)); + + public static IntPtr TbigintToTfloat(IntPtr temp) + => SafeExecution(() => Native.TbigintToTfloat(temp)); + + public static IntPtr TnumberToSpan(IntPtr temp) + => SafeExecution(() => Native.TnumberToSpan(temp)); + + public static IntPtr TnumberToTbox(IntPtr temp) + => SafeExecution(() => Native.TnumberToTbox(temp)); + + public static bool TboolEndValue(IntPtr temp) + => SafeExecution(() => Native.TboolEndValue(temp)); + + public static bool TboolStartValue(IntPtr temp) + => SafeExecution(() => Native.TboolStartValue(temp)); + + public static bool TboolValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TboolValueAtTimestamptz(temp, t, strict, value)); + + public static bool TboolValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TboolValueN(temp, n, result)); + + public static IntPtr[] TboolValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TboolValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TemporalDuration(IntPtr temp, bool boundspan) + => SafeExecution(() => Native.TemporalDuration(temp, boundspan)); + + public static IntPtr TemporalEndInstant(IntPtr temp) + => SafeExecution(() => Native.TemporalEndInstant(temp)); + + public static IntPtr TemporalEndSequence(IntPtr temp) + => SafeExecution(() => Native.TemporalEndSequence(temp)); + + public static long TemporalEndTimestamptz(IntPtr temp) + => SafeExecution(() => Native.TemporalEndTimestamptz(temp)); + + public static uint TemporalHash(IntPtr temp) + => SafeExecution(() => Native.TemporalHash(temp)); + + public static ulong TemporalHashExtended(IntPtr temp, ulong seed) + => SafeExecution(() => Native.TemporalHashExtended(temp, seed)); + + public static IntPtr TemporalInstantN(IntPtr temp, int n) + => SafeExecution(() => Native.TemporalInstantN(temp, n)); + + public static IntPtr[] TemporalInstants(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalInstants(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static string? TemporalInterp(IntPtr temp) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.TemporalInterp(temp))); + + public static bool TemporalLowerInc(IntPtr temp) + => SafeExecution(() => Native.TemporalLowerInc(temp)); + + public static IntPtr TemporalMaxInstant(IntPtr temp) + => SafeExecution(() => Native.TemporalMaxInstant(temp)); + + public static IntPtr TemporalMinInstant(IntPtr temp) + => SafeExecution(() => Native.TemporalMinInstant(temp)); + + public static int TemporalNumInstants(IntPtr temp) + => SafeExecution(() => Native.TemporalNumInstants(temp)); + + public static int TemporalNumSequences(IntPtr temp) + => SafeExecution(() => Native.TemporalNumSequences(temp)); + + public static int TemporalNumTimestamps(IntPtr temp) + => SafeExecution(() => Native.TemporalNumTimestamps(temp)); + + public static IntPtr TemporalSegmDuration(IntPtr temp, IntPtr duration, bool atleast, bool strict) + => SafeExecution(() => Native.TemporalSegmDuration(temp, duration, atleast, strict)); + + public static IntPtr[] TemporalSegments(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalSegments(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TemporalSequenceN(IntPtr temp, int i) + => SafeExecution(() => Native.TemporalSequenceN(temp, i)); + + public static IntPtr[] TemporalSequences(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalSequences(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TemporalStartInstant(IntPtr temp) + => SafeExecution(() => Native.TemporalStartInstant(temp)); + + public static IntPtr TemporalStartSequence(IntPtr temp) + => SafeExecution(() => Native.TemporalStartSequence(temp)); + + public static long TemporalStartTimestamptz(IntPtr temp) + => SafeExecution(() => Native.TemporalStartTimestamptz(temp)); + + public static IntPtr TemporalStops(IntPtr temp, double maxdist, IntPtr minduration) + => SafeExecution(() => Native.TemporalStops(temp, maxdist, minduration)); + + public static string? TemporalSubtype(IntPtr temp) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.TemporalSubtype(temp))); + + public static string? TemporalBasetypeName(IntPtr temp) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.TemporalBasetypeName(temp))); + + public static IntPtr TemporalTime(IntPtr temp) + => SafeExecution(() => Native.TemporalTime(temp)); + + public static long[] TemporalTimestamps(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalTimestamps(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool TemporalTimestamptzN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TemporalTimestamptzN(temp, n, result)); + + public static bool TemporalUpperInc(IntPtr temp) + => SafeExecution(() => Native.TemporalUpperInc(temp)); + + public static double TfloatEndValue(IntPtr temp) + => SafeExecution(() => Native.TfloatEndValue(temp)); + + public static double TfloatMinValue(IntPtr temp) + => SafeExecution(() => Native.TfloatMinValue(temp)); + + public static double TfloatMaxValue(IntPtr temp) + => SafeExecution(() => Native.TfloatMaxValue(temp)); + + public static double TfloatStartValue(IntPtr temp) + => SafeExecution(() => Native.TfloatStartValue(temp)); + + public static bool TfloatValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TfloatValueAtTimestamptz(temp, t, strict, value)); + + public static bool TfloatValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TfloatValueN(temp, n, result)); + + public static double[] TfloatValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TfloatValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + double[] _out = new double[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int TintEndValue(IntPtr temp) + => SafeExecution(() => Native.TintEndValue(temp)); + + public static long TbigintEndValue(IntPtr temp) + => SafeExecution(() => Native.TbigintEndValue(temp)); + + public static int TintMaxValue(IntPtr temp) + => SafeExecution(() => Native.TintMaxValue(temp)); + + public static long TbigintMaxValue(IntPtr temp) + => SafeExecution(() => Native.TbigintMaxValue(temp)); + + public static int TintMinValue(IntPtr temp) + => SafeExecution(() => Native.TintMinValue(temp)); + + public static long TbigintMinValue(IntPtr temp) + => SafeExecution(() => Native.TbigintMinValue(temp)); + + public static int TintStartValue(IntPtr temp) + => SafeExecution(() => Native.TintStartValue(temp)); + + public static long TbigintStartValue(IntPtr temp) + => SafeExecution(() => Native.TbigintStartValue(temp)); + + public static bool TbigintValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TbigintValueAtTimestamptz(temp, t, strict, value)); + + public static bool TintValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TintValueAtTimestamptz(temp, t, strict, value)); + + public static bool TintValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TintValueN(temp, n, result)); + + public static bool TbigintValueN(IntPtr temp, long n, IntPtr result) + => SafeExecution(() => Native.TbigintValueN(temp, n, result)); + + public static int[] TintValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TintValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TbigintValues(IntPtr temp, IntPtr count) + => SafeExecution(() => Native.TbigintValues(temp, count)); + + public static double TnumberAvgValue(IntPtr temp) + => SafeExecution(() => Native.TnumberAvgValue(temp)); + + public static double TnumberIntegral(IntPtr temp) + => SafeExecution(() => Native.TnumberIntegral(temp)); + + public static double TnumberTwavg(IntPtr temp) + => SafeExecution(() => Native.TnumberTwavg(temp)); + + public static IntPtr TnumberValuespans(IntPtr temp) + => SafeExecution(() => Native.TnumberValuespans(temp)); + + public static IntPtr TtextEndValue(IntPtr temp) + => SafeExecution(() => Native.TtextEndValue(temp)); + + public static IntPtr TtextMaxValue(IntPtr temp) + => SafeExecution(() => Native.TtextMaxValue(temp)); + + public static IntPtr TtextMinValue(IntPtr temp) + => SafeExecution(() => Native.TtextMinValue(temp)); + + public static IntPtr TtextStartValue(IntPtr temp) + => SafeExecution(() => Native.TtextStartValue(temp)); + + public static bool TtextValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TtextValueAtTimestamptz(temp, t, strict, value)); + + public static bool TtextValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TtextValueN(temp, n, result)); + + public static IntPtr[] TtextValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TtextValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double FloatDegrees(double value, bool normalize) + => SafeExecution(() => Native.FloatDegrees(value, normalize)); + + public static IntPtr TemparrRound(IntPtr temp, int count, int maxdd) + => SafeExecution(() => Native.TemparrRound(temp, count, maxdd)); + + public static IntPtr TemporalRound(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TemporalRound(temp, maxdd)); + + public static IntPtr TemporalScaleTime(IntPtr temp, IntPtr duration) + => SafeExecution(() => Native.TemporalScaleTime(temp, duration)); + + public static IntPtr TemporalSetInterp(IntPtr temp, int interp) + => SafeExecution(() => Native.TemporalSetInterp(temp, interp)); + + public static IntPtr TemporalShiftScaleTime(IntPtr temp, IntPtr shift, IntPtr duration) + => SafeExecution(() => Native.TemporalShiftScaleTime(temp, shift, duration)); + + public static IntPtr TemporalShiftTime(IntPtr temp, IntPtr shift) + => SafeExecution(() => Native.TemporalShiftTime(temp, shift)); + + public static IntPtr TemporalAsTinstant(IntPtr temp) + => SafeExecution(() => Native.TemporalAsTinstant(temp)); + + public static IntPtr TemporalAsTsequence(IntPtr temp, int interp) + => SafeExecution(() => Native.TemporalAsTsequence(temp, interp)); + + public static IntPtr TemporalAsTsequenceset(IntPtr temp, int interp) + => SafeExecution(() => Native.TemporalAsTsequenceset(temp, interp)); + + public static IntPtr TfloatCeil(IntPtr temp) + => SafeExecution(() => Native.TfloatCeil(temp)); + + public static IntPtr TfloatDegrees(IntPtr temp, bool normalize) + => SafeExecution(() => Native.TfloatDegrees(temp, normalize)); + + public static IntPtr TfloatFloor(IntPtr temp) + => SafeExecution(() => Native.TfloatFloor(temp)); + + public static IntPtr TfloatRadians(IntPtr temp) + => SafeExecution(() => Native.TfloatRadians(temp)); + + public static IntPtr TfloatScaleValue(IntPtr temp, double width) + => SafeExecution(() => Native.TfloatScaleValue(temp, width)); + + public static IntPtr TfloatShiftScaleValue(IntPtr temp, double shift, double width) + => SafeExecution(() => Native.TfloatShiftScaleValue(temp, shift, width)); + + public static IntPtr TfloatShiftValue(IntPtr temp, double shift) + => SafeExecution(() => Native.TfloatShiftValue(temp, shift)); + + public static IntPtr TintScaleValue(IntPtr temp, int width) + => SafeExecution(() => Native.TintScaleValue(temp, width)); + + public static IntPtr TbigintScaleValue(IntPtr temp, long width) + => SafeExecution(() => Native.TbigintScaleValue(temp, width)); + + public static IntPtr TintShiftScaleValue(IntPtr temp, int shift, int width) + => SafeExecution(() => Native.TintShiftScaleValue(temp, shift, width)); + + public static IntPtr TbigintShiftScaleValue(IntPtr temp, long shift, long width) + => SafeExecution(() => Native.TbigintShiftScaleValue(temp, shift, width)); + + public static IntPtr TintShiftValue(IntPtr temp, int shift) + => SafeExecution(() => Native.TintShiftValue(temp, shift)); + + public static IntPtr TbigintShiftValue(IntPtr temp, long shift) + => SafeExecution(() => Native.TbigintShiftValue(temp, shift)); + + public static IntPtr TemporalAppendTinstant(IntPtr temp, IntPtr inst, int interp, double maxdist, IntPtr maxt, bool expand) + => SafeExecution(() => Native.TemporalAppendTinstant(temp, inst, interp, maxdist, maxt, expand)); + + public static IntPtr TemporalAppendTsequence(IntPtr temp, IntPtr seq, bool expand) + => SafeExecution(() => Native.TemporalAppendTsequence(temp, seq, expand)); + + public static IntPtr TemporalDeleteTimestamptz(IntPtr temp, long t, bool connect) + => SafeExecution(() => Native.TemporalDeleteTimestamptz(temp, t, connect)); + + public static IntPtr TemporalDeleteTstzset(IntPtr temp, IntPtr s, bool connect) + => SafeExecution(() => Native.TemporalDeleteTstzset(temp, s, connect)); + + public static IntPtr TemporalDeleteTstzspan(IntPtr temp, IntPtr s, bool connect) + => SafeExecution(() => Native.TemporalDeleteTstzspan(temp, s, connect)); + + public static IntPtr TemporalDeleteTstzspanset(IntPtr temp, IntPtr ss, bool connect) + => SafeExecution(() => Native.TemporalDeleteTstzspanset(temp, ss, connect)); + + public static IntPtr TemporalInsert(IntPtr temp1, IntPtr temp2, bool connect) + => SafeExecution(() => Native.TemporalInsert(temp1, temp2, connect)); + + public static IntPtr TemporalMerge(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalMerge(temp1, temp2)); + + public static IntPtr TemporalMergeArray(IntPtr temparr, int count) + => SafeExecution(() => Native.TemporalMergeArray(temparr, count)); + + public static IntPtr TemporalUpdate(IntPtr temp1, IntPtr temp2, bool connect) + => SafeExecution(() => Native.TemporalUpdate(temp1, temp2, connect)); + + public static IntPtr TboolAtValue(IntPtr temp, bool b) + => SafeExecution(() => Native.TboolAtValue(temp, b)); + + public static IntPtr TboolMinusValue(IntPtr temp, bool b) + => SafeExecution(() => Native.TboolMinusValue(temp, b)); + + public static IntPtr TemporalAfterTimestamptz(IntPtr temp, long t, bool strict) + => SafeExecution(() => Native.TemporalAfterTimestamptz(temp, t, strict)); + + public static IntPtr TemporalAtMax(IntPtr temp) + => SafeExecution(() => Native.TemporalAtMax(temp)); + + public static IntPtr TemporalAtMin(IntPtr temp) + => SafeExecution(() => Native.TemporalAtMin(temp)); + + public static IntPtr TemporalAtTimestamptz(IntPtr temp, long t) + => SafeExecution(() => Native.TemporalAtTimestamptz(temp, t)); + + public static IntPtr TemporalAtTstzset(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TemporalAtTstzset(temp, s)); + + public static IntPtr TemporalAtTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TemporalAtTstzspan(temp, s)); + + public static IntPtr TemporalAtTstzspanset(IntPtr temp, IntPtr ss) + => SafeExecution(() => Native.TemporalAtTstzspanset(temp, ss)); + + public static IntPtr TemporalAtValues(IntPtr temp, IntPtr set) + => SafeExecution(() => Native.TemporalAtValues(temp, set)); + + public static IntPtr TemporalBeforeTimestamptz(IntPtr temp, long t, bool strict) + => SafeExecution(() => Native.TemporalBeforeTimestamptz(temp, t, strict)); + + public static IntPtr TemporalMinusMax(IntPtr temp) + => SafeExecution(() => Native.TemporalMinusMax(temp)); + + public static IntPtr TemporalMinusMin(IntPtr temp) + => SafeExecution(() => Native.TemporalMinusMin(temp)); + + public static IntPtr TemporalMinusTimestamptz(IntPtr temp, long t) + => SafeExecution(() => Native.TemporalMinusTimestamptz(temp, t)); + + public static IntPtr TemporalMinusTstzset(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TemporalMinusTstzset(temp, s)); + + public static IntPtr TemporalMinusTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TemporalMinusTstzspan(temp, s)); + + public static IntPtr TemporalMinusTstzspanset(IntPtr temp, IntPtr ss) + => SafeExecution(() => Native.TemporalMinusTstzspanset(temp, ss)); + + public static IntPtr TemporalMinusValues(IntPtr temp, IntPtr set) + => SafeExecution(() => Native.TemporalMinusValues(temp, set)); + + public static IntPtr TfloatAtValue(IntPtr temp, double d) + => SafeExecution(() => Native.TfloatAtValue(temp, d)); + + public static IntPtr TfloatMinusValue(IntPtr temp, double d) + => SafeExecution(() => Native.TfloatMinusValue(temp, d)); + + public static IntPtr TintAtValue(IntPtr temp, int i) + => SafeExecution(() => Native.TintAtValue(temp, i)); + + public static IntPtr TintMinusValue(IntPtr temp, int i) + => SafeExecution(() => Native.TintMinusValue(temp, i)); + + public static IntPtr TnumberAtSpan(IntPtr temp, IntPtr span) + => SafeExecution(() => Native.TnumberAtSpan(temp, span)); + + public static IntPtr TnumberAtSpanset(IntPtr temp, IntPtr ss) + => SafeExecution(() => Native.TnumberAtSpanset(temp, ss)); + + public static IntPtr TnumberAtTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.TnumberAtTbox(temp, box)); + + public static IntPtr TnumberMinusSpan(IntPtr temp, IntPtr span) + => SafeExecution(() => Native.TnumberMinusSpan(temp, span)); + + public static IntPtr TnumberMinusSpanset(IntPtr temp, IntPtr ss) + => SafeExecution(() => Native.TnumberMinusSpanset(temp, ss)); + + public static IntPtr TnumberMinusTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.TnumberMinusTbox(temp, box)); + + public static IntPtr TtextAtValue(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TtextAtValue(temp, txt)); + + public static IntPtr TtextMinusValue(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TtextMinusValue(temp, txt)); + + public static int TemporalCmp(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalCmp(temp1, temp2)); + + public static bool TemporalEq(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalEq(temp1, temp2)); + + public static bool TemporalGe(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalGe(temp1, temp2)); + + public static bool TemporalGt(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalGt(temp1, temp2)); + + public static bool TemporalLe(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalLe(temp1, temp2)); + + public static bool TemporalLt(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalLt(temp1, temp2)); + + public static bool TemporalNe(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalNe(temp1, temp2)); + + public static int AlwaysEqBoolTbool(bool b, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqBoolTbool(b, temp)); + + public static int AlwaysEqFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqFloatTfloat(d, temp)); + + public static int AlwaysEqIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqIntTint(i, temp)); + + public static int AlwaysEqTboolBool(IntPtr temp, bool b) + => SafeExecution(() => Native.AlwaysEqTboolBool(temp, b)); + + public static int AlwaysEqTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTemporalTemporal(temp1, temp2)); + + public static int AlwaysEqTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqTextTtext(txt, temp)); + + public static int AlwaysEqTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.AlwaysEqTfloatFloat(temp, d)); + + public static int AlwaysEqTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.AlwaysEqTintInt(temp, i)); + + public static int AlwaysEqBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqBigintTbigint(i, temp)); + + public static int AlwaysEqTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.AlwaysEqTbigintBigint(temp, i)); + + public static int AlwaysEqTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.AlwaysEqTtextText(temp, txt)); + + public static int AlwaysGeFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.AlwaysGeFloatTfloat(d, temp)); + + public static int AlwaysGeIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.AlwaysGeIntTint(i, temp)); + + public static int AlwaysGeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysGeTemporalTemporal(temp1, temp2)); + + public static int AlwaysGeTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.AlwaysGeTextTtext(txt, temp)); + + public static int AlwaysGeTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.AlwaysGeTfloatFloat(temp, d)); + + public static int AlwaysGeTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.AlwaysGeTintInt(temp, i)); + + public static int AlwaysGeBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.AlwaysGeBigintTbigint(i, temp)); + + public static int AlwaysGeTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.AlwaysGeTbigintBigint(temp, i)); + + public static int AlwaysGeTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.AlwaysGeTtextText(temp, txt)); + + public static int AlwaysGtFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.AlwaysGtFloatTfloat(d, temp)); + + public static int AlwaysGtIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.AlwaysGtIntTint(i, temp)); + + public static int AlwaysGtTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysGtTemporalTemporal(temp1, temp2)); + + public static int AlwaysGtTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.AlwaysGtTextTtext(txt, temp)); + + public static int AlwaysGtTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.AlwaysGtTfloatFloat(temp, d)); + + public static int AlwaysGtTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.AlwaysGtTintInt(temp, i)); + + public static int AlwaysGtBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.AlwaysGtBigintTbigint(i, temp)); + + public static int AlwaysGtTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.AlwaysGtTbigintBigint(temp, i)); + + public static int AlwaysGtTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.AlwaysGtTtextText(temp, txt)); + + public static int AlwaysLeFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.AlwaysLeFloatTfloat(d, temp)); + + public static int AlwaysLeIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.AlwaysLeIntTint(i, temp)); + + public static int AlwaysLeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysLeTemporalTemporal(temp1, temp2)); + + public static int AlwaysLeTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.AlwaysLeTextTtext(txt, temp)); + + public static int AlwaysLeTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.AlwaysLeTfloatFloat(temp, d)); + + public static int AlwaysLeTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.AlwaysLeTintInt(temp, i)); + + public static int AlwaysLeBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.AlwaysLeBigintTbigint(i, temp)); + + public static int AlwaysLeTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.AlwaysLeTbigintBigint(temp, i)); + + public static int AlwaysLeTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.AlwaysLeTtextText(temp, txt)); + + public static int AlwaysLtFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.AlwaysLtFloatTfloat(d, temp)); + + public static int AlwaysLtIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.AlwaysLtIntTint(i, temp)); + + public static int AlwaysLtTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysLtTemporalTemporal(temp1, temp2)); + + public static int AlwaysLtTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.AlwaysLtTextTtext(txt, temp)); + + public static int AlwaysLtTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.AlwaysLtTfloatFloat(temp, d)); + + public static int AlwaysLtTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.AlwaysLtTintInt(temp, i)); + + public static int AlwaysLtBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.AlwaysLtBigintTbigint(i, temp)); + + public static int AlwaysLtTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.AlwaysLtTbigintBigint(temp, i)); + + public static int AlwaysLtTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.AlwaysLtTtextText(temp, txt)); + + public static int AlwaysNeBoolTbool(bool b, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeBoolTbool(b, temp)); + + public static int AlwaysNeFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeFloatTfloat(d, temp)); + + public static int AlwaysNeIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeIntTint(i, temp)); + + public static int AlwaysNeTboolBool(IntPtr temp, bool b) + => SafeExecution(() => Native.AlwaysNeTboolBool(temp, b)); + + public static int AlwaysNeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTemporalTemporal(temp1, temp2)); + + public static int AlwaysNeTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeTextTtext(txt, temp)); + + public static int AlwaysNeTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.AlwaysNeTfloatFloat(temp, d)); + + public static int AlwaysNeTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.AlwaysNeTintInt(temp, i)); + + public static int AlwaysNeBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeBigintTbigint(i, temp)); + + public static int AlwaysNeTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.AlwaysNeTbigintBigint(temp, i)); + + public static int AlwaysNeTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.AlwaysNeTtextText(temp, txt)); + + public static int EverEqBoolTbool(bool b, IntPtr temp) + => SafeExecution(() => Native.EverEqBoolTbool(b, temp)); + + public static int EverEqFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.EverEqFloatTfloat(d, temp)); + + public static int EverEqIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.EverEqIntTint(i, temp)); + + public static int EverEqTboolBool(IntPtr temp, bool b) + => SafeExecution(() => Native.EverEqTboolBool(temp, b)); + + public static int EverEqTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTemporalTemporal(temp1, temp2)); + + public static int EverEqTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.EverEqTextTtext(txt, temp)); + + public static int EverEqTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.EverEqTfloatFloat(temp, d)); + + public static int EverEqTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.EverEqTintInt(temp, i)); + + public static int EverEqBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.EverEqBigintTbigint(i, temp)); + + public static int EverEqTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.EverEqTbigintBigint(temp, i)); + + public static int EverEqTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.EverEqTtextText(temp, txt)); + + public static int EverGeFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.EverGeFloatTfloat(d, temp)); + + public static int EverGeIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.EverGeIntTint(i, temp)); + + public static int EverGeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverGeTemporalTemporal(temp1, temp2)); + + public static int EverGeTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.EverGeTextTtext(txt, temp)); + + public static int EverGeTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.EverGeTfloatFloat(temp, d)); + + public static int EverGeTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.EverGeTintInt(temp, i)); + + public static int EverGeBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.EverGeBigintTbigint(i, temp)); + + public static int EverGeTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.EverGeTbigintBigint(temp, i)); + + public static int EverGeTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.EverGeTtextText(temp, txt)); + + public static int EverGtFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.EverGtFloatTfloat(d, temp)); + + public static int EverGtIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.EverGtIntTint(i, temp)); + + public static int EverGtTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverGtTemporalTemporal(temp1, temp2)); + + public static int EverGtTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.EverGtTextTtext(txt, temp)); + + public static int EverGtTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.EverGtTfloatFloat(temp, d)); + + public static int EverGtTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.EverGtTintInt(temp, i)); + + public static int EverGtBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.EverGtBigintTbigint(i, temp)); + + public static int EverGtTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.EverGtTbigintBigint(temp, i)); + + public static int EverGtTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.EverGtTtextText(temp, txt)); + + public static int EverLeFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.EverLeFloatTfloat(d, temp)); + + public static int EverLeIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.EverLeIntTint(i, temp)); + + public static int EverLeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverLeTemporalTemporal(temp1, temp2)); + + public static int EverLeTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.EverLeTextTtext(txt, temp)); + + public static int EverLeTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.EverLeTfloatFloat(temp, d)); + + public static int EverLeTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.EverLeTintInt(temp, i)); + + public static int EverLeBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.EverLeBigintTbigint(i, temp)); + + public static int EverLeTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.EverLeTbigintBigint(temp, i)); + + public static int EverLeTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.EverLeTtextText(temp, txt)); + + public static int EverLtFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.EverLtFloatTfloat(d, temp)); + + public static int EverLtIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.EverLtIntTint(i, temp)); + + public static int EverLtTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverLtTemporalTemporal(temp1, temp2)); + + public static int EverLtTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.EverLtTextTtext(txt, temp)); + + public static int EverLtTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.EverLtTfloatFloat(temp, d)); + + public static int EverLtTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.EverLtTintInt(temp, i)); + + public static int EverLtBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.EverLtBigintTbigint(i, temp)); + + public static int EverLtTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.EverLtTbigintBigint(temp, i)); + + public static int EverLtTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.EverLtTtextText(temp, txt)); + + public static int EverNeBoolTbool(bool b, IntPtr temp) + => SafeExecution(() => Native.EverNeBoolTbool(b, temp)); + + public static int EverNeFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.EverNeFloatTfloat(d, temp)); + + public static int EverNeIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.EverNeIntTint(i, temp)); + + public static int EverNeTboolBool(IntPtr temp, bool b) + => SafeExecution(() => Native.EverNeTboolBool(temp, b)); + + public static int EverNeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTemporalTemporal(temp1, temp2)); + + public static int EverNeTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.EverNeTextTtext(txt, temp)); + + public static int EverNeTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.EverNeTfloatFloat(temp, d)); + + public static int EverNeTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.EverNeTintInt(temp, i)); + + public static int EverNeBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.EverNeBigintTbigint(i, temp)); + + public static int EverNeTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.EverNeTbigintBigint(temp, i)); + + public static int EverNeTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.EverNeTtextText(temp, txt)); + + public static IntPtr TeqBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.TeqBigintTbigint(i, temp)); + + public static IntPtr TeqBoolTbool(bool b, IntPtr temp) + => SafeExecution(() => Native.TeqBoolTbool(b, temp)); + + public static IntPtr TeqFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.TeqFloatTfloat(d, temp)); + + public static IntPtr TeqIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.TeqIntTint(i, temp)); + + public static IntPtr TeqTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.TeqTbigintBigint(temp, i)); + + public static IntPtr TeqTboolBool(IntPtr temp, bool b) + => SafeExecution(() => Native.TeqTboolBool(temp, b)); + + public static IntPtr TeqTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TeqTemporalTemporal(temp1, temp2)); + + public static IntPtr TeqTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.TeqTextTtext(txt, temp)); + + public static IntPtr TeqTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.TeqTfloatFloat(temp, d)); + + public static IntPtr TeqTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.TeqTintInt(temp, i)); + + public static IntPtr TeqTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TeqTtextText(temp, txt)); + + public static IntPtr TgeBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.TgeBigintTbigint(i, temp)); + + public static IntPtr TgeFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.TgeFloatTfloat(d, temp)); + + public static IntPtr TgeIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.TgeIntTint(i, temp)); + + public static IntPtr TgeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TgeTemporalTemporal(temp1, temp2)); + + public static IntPtr TgeTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.TgeTextTtext(txt, temp)); + + public static IntPtr TgeTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.TgeTbigintBigint(temp, i)); + + public static IntPtr TgeTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.TgeTfloatFloat(temp, d)); + + public static IntPtr TgeTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.TgeTintInt(temp, i)); + + public static IntPtr TgeTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TgeTtextText(temp, txt)); + + public static IntPtr TgtBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.TgtBigintTbigint(i, temp)); + + public static IntPtr TgtFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.TgtFloatTfloat(d, temp)); + + public static IntPtr TgtIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.TgtIntTint(i, temp)); + + public static IntPtr TgtTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TgtTemporalTemporal(temp1, temp2)); + + public static IntPtr TgtTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.TgtTextTtext(txt, temp)); + + public static IntPtr TgtTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.TgtTbigintBigint(temp, i)); + + public static IntPtr TgtTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.TgtTfloatFloat(temp, d)); + + public static IntPtr TgtTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.TgtTintInt(temp, i)); + + public static IntPtr TgtTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TgtTtextText(temp, txt)); + + public static IntPtr TleBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.TleBigintTbigint(i, temp)); + + public static IntPtr TleFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.TleFloatTfloat(d, temp)); + + public static IntPtr TleIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.TleIntTint(i, temp)); + + public static IntPtr TleTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TleTemporalTemporal(temp1, temp2)); + + public static IntPtr TleTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.TleTextTtext(txt, temp)); + + public static IntPtr TleTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.TleTbigintBigint(temp, i)); + + public static IntPtr TleTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.TleTfloatFloat(temp, d)); + + public static IntPtr TleTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.TleTintInt(temp, i)); + + public static IntPtr TleTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TleTtextText(temp, txt)); + + public static IntPtr TltBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.TltBigintTbigint(i, temp)); + + public static IntPtr TltFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.TltFloatTfloat(d, temp)); + + public static IntPtr TltIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.TltIntTint(i, temp)); + + public static IntPtr TltTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TltTemporalTemporal(temp1, temp2)); + + public static IntPtr TltTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.TltTextTtext(txt, temp)); + + public static IntPtr TltTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.TltTbigintBigint(temp, i)); + + public static IntPtr TltTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.TltTfloatFloat(temp, d)); + + public static IntPtr TltTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.TltTintInt(temp, i)); + + public static IntPtr TltTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TltTtextText(temp, txt)); + + public static IntPtr TneBigintTbigint(long i, IntPtr temp) + => SafeExecution(() => Native.TneBigintTbigint(i, temp)); + + public static IntPtr TneBoolTbool(bool b, IntPtr temp) + => SafeExecution(() => Native.TneBoolTbool(b, temp)); + + public static IntPtr TneFloatTfloat(double d, IntPtr temp) + => SafeExecution(() => Native.TneFloatTfloat(d, temp)); + + public static IntPtr TneIntTint(int i, IntPtr temp) + => SafeExecution(() => Native.TneIntTint(i, temp)); + + public static IntPtr TneTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.TneTbigintBigint(temp, i)); + + public static IntPtr TneTboolBool(IntPtr temp, bool b) + => SafeExecution(() => Native.TneTboolBool(temp, b)); + + public static IntPtr TneTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TneTemporalTemporal(temp1, temp2)); + + public static IntPtr TneTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.TneTextTtext(txt, temp)); + + public static IntPtr TneTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.TneTfloatFloat(temp, d)); + + public static IntPtr TneTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.TneTintInt(temp, i)); + + public static IntPtr TneTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TneTtextText(temp, txt)); + + public static IntPtr[] TemporalSpans(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalSpans(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TemporalSplitEachNSpans(IntPtr temp, int elem_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalSplitEachNSpans(temp, elem_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TemporalSplitNSpans(IntPtr temp, int span_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalSplitNSpans(temp, span_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TnumberSplitEachNTboxes(IntPtr temp, int elem_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TnumberSplitEachNTboxes(temp, elem_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TnumberSplitNTboxes(IntPtr temp, int box_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TnumberSplitNTboxes(temp, box_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TnumberTboxes(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TnumberTboxes(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool AdjacentNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.AdjacentNumspanTnumber(s, temp)); + + public static bool AdjacentTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.AdjacentTboxTnumber(box, temp)); + + public static bool AdjacentTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AdjacentTemporalTemporal(temp1, temp2)); + + public static bool AdjacentTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.AdjacentTemporalTstzspan(temp, s)); + + public static bool AdjacentTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.AdjacentTnumberNumspan(temp, s)); + + public static bool AdjacentTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.AdjacentTnumberTbox(temp, box)); + + public static bool AdjacentTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AdjacentTnumberTnumber(temp1, temp2)); + + public static bool AdjacentTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.AdjacentTstzspanTemporal(s, temp)); + + public static bool ContainedNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.ContainedNumspanTnumber(s, temp)); + + public static bool ContainedTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.ContainedTboxTnumber(box, temp)); + + public static bool ContainedTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainedTemporalTemporal(temp1, temp2)); + + public static bool ContainedTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.ContainedTemporalTstzspan(temp, s)); + + public static bool ContainedTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.ContainedTnumberNumspan(temp, s)); + + public static bool ContainedTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.ContainedTnumberTbox(temp, box)); + + public static bool ContainedTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainedTnumberTnumber(temp1, temp2)); + + public static bool ContainedTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.ContainedTstzspanTemporal(s, temp)); + + public static bool ContainsNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.ContainsNumspanTnumber(s, temp)); + + public static bool ContainsTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.ContainsTboxTnumber(box, temp)); + + public static bool ContainsTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.ContainsTemporalTstzspan(temp, s)); + + public static bool ContainsTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainsTemporalTemporal(temp1, temp2)); + + public static bool ContainsTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.ContainsTnumberNumspan(temp, s)); + + public static bool ContainsTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.ContainsTnumberTbox(temp, box)); + + public static bool ContainsTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainsTnumberTnumber(temp1, temp2)); + + public static bool ContainsTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.ContainsTstzspanTemporal(s, temp)); + + public static bool OverlapsNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.OverlapsNumspanTnumber(s, temp)); + + public static bool OverlapsTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverlapsTboxTnumber(box, temp)); + + public static bool OverlapsTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverlapsTemporalTemporal(temp1, temp2)); + + public static bool TemporalTimeOverlaps(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalTimeOverlaps(temp1, temp2)); + + public static bool OverlapsTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.OverlapsTemporalTstzspan(temp, s)); + + public static bool OverlapsTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.OverlapsTnumberNumspan(temp, s)); + + public static bool OverlapsTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverlapsTnumberTbox(temp, box)); + + public static bool OverlapsTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverlapsTnumberTnumber(temp1, temp2)); + + public static bool OverlapsTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.OverlapsTstzspanTemporal(s, temp)); + + public static bool SameNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.SameNumspanTnumber(s, temp)); + + public static bool SameTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.SameTboxTnumber(box, temp)); + + public static bool SameTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.SameTemporalTemporal(temp1, temp2)); + + public static bool SameTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.SameTemporalTstzspan(temp, s)); + + public static bool SameTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.SameTnumberNumspan(temp, s)); + + public static bool SameTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.SameTnumberTbox(temp, box)); + + public static bool SameTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.SameTnumberTnumber(temp1, temp2)); + + public static bool SameTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.SameTstzspanTemporal(s, temp)); + + public static bool AfterTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.AfterTboxTnumber(box, temp)); + + public static bool AfterTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.AfterTemporalTstzspan(temp, s)); + + public static bool AfterTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AfterTemporalTemporal(temp1, temp2)); + + public static bool AfterTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.AfterTnumberTbox(temp, box)); + + public static bool AfterTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AfterTnumberTnumber(temp1, temp2)); + + public static bool AfterTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.AfterTstzspanTemporal(s, temp)); + + public static bool BeforeTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.BeforeTboxTnumber(box, temp)); + + public static bool BeforeTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.BeforeTemporalTstzspan(temp, s)); + + public static bool BeforeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.BeforeTemporalTemporal(temp1, temp2)); + + public static bool BeforeTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.BeforeTnumberTbox(temp, box)); + + public static bool BeforeTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.BeforeTnumberTnumber(temp1, temp2)); + + public static bool BeforeTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.BeforeTstzspanTemporal(s, temp)); + + public static bool LeftTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.LeftTboxTnumber(box, temp)); + + public static bool LeftNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.LeftNumspanTnumber(s, temp)); + + public static bool LeftTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.LeftTnumberNumspan(temp, s)); + + public static bool LeftTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.LeftTnumberTbox(temp, box)); + + public static bool LeftTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.LeftTnumberTnumber(temp1, temp2)); + + public static bool OverafterTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverafterTboxTnumber(box, temp)); + + public static bool OverafterTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.OverafterTemporalTstzspan(temp, s)); + + public static bool OverafterTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverafterTemporalTemporal(temp1, temp2)); + + public static bool OverafterTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverafterTnumberTbox(temp, box)); + + public static bool OverafterTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverafterTnumberTnumber(temp1, temp2)); + + public static bool OverafterTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.OverafterTstzspanTemporal(s, temp)); + + public static bool OverbeforeTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverbeforeTboxTnumber(box, temp)); + + public static bool OverbeforeTemporalTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.OverbeforeTemporalTstzspan(temp, s)); + + public static bool OverbeforeTemporalTemporal(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverbeforeTemporalTemporal(temp1, temp2)); + + public static bool OverbeforeTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverbeforeTnumberTbox(temp, box)); + + public static bool OverbeforeTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverbeforeTnumberTnumber(temp1, temp2)); + + public static bool OverbeforeTstzspanTemporal(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.OverbeforeTstzspanTemporal(s, temp)); + + public static bool OverleftNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.OverleftNumspanTnumber(s, temp)); + + public static bool OverleftTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverleftTboxTnumber(box, temp)); + + public static bool OverleftTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.OverleftTnumberNumspan(temp, s)); + + public static bool OverleftTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverleftTnumberTbox(temp, box)); + + public static bool OverleftTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverleftTnumberTnumber(temp1, temp2)); + + public static bool OverrightNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.OverrightNumspanTnumber(s, temp)); + + public static bool OverrightTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverrightTboxTnumber(box, temp)); + + public static bool OverrightTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.OverrightTnumberNumspan(temp, s)); + + public static bool OverrightTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverrightTnumberTbox(temp, box)); + + public static bool OverrightTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverrightTnumberTnumber(temp1, temp2)); + + public static bool RightNumspanTnumber(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.RightNumspanTnumber(s, temp)); + + public static bool RightTboxTnumber(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.RightTboxTnumber(box, temp)); + + public static bool RightTnumberNumspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.RightTnumberNumspan(temp, s)); + + public static bool RightTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.RightTnumberTbox(temp, box)); + + public static bool RightTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.RightTnumberTnumber(temp1, temp2)); + + public static IntPtr TandBoolTbool(bool b, IntPtr temp) + => SafeExecution(() => Native.TandBoolTbool(b, temp)); + + public static IntPtr TandTboolBool(IntPtr temp, bool b) + => SafeExecution(() => Native.TandTboolBool(temp, b)); + + public static IntPtr TandTboolTbool(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TandTboolTbool(temp1, temp2)); + + public static IntPtr TboolWhenTrue(IntPtr temp) + => SafeExecution(() => Native.TboolWhenTrue(temp)); + + public static IntPtr TnotTbool(IntPtr temp) + => SafeExecution(() => Native.TnotTbool(temp)); + + public static IntPtr TorBoolTbool(bool b, IntPtr temp) + => SafeExecution(() => Native.TorBoolTbool(b, temp)); + + public static IntPtr TorTboolBool(IntPtr temp, bool b) + => SafeExecution(() => Native.TorTboolBool(temp, b)); + + public static IntPtr TorTboolTbool(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TorTboolTbool(temp1, temp2)); + + public static IntPtr AddFloatTfloat(double d, IntPtr tnumber) + => SafeExecution(() => Native.AddFloatTfloat(d, tnumber)); + + public static IntPtr AddIntTint(int i, IntPtr tnumber) + => SafeExecution(() => Native.AddIntTint(i, tnumber)); + + public static IntPtr AddTfloatFloat(IntPtr tnumber, double d) + => SafeExecution(() => Native.AddTfloatFloat(tnumber, d)); + + public static IntPtr AddTintInt(IntPtr tnumber, int i) + => SafeExecution(() => Native.AddTintInt(tnumber, i)); + + public static IntPtr AddBigintTbigint(long i, IntPtr tnumber) + => SafeExecution(() => Native.AddBigintTbigint(i, tnumber)); + + public static IntPtr AddTbigintBigint(IntPtr tnumber, long i) + => SafeExecution(() => Native.AddTbigintBigint(tnumber, i)); + + public static IntPtr AddTnumberTnumber(IntPtr tnumber1, IntPtr tnumber2) + => SafeExecution(() => Native.AddTnumberTnumber(tnumber1, tnumber2)); + + public static IntPtr DivFloatTfloat(double d, IntPtr tnumber) + => SafeExecution(() => Native.DivFloatTfloat(d, tnumber)); + + public static IntPtr DivIntTint(int i, IntPtr tnumber) + => SafeExecution(() => Native.DivIntTint(i, tnumber)); + + public static IntPtr DivTfloatFloat(IntPtr tnumber, double d) + => SafeExecution(() => Native.DivTfloatFloat(tnumber, d)); + + public static IntPtr DivTintInt(IntPtr tnumber, int i) + => SafeExecution(() => Native.DivTintInt(tnumber, i)); + + public static IntPtr DivBigintTbigint(long i, IntPtr tnumber) + => SafeExecution(() => Native.DivBigintTbigint(i, tnumber)); + + public static IntPtr DivTbigintBigint(IntPtr tnumber, long i) + => SafeExecution(() => Native.DivTbigintBigint(tnumber, i)); + + public static IntPtr DivTnumberTnumber(IntPtr tnumber1, IntPtr tnumber2) + => SafeExecution(() => Native.DivTnumberTnumber(tnumber1, tnumber2)); + + public static IntPtr MulFloatTfloat(double d, IntPtr tnumber) + => SafeExecution(() => Native.MulFloatTfloat(d, tnumber)); + + public static IntPtr MulIntTint(int i, IntPtr tnumber) + => SafeExecution(() => Native.MulIntTint(i, tnumber)); + + public static IntPtr MulTfloatFloat(IntPtr tnumber, double d) + => SafeExecution(() => Native.MulTfloatFloat(tnumber, d)); + + public static IntPtr MulTintInt(IntPtr tnumber, int i) + => SafeExecution(() => Native.MulTintInt(tnumber, i)); + + public static IntPtr MulBigintTbigint(long i, IntPtr tnumber) + => SafeExecution(() => Native.MulBigintTbigint(i, tnumber)); + + public static IntPtr MulTbigintBigint(IntPtr tnumber, long i) + => SafeExecution(() => Native.MulTbigintBigint(tnumber, i)); + + public static IntPtr MulTnumberTnumber(IntPtr tnumber1, IntPtr tnumber2) + => SafeExecution(() => Native.MulTnumberTnumber(tnumber1, tnumber2)); + + public static IntPtr SubFloatTfloat(double d, IntPtr tnumber) + => SafeExecution(() => Native.SubFloatTfloat(d, tnumber)); + + public static IntPtr SubIntTint(int i, IntPtr tnumber) + => SafeExecution(() => Native.SubIntTint(i, tnumber)); + + public static IntPtr SubTfloatFloat(IntPtr tnumber, double d) + => SafeExecution(() => Native.SubTfloatFloat(tnumber, d)); + + public static IntPtr SubTintInt(IntPtr tnumber, int i) + => SafeExecution(() => Native.SubTintInt(tnumber, i)); + + public static IntPtr SubBigintTbigint(long i, IntPtr tnumber) + => SafeExecution(() => Native.SubBigintTbigint(i, tnumber)); + + public static IntPtr SubTbigintBigint(IntPtr tnumber, long i) + => SafeExecution(() => Native.SubTbigintBigint(tnumber, i)); + + public static IntPtr SubTnumberTnumber(IntPtr tnumber1, IntPtr tnumber2) + => SafeExecution(() => Native.SubTnumberTnumber(tnumber1, tnumber2)); + + public static IntPtr TemporalDerivative(IntPtr temp) + => SafeExecution(() => Native.TemporalDerivative(temp)); + + public static IntPtr TfloatExp(IntPtr temp) + => SafeExecution(() => Native.TfloatExp(temp)); + + public static IntPtr TfloatLn(IntPtr temp) + => SafeExecution(() => Native.TfloatLn(temp)); + + public static IntPtr TfloatLog10(IntPtr temp) + => SafeExecution(() => Native.TfloatLog10(temp)); + + public static IntPtr TfloatSin(IntPtr temp) + => SafeExecution(() => Native.TfloatSin(temp)); + + public static IntPtr TfloatCos(IntPtr temp) + => SafeExecution(() => Native.TfloatCos(temp)); + + public static IntPtr TfloatTan(IntPtr temp) + => SafeExecution(() => Native.TfloatTan(temp)); + + public static IntPtr TnumberAbs(IntPtr temp) + => SafeExecution(() => Native.TnumberAbs(temp)); + + public static IntPtr TnumberTrend(IntPtr temp) + => SafeExecution(() => Native.TnumberTrend(temp)); + + public static double FloatAngularDifference(double degrees1, double degrees2) + => SafeExecution(() => Native.FloatAngularDifference(degrees1, degrees2)); + + public static IntPtr TnumberAngularDifference(IntPtr temp) + => SafeExecution(() => Native.TnumberAngularDifference(temp)); + + public static IntPtr TnumberDeltaValue(IntPtr temp) + => SafeExecution(() => Native.TnumberDeltaValue(temp)); + + public static IntPtr TextcatTextTtext(IntPtr txt, IntPtr temp) + => SafeExecution(() => Native.TextcatTextTtext(txt, temp)); + + public static IntPtr TextcatTtextText(IntPtr temp, IntPtr txt) + => SafeExecution(() => Native.TextcatTtextText(temp, txt)); + + public static IntPtr TextcatTtextTtext(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TextcatTtextTtext(temp1, temp2)); + + public static IntPtr TtextInitcap(IntPtr temp) + => SafeExecution(() => Native.TtextInitcap(temp)); + + public static IntPtr TtextUpper(IntPtr temp) + => SafeExecution(() => Native.TtextUpper(temp)); + + public static IntPtr TtextLower(IntPtr temp) + => SafeExecution(() => Native.TtextLower(temp)); + + public static IntPtr TdistanceTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.TdistanceTfloatFloat(temp, d)); + + public static IntPtr TdistanceTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.TdistanceTintInt(temp, i)); + + public static IntPtr TdistanceTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdistanceTnumberTnumber(temp1, temp2)); + + public static double NadTboxfloatTboxfloat(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.NadTboxfloatTboxfloat(box1, box2)); + + public static int NadTboxintTboxint(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.NadTboxintTboxint(box1, box2)); + + public static double NadTfloatFloat(IntPtr temp, double d) + => SafeExecution(() => Native.NadTfloatFloat(temp, d)); + + public static double NadTfloatTfloat(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTfloatTfloat(temp1, temp2)); + + public static double NadTfloatTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTfloatTbox(temp, box)); + + public static long NadTbigintBigint(IntPtr temp, long i) + => SafeExecution(() => Native.NadTbigintBigint(temp, i)); + + public static long NadTbigintTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTbigintTbox(temp, box)); + + public static long NadTbigintTbigint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTbigintTbigint(temp1, temp2)); + + public static long NadTboxbigintTboxbigint(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.NadTboxbigintTboxbigint(box1, box2)); + + public static int NadTintInt(IntPtr temp, int i) + => SafeExecution(() => Native.NadTintInt(temp, i)); + + public static int NadTintTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTintTbox(temp, box)); + + public static int NadTintTint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTintTint(temp1, temp2)); + + public static IntPtr TbigintTmaxTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TbigintTmaxTransfn(state, temp)); + + public static IntPtr TbigintTmaxCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TbigintTmaxCombinefn(state1, state2)); + + public static IntPtr TbigintTminTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TbigintTminTransfn(state, temp)); + + public static IntPtr TbigintTminCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TbigintTminCombinefn(state1, state2)); + + public static IntPtr TbigintTsumTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TbigintTsumTransfn(state, temp)); + + public static IntPtr TbigintTsumCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TbigintTsumCombinefn(state1, state2)); + + public static IntPtr TbigintWmaxTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TbigintWmaxTransfn(state, temp, interv)); + + public static IntPtr TbigintWminTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TbigintWminTransfn(state, temp, interv)); + + public static IntPtr TbigintWsumTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TbigintWsumTransfn(state, temp, interv)); + + public static IntPtr TboolTandTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TboolTandTransfn(state, temp)); + + public static IntPtr TboolTandCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TboolTandCombinefn(state1, state2)); + + public static IntPtr TboolTorTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TboolTorTransfn(state, temp)); + + public static IntPtr TboolTorCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TboolTorCombinefn(state1, state2)); + + public static IntPtr TemporalExtentTransfn(IntPtr s, IntPtr temp) + => SafeExecution(() => Native.TemporalExtentTransfn(s, temp)); + + public static IntPtr TemporalTaggFinalfn(IntPtr state) + => SafeExecution(() => Native.TemporalTaggFinalfn(state)); + + public static IntPtr TemporalTcountTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TemporalTcountTransfn(state, temp)); + + public static IntPtr TemporalTcountCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TemporalTcountCombinefn(state1, state2)); + + public static IntPtr TfloatTmaxTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TfloatTmaxTransfn(state, temp)); + + public static IntPtr TfloatTmaxCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TfloatTmaxCombinefn(state1, state2)); + + public static IntPtr TfloatTminTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TfloatTminTransfn(state, temp)); + + public static IntPtr TfloatTminCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TfloatTminCombinefn(state1, state2)); + + public static IntPtr TfloatTsumTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TfloatTsumTransfn(state, temp)); + + public static IntPtr TfloatTsumCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TfloatTsumCombinefn(state1, state2)); + + public static IntPtr TfloatWmaxTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TfloatWmaxTransfn(state, temp, interv)); + + public static IntPtr TfloatWminTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TfloatWminTransfn(state, temp, interv)); + + public static IntPtr TfloatWsumTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TfloatWsumTransfn(state, temp, interv)); + + public static IntPtr TimestamptzTcountTransfn(IntPtr state, long t) + => SafeExecution(() => Native.TimestamptzTcountTransfn(state, t)); + + public static IntPtr TintTmaxTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TintTmaxTransfn(state, temp)); + + public static IntPtr TintTmaxCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TintTmaxCombinefn(state1, state2)); + + public static IntPtr TintTminTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TintTminTransfn(state, temp)); + + public static IntPtr TintTminCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TintTminCombinefn(state1, state2)); + + public static IntPtr TintTsumTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TintTsumTransfn(state, temp)); + + public static IntPtr TintTsumCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TintTsumCombinefn(state1, state2)); + + public static IntPtr TintWmaxTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TintWmaxTransfn(state, temp, interv)); + + public static IntPtr TintWminTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TintWminTransfn(state, temp, interv)); + + public static IntPtr TintWsumTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TintWsumTransfn(state, temp, interv)); + + public static IntPtr TnumberExtentTransfn(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.TnumberExtentTransfn(box, temp)); + + public static IntPtr TnumberTavgFinalfn(IntPtr state) + => SafeExecution(() => Native.TnumberTavgFinalfn(state)); + + public static IntPtr TnumberTavgTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TnumberTavgTransfn(state, temp)); + + public static IntPtr TnumberTavgCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TnumberTavgCombinefn(state1, state2)); + + public static IntPtr TnumberWavgTransfn(IntPtr state, IntPtr temp, IntPtr interv) + => SafeExecution(() => Native.TnumberWavgTransfn(state, temp, interv)); + + public static IntPtr TstzsetTcountTransfn(IntPtr state, IntPtr s) + => SafeExecution(() => Native.TstzsetTcountTransfn(state, s)); + + public static IntPtr TstzspanTcountTransfn(IntPtr state, IntPtr s) + => SafeExecution(() => Native.TstzspanTcountTransfn(state, s)); + + public static IntPtr TstzspansetTcountTransfn(IntPtr state, IntPtr ss) + => SafeExecution(() => Native.TstzspansetTcountTransfn(state, ss)); + + public static IntPtr TemporalMergeTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TemporalMergeTransfn(state, temp)); + + public static IntPtr TemporalMergeCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TemporalMergeCombinefn(state1, state2)); + + public static IntPtr TtextTmaxTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TtextTmaxTransfn(state, temp)); + + public static IntPtr TtextTmaxCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TtextTmaxCombinefn(state1, state2)); + + public static IntPtr TtextTminTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TtextTminTransfn(state, temp)); + + public static IntPtr TtextTminCombinefn(IntPtr state1, IntPtr state2) + => SafeExecution(() => Native.TtextTminCombinefn(state1, state2)); + + public static IntPtr TemporalSimplifyDp(IntPtr temp, double dist, bool synchronized) + => SafeExecution(() => Native.TemporalSimplifyDp(temp, dist, synchronized)); + + public static IntPtr TemporalSimplifyMaxDist(IntPtr temp, double dist, bool synchronized) + => SafeExecution(() => Native.TemporalSimplifyMaxDist(temp, dist, synchronized)); + + public static IntPtr TemporalSimplifyMinDist(IntPtr temp, double dist) + => SafeExecution(() => Native.TemporalSimplifyMinDist(temp, dist)); + + public static IntPtr TemporalSimplifyMinTdelta(IntPtr temp, IntPtr mint) + => SafeExecution(() => Native.TemporalSimplifyMinTdelta(temp, mint)); + + public static IntPtr TemporalTprecision(IntPtr temp, IntPtr duration, long origin) + => SafeExecution(() => Native.TemporalTprecision(temp, duration, origin)); + + public static IntPtr TemporalTsample(IntPtr temp, IntPtr duration, long origin, int interp) + => SafeExecution(() => Native.TemporalTsample(temp, duration, origin, interp)); + + public static double TemporalDyntimewarpDistance(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalDyntimewarpDistance(temp1, temp2)); + + public static IntPtr[] TemporalDyntimewarpPath(IntPtr temp1, IntPtr temp2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalDyntimewarpPath(temp1, temp2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 8); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double TemporalFrechetDistance(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalFrechetDistance(temp1, temp2)); + + public static IntPtr[] TemporalFrechetPath(IntPtr temp1, IntPtr temp2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalFrechetPath(temp1, temp2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 8); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double TemporalHausdorffDistance(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalHausdorffDistance(temp1, temp2)); + + public static double TemporalAverageHausdorffDistance(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TemporalAverageHausdorffDistance(temp1, temp2)); + + public static double TemporalLcssDistance(IntPtr temp1, IntPtr temp2, double epsilon) + => SafeExecution(() => Native.TemporalLcssDistance(temp1, temp2, epsilon)); + + public static IntPtr TemporalExtKalmanFilter(IntPtr temp, double gate, double q, double variance, bool to_drop) + => SafeExecution(() => Native.TemporalExtKalmanFilter(temp, gate, q, variance, to_drop)); + + public static IntPtr[] TemporalTimeBins(IntPtr temp, IntPtr duration, long origin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalTimeBins(temp, duration, origin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static (IntPtr[], long[]) TemporalTimeSplit(IntPtr temp, IntPtr duration, long torigin) + { + IntPtr _out_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TemporalTimeSplit(temp, duration, torigin, _out_bins, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_bins_arr = Marshal.ReadIntPtr(_out_bins); + long[] __out_bins_out = new long[_n]; + Marshal.Copy(__out_bins_arr, __out_bins_out, 0, _n); + return (_resultArr, __out_bins_out); + } + finally + { + Marshal.FreeHGlobal(_out_bins); + Marshal.FreeHGlobal(_count_count); + } + } + + public static IntPtr[] TfloatTimeBoxes(IntPtr temp, IntPtr duration, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TfloatTimeBoxes(temp, duration, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TfloatValueBins(IntPtr temp, double vsize, double vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TfloatValueBins(temp, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TfloatValueBoxes(IntPtr temp, double vsize, double vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TfloatValueBoxes(temp, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static (IntPtr[], double[]) TfloatValueSplit(IntPtr temp, double size, double origin) + { + IntPtr _out_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TfloatValueSplit(temp, size, origin, _out_bins, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_bins_arr = Marshal.ReadIntPtr(_out_bins); + double[] __out_bins_out = new double[_n]; + Marshal.Copy(__out_bins_arr, __out_bins_out, 0, _n); + return (_resultArr, __out_bins_out); + } + finally + { + Marshal.FreeHGlobal(_out_bins); + Marshal.FreeHGlobal(_count_count); + } + } + + public static IntPtr[] TfloatValueTimeBoxes(IntPtr temp, double vsize, IntPtr duration, double vorigin, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TfloatValueTimeBoxes(temp, vsize, duration, vorigin, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static (IntPtr[], double[], long[]) TfloatValueTimeSplit(IntPtr temp, double vsize, IntPtr duration, double vorigin, long torigin) + { + IntPtr _out_value_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _out_time_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TfloatValueTimeSplit(temp, vsize, duration, vorigin, torigin, _out_value_bins, _out_time_bins, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_value_bins_arr = Marshal.ReadIntPtr(_out_value_bins); + double[] __out_value_bins_out = new double[_n]; + Marshal.Copy(__out_value_bins_arr, __out_value_bins_out, 0, _n); + IntPtr __out_time_bins_arr = Marshal.ReadIntPtr(_out_time_bins); + long[] __out_time_bins_out = new long[_n]; + Marshal.Copy(__out_time_bins_arr, __out_time_bins_out, 0, _n); + return (_resultArr, __out_value_bins_out, __out_time_bins_out); + } + finally + { + Marshal.FreeHGlobal(_out_value_bins); + Marshal.FreeHGlobal(_out_time_bins); + Marshal.FreeHGlobal(_count_count); + } + } + + public static IntPtr[] TfloatboxTimeTiles(IntPtr box, IntPtr duration, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TfloatboxTimeTiles(box, duration, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TfloatboxValueTiles(IntPtr box, double vsize, double vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TfloatboxValueTiles(box, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TfloatboxValueTimeTiles(IntPtr box, double vsize, IntPtr duration, double vorigin, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TfloatboxValueTimeTiles(box, vsize, duration, vorigin, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TintTimeBoxes(IntPtr temp, IntPtr duration, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TintTimeBoxes(temp, duration, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TintValueBins(IntPtr temp, int vsize, int vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TintValueBins(temp, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TintValueBoxes(IntPtr temp, int vsize, int vorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TintValueBoxes(temp, vsize, vorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static (IntPtr[], int[]) TintValueSplit(IntPtr temp, int vsize, int vorigin) + { + IntPtr _out_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TintValueSplit(temp, vsize, vorigin, _out_bins, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_bins_arr = Marshal.ReadIntPtr(_out_bins); + int[] __out_bins_out = new int[_n]; + Marshal.Copy(__out_bins_arr, __out_bins_out, 0, _n); + return (_resultArr, __out_bins_out); + } + finally + { + Marshal.FreeHGlobal(_out_bins); + Marshal.FreeHGlobal(_count_count); + } + } + + public static IntPtr[] TintValueTimeBoxes(IntPtr temp, int vsize, IntPtr duration, int vorigin, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TintValueTimeBoxes(temp, vsize, duration, vorigin, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static (IntPtr[], int[], long[]) TintValueTimeSplit(IntPtr temp, int size, IntPtr duration, int vorigin, long torigin) + { + IntPtr _out_value_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _out_time_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TintValueTimeSplit(temp, size, duration, vorigin, torigin, _out_value_bins, _out_time_bins, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_value_bins_arr = Marshal.ReadIntPtr(_out_value_bins); + int[] __out_value_bins_out = new int[_n]; + Marshal.Copy(__out_value_bins_arr, __out_value_bins_out, 0, _n); + IntPtr __out_time_bins_arr = Marshal.ReadIntPtr(_out_time_bins); + long[] __out_time_bins_out = new long[_n]; + Marshal.Copy(__out_time_bins_arr, __out_time_bins_out, 0, _n); + return (_resultArr, __out_value_bins_out, __out_time_bins_out); + } + finally + { + Marshal.FreeHGlobal(_out_value_bins); + Marshal.FreeHGlobal(_out_time_bins); + Marshal.FreeHGlobal(_count_count); + } + } + + public static IntPtr[] TintboxTimeTiles(IntPtr box, IntPtr duration, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TintboxTimeTiles(box, duration, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TintboxValueTiles(IntPtr box, int xsize, int xorigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TintboxValueTiles(box, xsize, xorigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TintboxValueTimeTiles(IntPtr box, int xsize, IntPtr duration, int xorigin, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TintboxValueTimeTiles(box, xsize, duration, xorigin, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_catalog.g.cs b/MEOS.NET/Functions/Meos.meos_catalog.g.cs new file mode 100644 index 0000000..bc148aa --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_catalog.g.cs @@ -0,0 +1,258 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_catalog.h declares. + public static partial class Meos + { + public static bool TemptypeSubtype(int subtype) + => SafeExecution(() => Native.TemptypeSubtype(subtype)); + + public static bool TemptypeSubtypeAll(int subtype) + => SafeExecution(() => Native.TemptypeSubtypeAll(subtype)); + + public static string? TempsubtypeName(int subtype) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.TempsubtypeName(subtype))); + + public static bool TempsubtypeFromString(string str, IntPtr subtype) + => SafeExecution(() => Native.TempsubtypeFromString(str, subtype)); + + public static string? MeosoperName(int oper) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.MeosoperName(oper))); + + public static int MeosoperFromString(string name) + => SafeExecution(() => Native.MeosoperFromString(name)); + + public static string? InterptypeName(int interp) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.InterptypeName(interp))); + + public static int InterptypeFromString(string interp_str) + => SafeExecution(() => Native.InterptypeFromString(interp_str)); + + public static int MeosTypeofHexwkb(string hexwkb) + => SafeExecution(() => Native.MeosTypeofHexwkb(hexwkb)); + + public static string? MeostypeName(int type) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.MeostypeName(type))); + + public static int TemptypeBasetype(int type) + => SafeExecution(() => Native.TemptypeBasetype(type)); + + public static int SettypeBasetype(int type) + => SafeExecution(() => Native.SettypeBasetype(type)); + + public static int SpantypeBasetype(int type) + => SafeExecution(() => Native.SpantypeBasetype(type)); + + public static int SpantypeSpansettype(int type) + => SafeExecution(() => Native.SpantypeSpansettype(type)); + + public static int SpansettypeSpantype(int type) + => SafeExecution(() => Native.SpansettypeSpantype(type)); + + public static int BasetypeSpantype(int type) + => SafeExecution(() => Native.BasetypeSpantype(type)); + + public static int BasetypeSettype(int type) + => SafeExecution(() => Native.BasetypeSettype(type)); + + public static bool TnumberBasetype(int type) + => SafeExecution(() => Native.TnumberBasetype(type)); + + public static bool GeoBasetype(int type) + => SafeExecution(() => Native.GeoBasetype(type)); + + public static bool MeosBasetype(int type) + => SafeExecution(() => Native.MeosBasetype(type)); + + public static bool AlphanumBasetype(int type) + => SafeExecution(() => Native.AlphanumBasetype(type)); + + public static bool AlphanumTemptype(int type) + => SafeExecution(() => Native.AlphanumTemptype(type)); + + public static bool TimeType(int type) + => SafeExecution(() => Native.TimeType(type)); + + public static bool SetBasetype(int type) + => SafeExecution(() => Native.SetBasetype(type)); + + public static bool SetType(int type) + => SafeExecution(() => Native.SetType(type)); + + public static bool NumsetType(int type) + => SafeExecution(() => Native.NumsetType(type)); + + public static bool EnsureNumsetType(int type) + => SafeExecution(() => Native.EnsureNumsetType(type)); + + public static bool TimesetType(int type) + => SafeExecution(() => Native.TimesetType(type)); + + public static bool SetSpantype(int type) + => SafeExecution(() => Native.SetSpantype(type)); + + public static bool EnsureSetSpantype(int type) + => SafeExecution(() => Native.EnsureSetSpantype(type)); + + public static bool AlphanumsetType(int settype) + => SafeExecution(() => Native.AlphanumsetType(settype)); + + public static bool GeosetType(int type) + => SafeExecution(() => Native.GeosetType(type)); + + public static bool EnsureGeosetType(int type) + => SafeExecution(() => Native.EnsureGeosetType(type)); + + public static bool SpatialsetType(int type) + => SafeExecution(() => Native.SpatialsetType(type)); + + public static bool EnsureSpatialsetType(int type) + => SafeExecution(() => Native.EnsureSpatialsetType(type)); + + public static bool PointcloudBasetype(int type) + => SafeExecution(() => Native.PointcloudBasetype(type)); + + public static bool PointcloudsetType(int type) + => SafeExecution(() => Native.PointcloudsetType(type)); + + public static bool TpointcloudTemptype(int type) + => SafeExecution(() => Native.TpointcloudTemptype(type)); + + public static bool EnsureTpointcloudTemptype(int type) + => SafeExecution(() => Native.EnsureTpointcloudTemptype(type)); + + public static bool SpanBasetype(int type) + => SafeExecution(() => Native.SpanBasetype(type)); + + public static bool SpanCanonBasetype(int type) + => SafeExecution(() => Native.SpanCanonBasetype(type)); + + public static bool SpanType(int type) + => SafeExecution(() => Native.SpanType(type)); + + public static bool TypeSpanBbox(int type) + => SafeExecution(() => Native.TypeSpanBbox(type)); + + public static int TypeBboxtype(int type) + => SafeExecution(() => Native.TypeBboxtype(type)); + + public static bool SpanTboxType(int type) + => SafeExecution(() => Native.SpanTboxType(type)); + + public static bool EnsureSpanTboxType(int type) + => SafeExecution(() => Native.EnsureSpanTboxType(type)); + + public static bool NumspanBasetype(int type) + => SafeExecution(() => Native.NumspanBasetype(type)); + + public static bool NumspanType(int type) + => SafeExecution(() => Native.NumspanType(type)); + + public static bool EnsureNumspanType(int type) + => SafeExecution(() => Native.EnsureNumspanType(type)); + + public static bool TimespanBasetype(int type) + => SafeExecution(() => Native.TimespanBasetype(type)); + + public static bool TimespanType(int type) + => SafeExecution(() => Native.TimespanType(type)); + + public static bool SpansetType(int type) + => SafeExecution(() => Native.SpansetType(type)); + + public static bool TimespansetType(int type) + => SafeExecution(() => Native.TimespansetType(type)); + + public static bool EnsureTimespansetType(int type) + => SafeExecution(() => Native.EnsureTimespansetType(type)); + + public static bool TemporalType(int type) + => SafeExecution(() => Native.TemporalType(type)); + + public static bool TemporalBasetype(int type) + => SafeExecution(() => Native.TemporalBasetype(type)); + + public static bool TemptypeSupportsLinear(int type) + => SafeExecution(() => Native.TemptypeSupportsLinear(type)); + + public static bool BasetypeByvalue(int type) + => SafeExecution(() => Native.BasetypeByvalue(type)); + + public static bool BasetypeVarlength(int type) + => SafeExecution(() => Native.BasetypeVarlength(type)); + + public static short MeostypeLength(int type) + => SafeExecution(() => Native.MeostypeLength(type)); + + public static bool TalphanumType(int type) + => SafeExecution(() => Native.TalphanumType(type)); + + public static bool TalphaType(int type) + => SafeExecution(() => Native.TalphaType(type)); + + public static bool TnumberType(int type) + => SafeExecution(() => Native.TnumberType(type)); + + public static bool EnsureTnumberType(int type) + => SafeExecution(() => Native.EnsureTnumberType(type)); + + public static bool TorderType(int type) + => SafeExecution(() => Native.TorderType(type)); + + public static bool EnsureTorderType(int type) + => SafeExecution(() => Native.EnsureTorderType(type)); + + public static bool EnsureTnumberBasetype(int type) + => SafeExecution(() => Native.EnsureTnumberBasetype(type)); + + public static bool TnumberSpantype(int type) + => SafeExecution(() => Native.TnumberSpantype(type)); + + public static bool SpatialBasetype(int type) + => SafeExecution(() => Native.SpatialBasetype(type)); + + public static bool TspatialType(int type) + => SafeExecution(() => Native.TspatialType(type)); + + public static bool EnsureTspatialType(int type) + => SafeExecution(() => Native.EnsureTspatialType(type)); + + public static bool TpointType(int type) + => SafeExecution(() => Native.TpointType(type)); + + public static bool EnsureTpointType(int type) + => SafeExecution(() => Native.EnsureTpointType(type)); + + public static bool TgeoType(int type) + => SafeExecution(() => Native.TgeoType(type)); + + public static bool EnsureTgeoType(int type) + => SafeExecution(() => Native.EnsureTgeoType(type)); + + public static bool TspatialBodyType(int type) + => SafeExecution(() => Native.TspatialBodyType(type)); + + public static bool TgeoTypeAll(int type) + => SafeExecution(() => Native.TgeoTypeAll(type)); + + public static bool EnsureTgeoTypeAll(int type) + => SafeExecution(() => Native.EnsureTgeoTypeAll(type)); + + public static bool TgeometryType(int type) + => SafeExecution(() => Native.TgeometryType(type)); + + public static bool EnsureTgeometryType(int type) + => SafeExecution(() => Native.EnsureTgeometryType(type)); + + public static bool TgeodeticType(int type) + => SafeExecution(() => Native.TgeodeticType(type)); + + public static bool EnsureTgeodeticType(int type) + => SafeExecution(() => Native.EnsureTgeodeticType(type)); + + public static bool EnsureTnumberTpointType(int type) + => SafeExecution(() => Native.EnsureTnumberTpointType(type)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_cbuffer.g.cs b/MEOS.NET/Functions/Meos.meos_cbuffer.g.cs new file mode 100644 index 0000000..78d3cc5 --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_cbuffer.g.cs @@ -0,0 +1,603 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_cbuffer.h declares. + public static partial class Meos + { + public static string CbufferAsEwkt(IntPtr cb, int maxdd) + => SafeExecution(() => Native.CbufferAsEwkt(cb, maxdd)); + + public static string CbufferAsHexwkb(IntPtr cb, byte variant, IntPtr size_out) + => SafeExecution(() => Native.CbufferAsHexwkb(cb, variant, size_out)); + + public static string CbufferAsText(IntPtr cb, int maxdd) + => SafeExecution(() => Native.CbufferAsText(cb, maxdd)); + + public static IntPtr CbufferAsWkb(IntPtr cb, byte variant, IntPtr size_out) + => SafeExecution(() => Native.CbufferAsWkb(cb, variant, size_out)); + + public static IntPtr CbufferFromHexwkb(string hexwkb) + => SafeExecution(() => Native.CbufferFromHexwkb(hexwkb)); + + public static IntPtr CbufferFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.CbufferFromWkb(wkb, size)); + + public static IntPtr CbufferIn(string str) + => SafeExecution(() => Native.CbufferIn(str)); + + public static string CbufferOut(IntPtr cb, int maxdd) + => SafeExecution(() => Native.CbufferOut(cb, maxdd)); + + public static IntPtr CbufferCopy(IntPtr cb) + => SafeExecution(() => Native.CbufferCopy(cb)); + + public static IntPtr CbufferMake(IntPtr point, double radius) + => SafeExecution(() => Native.CbufferMake(point, radius)); + + public static IntPtr CbufferToGeom(IntPtr cb) + => SafeExecution(() => Native.CbufferToGeom(cb)); + + public static IntPtr CbufferToStbox(IntPtr cb) + => SafeExecution(() => Native.CbufferToStbox(cb)); + + public static IntPtr CbufferarrToGeom(IntPtr cbarr, int count) + => SafeExecution(() => Native.CbufferarrToGeom(cbarr, count)); + + public static IntPtr GeomToCbuffer(IntPtr gs) + => SafeExecution(() => Native.GeomToCbuffer(gs)); + + public static uint CbufferHash(IntPtr cb) + => SafeExecution(() => Native.CbufferHash(cb)); + + public static ulong CbufferHashExtended(IntPtr cb, ulong seed) + => SafeExecution(() => Native.CbufferHashExtended(cb, seed)); + + public static IntPtr CbufferPoint(IntPtr cb) + => SafeExecution(() => Native.CbufferPoint(cb)); + + public static double CbufferRadius(IntPtr cb) + => SafeExecution(() => Native.CbufferRadius(cb)); + + public static IntPtr CbufferRound(IntPtr cb, int maxdd) + => SafeExecution(() => Native.CbufferRound(cb, maxdd)); + + public static IntPtr CbufferarrRound(IntPtr cbarr, int count, int maxdd) + => SafeExecution(() => Native.CbufferarrRound(cbarr, count, maxdd)); + + public static IntPtr CbufferSetSrid(IntPtr cb, int srid) + => SafeExecution(() => Native.CbufferSetSrid(cb, srid)); + + public static int CbufferSrid(IntPtr cb) + => SafeExecution(() => Native.CbufferSrid(cb)); + + public static IntPtr CbufferTransform(IntPtr cb, int srid) + => SafeExecution(() => Native.CbufferTransform(cb, srid)); + + public static IntPtr CbufferTransformPipeline(IntPtr cb, string pipelinestr, int srid, bool is_forward) + => SafeExecution(() => Native.CbufferTransformPipeline(cb, pipelinestr, srid, is_forward)); + + public static int ContainsCbufferCbuffer(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.ContainsCbufferCbuffer(cb1, cb2)); + + public static int CoversCbufferCbuffer(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CoversCbufferCbuffer(cb1, cb2)); + + public static int DisjointCbufferCbuffer(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.DisjointCbufferCbuffer(cb1, cb2)); + + public static int DwithinCbufferCbuffer(IntPtr cb1, IntPtr cb2, double dist) + => SafeExecution(() => Native.DwithinCbufferCbuffer(cb1, cb2, dist)); + + public static int IntersectsCbufferCbuffer(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.IntersectsCbufferCbuffer(cb1, cb2)); + + public static int TouchesCbufferCbuffer(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.TouchesCbufferCbuffer(cb1, cb2)); + + public static IntPtr CbufferTstzspanToStbox(IntPtr cb, IntPtr s) + => SafeExecution(() => Native.CbufferTstzspanToStbox(cb, s)); + + public static IntPtr CbufferTimestamptzToStbox(IntPtr cb, long t) + => SafeExecution(() => Native.CbufferTimestamptzToStbox(cb, t)); + + public static double DistanceCbufferCbuffer(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.DistanceCbufferCbuffer(cb1, cb2)); + + public static double DistanceCbufferGeo(IntPtr cb, IntPtr gs) + => SafeExecution(() => Native.DistanceCbufferGeo(cb, gs)); + + public static double DistanceCbufferStbox(IntPtr cb, IntPtr box) + => SafeExecution(() => Native.DistanceCbufferStbox(cb, box)); + + public static double NadCbufferStbox(IntPtr cb, IntPtr box) + => SafeExecution(() => Native.NadCbufferStbox(cb, box)); + + public static int CbufferCmp(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferCmp(cb1, cb2)); + + public static bool CbufferEq(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferEq(cb1, cb2)); + + public static bool CbufferGe(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferGe(cb1, cb2)); + + public static bool CbufferGt(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferGt(cb1, cb2)); + + public static bool CbufferLe(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferLe(cb1, cb2)); + + public static bool CbufferLt(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferLt(cb1, cb2)); + + public static bool CbufferNe(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferNe(cb1, cb2)); + + public static bool CbufferNsame(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferNsame(cb1, cb2)); + + public static bool CbufferSame(IntPtr cb1, IntPtr cb2) + => SafeExecution(() => Native.CbufferSame(cb1, cb2)); + + public static IntPtr CbuffersetIn(string str) + => SafeExecution(() => Native.CbuffersetIn(str)); + + public static string CbuffersetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.CbuffersetOut(s, maxdd)); + + public static IntPtr CbuffersetMake(IntPtr values, int count) + => SafeExecution(() => Native.CbuffersetMake(values, count)); + + public static IntPtr CbufferToSet(IntPtr cb) + => SafeExecution(() => Native.CbufferToSet(cb)); + + public static IntPtr CbuffersetEndValue(IntPtr s) + => SafeExecution(() => Native.CbuffersetEndValue(s)); + + public static IntPtr CbuffersetStartValue(IntPtr s) + => SafeExecution(() => Native.CbuffersetStartValue(s)); + + public static bool CbuffersetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.CbuffersetValueN(s, n, result)); + + public static IntPtr[] CbuffersetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.CbuffersetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr CbufferUnionTransfn(IntPtr state, IntPtr cb) + => SafeExecution(() => Native.CbufferUnionTransfn(state, cb)); + + public static bool ContainedCbufferSet(IntPtr cb, IntPtr s) + => SafeExecution(() => Native.ContainedCbufferSet(cb, s)); + + public static bool ContainsSetCbuffer(IntPtr s, IntPtr cb) + => SafeExecution(() => Native.ContainsSetCbuffer(s, cb)); + + public static IntPtr IntersectionCbufferSet(IntPtr cb, IntPtr s) + => SafeExecution(() => Native.IntersectionCbufferSet(cb, s)); + + public static IntPtr IntersectionSetCbuffer(IntPtr s, IntPtr cb) + => SafeExecution(() => Native.IntersectionSetCbuffer(s, cb)); + + public static IntPtr MinusCbufferSet(IntPtr cb, IntPtr s) + => SafeExecution(() => Native.MinusCbufferSet(cb, s)); + + public static IntPtr MinusSetCbuffer(IntPtr s, IntPtr cb) + => SafeExecution(() => Native.MinusSetCbuffer(s, cb)); + + public static IntPtr UnionCbufferSet(IntPtr cb, IntPtr s) + => SafeExecution(() => Native.UnionCbufferSet(cb, s)); + + public static IntPtr UnionSetCbuffer(IntPtr s, IntPtr cb) + => SafeExecution(() => Native.UnionSetCbuffer(s, cb)); + + public static IntPtr TcbufferIn(string str) + => SafeExecution(() => Native.TcbufferIn(str)); + + public static IntPtr TcbufferFromMfjson(string mfjson) + => SafeExecution(() => Native.TcbufferFromMfjson(mfjson)); + + public static IntPtr TcbufferinstMake(IntPtr cb, long t) + => SafeExecution(() => Native.TcbufferinstMake(cb, t)); + + public static IntPtr TcbufferMake(IntPtr tpoint, IntPtr tfloat) + => SafeExecution(() => Native.TcbufferMake(tpoint, tfloat)); + + public static IntPtr TcbufferFromBaseTemp(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.TcbufferFromBaseTemp(cb, temp)); + + public static IntPtr TcbufferseqFromBaseTstzset(IntPtr cb, IntPtr s) + => SafeExecution(() => Native.TcbufferseqFromBaseTstzset(cb, s)); + + public static IntPtr TcbufferseqFromBaseTstzspan(IntPtr cb, IntPtr s, int interp) + => SafeExecution(() => Native.TcbufferseqFromBaseTstzspan(cb, s, interp)); + + public static IntPtr TcbufferseqsetFromBaseTstzspanset(IntPtr cb, IntPtr ss, int interp) + => SafeExecution(() => Native.TcbufferseqsetFromBaseTstzspanset(cb, ss, interp)); + + public static IntPtr TcbufferEndValue(IntPtr temp) + => SafeExecution(() => Native.TcbufferEndValue(temp)); + + public static IntPtr TcbufferPoints(IntPtr temp) + => SafeExecution(() => Native.TcbufferPoints(temp)); + + public static IntPtr TcbufferRadius(IntPtr temp) + => SafeExecution(() => Native.TcbufferRadius(temp)); + + public static IntPtr TcbufferTraversedArea(IntPtr temp, bool unary_union) + => SafeExecution(() => Native.TcbufferTraversedArea(temp, unary_union)); + + public static IntPtr TcbufferConvexHull(IntPtr temp) + => SafeExecution(() => Native.TcbufferConvexHull(temp)); + + public static IntPtr TcbufferStartValue(IntPtr temp) + => SafeExecution(() => Native.TcbufferStartValue(temp)); + + public static bool TcbufferValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TcbufferValueAtTimestamptz(temp, t, strict, value)); + + public static bool TcbufferValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TcbufferValueN(temp, n, result)); + + public static IntPtr[] TcbufferValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TcbufferValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TcbufferToTfloat(IntPtr temp) + => SafeExecution(() => Native.TcbufferToTfloat(temp)); + + public static IntPtr TcbufferToTgeompoint(IntPtr temp) + => SafeExecution(() => Native.TcbufferToTgeompoint(temp)); + + public static IntPtr TgeometryToTcbuffer(IntPtr temp) + => SafeExecution(() => Native.TgeometryToTcbuffer(temp)); + + public static IntPtr TcbufferExpand(IntPtr temp, double dist) + => SafeExecution(() => Native.TcbufferExpand(temp, dist)); + + public static IntPtr TcbufferAtCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TcbufferAtCbuffer(temp, cb)); + + public static IntPtr TcbufferAtGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TcbufferAtGeom(temp, gs)); + + public static IntPtr TcbufferAtStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TcbufferAtStbox(temp, box, border_inc)); + + public static IntPtr TcbufferMinusCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TcbufferMinusCbuffer(temp, cb)); + + public static IntPtr TcbufferMinusGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TcbufferMinusGeom(temp, gs)); + + public static IntPtr TcbufferMinusStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TcbufferMinusStbox(temp, box, border_inc)); + + public static IntPtr TdistanceTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TdistanceTcbufferCbuffer(temp, cb)); + + public static IntPtr TdistanceTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TdistanceTcbufferGeo(temp, gs)); + + public static IntPtr TdistanceTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdistanceTcbufferTcbuffer(temp1, temp2)); + + public static double NadTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.NadTcbufferCbuffer(temp, cb)); + + public static double NadTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NadTcbufferGeo(temp, gs)); + + public static double NadTcbufferStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTcbufferStbox(temp, box)); + + public static double NadTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTcbufferTcbuffer(temp1, temp2)); + + public static double MindistanceTcbufferTcbuffer(IntPtr temp1, IntPtr temp2, double threshold) + => SafeExecution(() => Native.MindistanceTcbufferTcbuffer(temp1, temp2, threshold)); + + public static IntPtr NaiTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.NaiTcbufferCbuffer(temp, cb)); + + public static IntPtr NaiTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NaiTcbufferGeo(temp, gs)); + + public static IntPtr NaiTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NaiTcbufferTcbuffer(temp1, temp2)); + + public static IntPtr ShortestlineTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.ShortestlineTcbufferCbuffer(temp, cb)); + + public static IntPtr ShortestlineTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.ShortestlineTcbufferGeo(temp, gs)); + + public static IntPtr ShortestlineTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ShortestlineTcbufferTcbuffer(temp1, temp2)); + + public static int AlwaysEqCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqCbufferTcbuffer(cb, temp)); + + public static int AlwaysEqTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.AlwaysEqTcbufferCbuffer(temp, cb)); + + public static int AlwaysEqTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTcbufferTcbuffer(temp1, temp2)); + + public static int AlwaysNeCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeCbufferTcbuffer(cb, temp)); + + public static int AlwaysNeTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.AlwaysNeTcbufferCbuffer(temp, cb)); + + public static int AlwaysNeTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTcbufferTcbuffer(temp1, temp2)); + + public static int EverEqCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.EverEqCbufferTcbuffer(cb, temp)); + + public static int EverEqTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.EverEqTcbufferCbuffer(temp, cb)); + + public static int EverEqTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTcbufferTcbuffer(temp1, temp2)); + + public static int EverNeCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.EverNeCbufferTcbuffer(cb, temp)); + + public static int EverNeTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.EverNeTcbufferCbuffer(temp, cb)); + + public static int EverNeTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTcbufferTcbuffer(temp1, temp2)); + + public static IntPtr TeqCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.TeqCbufferTcbuffer(cb, temp)); + + public static IntPtr TeqTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TeqTcbufferCbuffer(temp, cb)); + + public static IntPtr TneCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.TneCbufferTcbuffer(cb, temp)); + + public static IntPtr TneTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TneTcbufferCbuffer(temp, cb)); + + public static int AcontainsCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.AcontainsCbufferTcbuffer(cb, temp)); + + public static int AcontainsGeoTcbuffer(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AcontainsGeoTcbuffer(gs, temp)); + + public static int AcontainsTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.AcontainsTcbufferCbuffer(temp, cb)); + + public static int AcontainsTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AcontainsTcbufferGeo(temp, gs)); + + public static int AcontainsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AcontainsTcbufferTcbuffer(temp1, temp2)); + + public static int AcoversCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.AcoversCbufferTcbuffer(cb, temp)); + + public static int AcoversGeoTcbuffer(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AcoversGeoTcbuffer(gs, temp)); + + public static int AcoversTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.AcoversTcbufferCbuffer(temp, cb)); + + public static int AcoversTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AcoversTcbufferGeo(temp, gs)); + + public static int AcoversTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AcoversTcbufferTcbuffer(temp1, temp2)); + + public static int AdisjointTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AdisjointTcbufferGeo(temp, gs)); + + public static int AdisjointTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.AdisjointTcbufferCbuffer(temp, cb)); + + public static int AdisjointTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AdisjointTcbufferTcbuffer(temp1, temp2)); + + public static int AdwithinTcbufferGeo(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.AdwithinTcbufferGeo(temp, gs, dist)); + + public static int AdwithinTcbufferCbuffer(IntPtr temp, IntPtr cb, double dist) + => SafeExecution(() => Native.AdwithinTcbufferCbuffer(temp, cb, dist)); + + public static int AdwithinTcbufferTcbuffer(IntPtr temp1, IntPtr temp2, double dist) + => SafeExecution(() => Native.AdwithinTcbufferTcbuffer(temp1, temp2, dist)); + + public static int AintersectsTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AintersectsTcbufferGeo(temp, gs)); + + public static int AintersectsTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.AintersectsTcbufferCbuffer(temp, cb)); + + public static int AintersectsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AintersectsTcbufferTcbuffer(temp1, temp2)); + + public static int AtouchesTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AtouchesTcbufferGeo(temp, gs)); + + public static int AtouchesTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.AtouchesTcbufferCbuffer(temp, cb)); + + public static int AtouchesTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AtouchesTcbufferTcbuffer(temp1, temp2)); + + public static int EcontainsCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.EcontainsCbufferTcbuffer(cb, temp)); + + public static int EcontainsTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.EcontainsTcbufferCbuffer(temp, cb)); + + public static int EcontainsTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EcontainsTcbufferGeo(temp, gs)); + + public static int EcontainsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EcontainsTcbufferTcbuffer(temp1, temp2)); + + public static int EcoversCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.EcoversCbufferTcbuffer(cb, temp)); + + public static int EcoversGeoTcbuffer(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EcoversGeoTcbuffer(gs, temp)); + + public static int EcoversTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.EcoversTcbufferCbuffer(temp, cb)); + + public static int EcoversTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EcoversTcbufferGeo(temp, gs)); + + public static int EcoversTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EcoversTcbufferTcbuffer(temp1, temp2)); + + public static int EdisjointTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EdisjointTcbufferGeo(temp, gs)); + + public static int EdisjointTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.EdisjointTcbufferCbuffer(temp, cb)); + + public static int EdwithinTcbufferGeo(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.EdwithinTcbufferGeo(temp, gs, dist)); + + public static int EdwithinTcbufferCbuffer(IntPtr temp, IntPtr cb, double dist) + => SafeExecution(() => Native.EdwithinTcbufferCbuffer(temp, cb, dist)); + + public static int EdwithinTcbufferTcbuffer(IntPtr temp1, IntPtr temp2, double dist) + => SafeExecution(() => Native.EdwithinTcbufferTcbuffer(temp1, temp2, dist)); + + public static int EintersectsTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EintersectsTcbufferGeo(temp, gs)); + + public static int EintersectsTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.EintersectsTcbufferCbuffer(temp, cb)); + + public static int EintersectsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EintersectsTcbufferTcbuffer(temp1, temp2)); + + public static int EtouchesTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EtouchesTcbufferGeo(temp, gs)); + + public static int EtouchesTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.EtouchesTcbufferCbuffer(temp, cb)); + + public static int EtouchesTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EtouchesTcbufferTcbuffer(temp1, temp2)); + + public static IntPtr TcontainsCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.TcontainsCbufferTcbuffer(cb, temp)); + + public static IntPtr TcontainsGeoTcbuffer(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TcontainsGeoTcbuffer(gs, temp)); + + public static IntPtr TcontainsTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TcontainsTcbufferGeo(temp, gs)); + + public static IntPtr TcontainsTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TcontainsTcbufferCbuffer(temp, cb)); + + public static IntPtr TcontainsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TcontainsTcbufferTcbuffer(temp1, temp2)); + + public static IntPtr TcoversCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.TcoversCbufferTcbuffer(cb, temp)); + + public static IntPtr TcoversGeoTcbuffer(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TcoversGeoTcbuffer(gs, temp)); + + public static IntPtr TcoversTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TcoversTcbufferGeo(temp, gs)); + + public static IntPtr TcoversTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TcoversTcbufferCbuffer(temp, cb)); + + public static IntPtr TcoversTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TcoversTcbufferTcbuffer(temp1, temp2)); + + public static IntPtr TdwithinGeoTcbuffer(IntPtr gs, IntPtr temp, double dist) + => SafeExecution(() => Native.TdwithinGeoTcbuffer(gs, temp, dist)); + + public static IntPtr TdwithinTcbufferGeo(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.TdwithinTcbufferGeo(temp, gs, dist)); + + public static IntPtr TdwithinTcbufferCbuffer(IntPtr temp, IntPtr cb, double dist) + => SafeExecution(() => Native.TdwithinTcbufferCbuffer(temp, cb, dist)); + + public static IntPtr TdwithinTcbufferTcbuffer(IntPtr temp1, IntPtr temp2, double dist) + => SafeExecution(() => Native.TdwithinTcbufferTcbuffer(temp1, temp2, dist)); + + public static IntPtr TdisjointCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.TdisjointCbufferTcbuffer(cb, temp)); + + public static IntPtr TdisjointGeoTcbuffer(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TdisjointGeoTcbuffer(gs, temp)); + + public static IntPtr TdisjointTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TdisjointTcbufferGeo(temp, gs)); + + public static IntPtr TdisjointTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TdisjointTcbufferCbuffer(temp, cb)); + + public static IntPtr TdisjointTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdisjointTcbufferTcbuffer(temp1, temp2)); + + public static IntPtr TintersectsCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.TintersectsCbufferTcbuffer(cb, temp)); + + public static IntPtr TintersectsGeoTcbuffer(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TintersectsGeoTcbuffer(gs, temp)); + + public static IntPtr TintersectsTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TintersectsTcbufferGeo(temp, gs)); + + public static IntPtr TintersectsTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TintersectsTcbufferCbuffer(temp, cb)); + + public static IntPtr TintersectsTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TintersectsTcbufferTcbuffer(temp1, temp2)); + + public static IntPtr TtouchesGeoTcbuffer(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TtouchesGeoTcbuffer(gs, temp)); + + public static IntPtr TtouchesTcbufferGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TtouchesTcbufferGeo(temp, gs)); + + public static IntPtr TtouchesCbufferTcbuffer(IntPtr cb, IntPtr temp) + => SafeExecution(() => Native.TtouchesCbufferTcbuffer(cb, temp)); + + public static IntPtr TtouchesTcbufferCbuffer(IntPtr temp, IntPtr cb) + => SafeExecution(() => Native.TtouchesTcbufferCbuffer(temp, cb)); + + public static IntPtr TtouchesTcbufferTcbuffer(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TtouchesTcbufferTcbuffer(temp1, temp2)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_cellindex.g.cs b/MEOS.NET/Functions/Meos.meos_cellindex.g.cs new file mode 100644 index 0000000..a10a5c5 --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_cellindex.g.cs @@ -0,0 +1,27 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_cellindex.h declares. + public static partial class Meos + { + public static IntPtr TcellindexGetResolution(IntPtr temp) + => SafeExecution(() => Native.TcellindexGetResolution(temp)); + + public static IntPtr TcellindexIsValidCell(IntPtr temp) + => SafeExecution(() => Native.TcellindexIsValidCell(temp)); + + public static IntPtr TcellindexCellToParent(IntPtr temp, int resolution) + => SafeExecution(() => Native.TcellindexCellToParent(temp, resolution)); + + public static IntPtr TcellindexCellToPoint(IntPtr temp) + => SafeExecution(() => Native.TcellindexCellToPoint(temp)); + + public static IntPtr TcellindexCellToBoundary(IntPtr temp) + => SafeExecution(() => Native.TcellindexCellToBoundary(temp)); + + public static IntPtr TcellindexCellArea(IntPtr temp) + => SafeExecution(() => Native.TcellindexCellArea(temp)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_geo.g.cs b/MEOS.NET/Functions/Meos.meos_geo.g.cs new file mode 100644 index 0000000..0f6d201 --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_geo.g.cs @@ -0,0 +1,1781 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_geo.h declares. + public static partial class Meos + { + public static IntPtr Box3dMake(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, int srid) + => SafeExecution(() => Native.Box3dMake(xmin, xmax, ymin, ymax, zmin, zmax, srid)); + + public static IntPtr Box3dIn(string str) + => SafeExecution(() => Native.Box3dIn(str)); + + public static string Box3dOut(IntPtr box, int maxdd) + => SafeExecution(() => Native.Box3dOut(box, maxdd)); + + public static IntPtr GboxMake(bool hasz, bool hasm, bool geodetic, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, double mmin, double mmax) + => SafeExecution(() => Native.GboxMake(hasz, hasm, geodetic, xmin, xmax, ymin, ymax, zmin, zmax, mmin, mmax)); + + public static IntPtr GboxIn(string str) + => SafeExecution(() => Native.GboxIn(str)); + + public static string GboxOut(IntPtr box, int maxdd) + => SafeExecution(() => Native.GboxOut(box, maxdd)); + + public static IntPtr GeoAsEwkb(IntPtr gs, string endian, IntPtr size) + => SafeExecution(() => Native.GeoAsEwkb(gs, endian, size)); + + public static string GeoAsEwkt(IntPtr gs, int precision) + => SafeExecution(() => Native.GeoAsEwkt(gs, precision)); + + public static string GeoAsGeojson(IntPtr gs, int option, int precision, string srs) + => SafeExecution(() => Native.GeoAsGeojson(gs, option, precision, srs)); + + public static string GeoAsHexewkb(IntPtr gs, string endian) + => SafeExecution(() => Native.GeoAsHexewkb(gs, endian)); + + public static string GeoAsText(IntPtr gs, int precision) + => SafeExecution(() => Native.GeoAsText(gs, precision)); + + public static IntPtr GeoFromEwkb(IntPtr wkb, ulong wkb_size, int srid) + => SafeExecution(() => Native.GeoFromEwkb(wkb, wkb_size, srid)); + + public static IntPtr GeoFromGeojson(string geojson) + => SafeExecution(() => Native.GeoFromGeojson(geojson)); + + public static IntPtr GeoFromText(string wkt, int srid) + => SafeExecution(() => Native.GeoFromText(wkt, srid)); + + public static string GeoOut(IntPtr gs) + => SafeExecution(() => Native.GeoOut(gs)); + + public static IntPtr GeogFromHexewkb(string wkt) + => SafeExecution(() => Native.GeogFromHexewkb(wkt)); + + public static IntPtr GeogIn(string str, int typmod) + => SafeExecution(() => Native.GeogIn(str, typmod)); + + public static IntPtr GeomFromHexewkb(string wkt) + => SafeExecution(() => Native.GeomFromHexewkb(wkt)); + + public static IntPtr GeomIn(string str, int typmod) + => SafeExecution(() => Native.GeomIn(str, typmod)); + + public static IntPtr GeoCopy(IntPtr gs) + => SafeExecution(() => Native.GeoCopy(gs)); + + public static IntPtr GeogpointMake2d(int srid, double x, double y) + => SafeExecution(() => Native.GeogpointMake2d(srid, x, y)); + + public static IntPtr GeogpointMake3dz(int srid, double x, double y, double z) + => SafeExecution(() => Native.GeogpointMake3dz(srid, x, y, z)); + + public static IntPtr GeompointMake2d(int srid, double x, double y) + => SafeExecution(() => Native.GeompointMake2d(srid, x, y)); + + public static IntPtr GeompointMake3dz(int srid, double x, double y, double z) + => SafeExecution(() => Native.GeompointMake3dz(srid, x, y, z)); + + public static IntPtr GeomToGeog(IntPtr geom) + => SafeExecution(() => Native.GeomToGeog(geom)); + + public static IntPtr GeogToGeom(IntPtr geog) + => SafeExecution(() => Native.GeogToGeom(geog)); + + public static bool GeoIsEmpty(IntPtr gs) + => SafeExecution(() => Native.GeoIsEmpty(gs)); + + public static bool GeoIsUnitary(IntPtr gs) + => SafeExecution(() => Native.GeoIsUnitary(gs)); + + public static string? GeoTypename(int type) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.GeoTypename(type))); + + public static double GeogArea(IntPtr gs, bool use_spheroid) + => SafeExecution(() => Native.GeogArea(gs, use_spheroid)); + + public static IntPtr GeogCentroid(IntPtr gs, bool use_spheroid) + => SafeExecution(() => Native.GeogCentroid(gs, use_spheroid)); + + public static double GeogLength(IntPtr gs, bool use_spheroid) + => SafeExecution(() => Native.GeogLength(gs, use_spheroid)); + + public static double GeogPerimeter(IntPtr gs, bool use_spheroid) + => SafeExecution(() => Native.GeogPerimeter(gs, use_spheroid)); + + public static bool GeomAzimuth(IntPtr gs1, IntPtr gs2, IntPtr result) + => SafeExecution(() => Native.GeomAzimuth(gs1, gs2, result)); + + public static double GeomLength(IntPtr gs) + => SafeExecution(() => Native.GeomLength(gs)); + + public static double GeomPerimeter(IntPtr gs) + => SafeExecution(() => Native.GeomPerimeter(gs)); + + public static int LineNumpoints(IntPtr gs) + => SafeExecution(() => Native.LineNumpoints(gs)); + + public static IntPtr LinePointN(IntPtr geom, int n) + => SafeExecution(() => Native.LinePointN(geom, n)); + + public static IntPtr GeoReverse(IntPtr gs) + => SafeExecution(() => Native.GeoReverse(gs)); + + public static IntPtr GeoRound(IntPtr gs, int maxdd) + => SafeExecution(() => Native.GeoRound(gs, maxdd)); + + public static IntPtr GeoSetSrid(IntPtr gs, int srid) + => SafeExecution(() => Native.GeoSetSrid(gs, srid)); + + public static int GeoSrid(IntPtr gs) + => SafeExecution(() => Native.GeoSrid(gs)); + + public static IntPtr GeoTransform(IntPtr geom, int srid_to) + => SafeExecution(() => Native.GeoTransform(geom, srid_to)); + + public static IntPtr GeoTransformPipeline(IntPtr gs, string pipeline, int srid_to, bool is_forward) + => SafeExecution(() => Native.GeoTransformPipeline(gs, pipeline, srid_to, is_forward)); + + public static IntPtr GeoCollectGarray(IntPtr gsarr, int count) + => SafeExecution(() => Native.GeoCollectGarray(gsarr, count)); + + public static IntPtr GeoMakelineGarray(IntPtr gsarr, int count) + => SafeExecution(() => Native.GeoMakelineGarray(gsarr, count)); + + public static int GeoNumPoints(IntPtr gs) + => SafeExecution(() => Native.GeoNumPoints(gs)); + + public static int GeoNumGeos(IntPtr gs) + => SafeExecution(() => Native.GeoNumGeos(gs)); + + public static IntPtr GeoGeoN(IntPtr geom, int n) + => SafeExecution(() => Native.GeoGeoN(geom, n)); + + public static IntPtr[] GeoPointarr(IntPtr gs) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoPointarr(gs, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr GeoPoints(IntPtr gs) + => SafeExecution(() => Native.GeoPoints(gs)); + + public static IntPtr GeomArrayUnion(IntPtr gsarr, int count) + => SafeExecution(() => Native.GeomArrayUnion(gsarr, count)); + + public static IntPtr GeogArrayUnion(IntPtr gsarr, int count) + => SafeExecution(() => Native.GeogArrayUnion(gsarr, count)); + + public static IntPtr GeomBoundary(IntPtr gs) + => SafeExecution(() => Native.GeomBoundary(gs)); + + public static IntPtr GeomBuffer(IntPtr gs, double size, string @params) + => SafeExecution(() => Native.GeomBuffer(gs, size, @params)); + + public static IntPtr GeomCentroid(IntPtr gs) + => SafeExecution(() => Native.GeomCentroid(gs)); + + public static IntPtr GeomConvexHull(IntPtr gs) + => SafeExecution(() => Native.GeomConvexHull(gs)); + + public static IntPtr GeomDifference2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomDifference2d(gs1, gs2)); + + public static bool GeomIsSimple(IntPtr gs) + => SafeExecution(() => Native.GeomIsSimple(gs)); + + public static IntPtr GeomIntersection2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomIntersection2d(gs1, gs2)); + + public static IntPtr GeomIntersection2dColl(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomIntersection2dColl(gs1, gs2)); + + public static IntPtr GeomMinBoundingRadius(IntPtr geom, IntPtr radius) + => SafeExecution(() => Native.GeomMinBoundingRadius(geom, radius)); + + public static IntPtr GeomOrientedEnvelope(IntPtr gs) + => SafeExecution(() => Native.GeomOrientedEnvelope(gs)); + + public static IntPtr GeomShortestline2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomShortestline2d(gs1, gs2)); + + public static IntPtr GeomShortestline3d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomShortestline3d(gs1, gs2)); + + public static IntPtr GeomUnaryUnion(IntPtr gs, double prec) + => SafeExecution(() => Native.GeomUnaryUnion(gs, prec)); + + public static IntPtr LineInterpolatePoint(IntPtr gs, double distance_fraction, bool repeat) + => SafeExecution(() => Native.LineInterpolatePoint(gs, distance_fraction, repeat)); + + public static double LineLocatePoint(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.LineLocatePoint(gs1, gs2)); + + public static IntPtr LineSubstring(IntPtr gs, double from, double to) + => SafeExecution(() => Native.LineSubstring(gs, from, to)); + + public static bool GeogDwithin(IntPtr g1, IntPtr g2, double tolerance, bool use_spheroid) + => SafeExecution(() => Native.GeogDwithin(g1, g2, tolerance, use_spheroid)); + + public static bool GeogIntersects(IntPtr gs1, IntPtr gs2, bool use_spheroid) + => SafeExecution(() => Native.GeogIntersects(gs1, gs2, use_spheroid)); + + public static bool GeomContains(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomContains(gs1, gs2)); + + public static bool GeomCovers(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomCovers(gs1, gs2)); + + public static bool GeomDisjoint2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomDisjoint2d(gs1, gs2)); + + public static bool GeomDwithin(IntPtr gs1, IntPtr gs2, double tolerance) + => SafeExecution(() => Native.GeomDwithin(gs1, gs2, tolerance)); + + public static bool GeomDwithin2d(IntPtr gs1, IntPtr gs2, double tolerance) + => SafeExecution(() => Native.GeomDwithin2d(gs1, gs2, tolerance)); + + public static bool GeomDwithin3d(IntPtr gs1, IntPtr gs2, double tolerance) + => SafeExecution(() => Native.GeomDwithin3d(gs1, gs2, tolerance)); + + public static bool GeomIntersects(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomIntersects(gs1, gs2)); + + public static bool GeomIntersects2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomIntersects2d(gs1, gs2)); + + public static bool GeomIntersects3d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomIntersects3d(gs1, gs2)); + + public static string GeomRelate(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomRelate(gs1, gs2)); + + public static bool GeomRelatePattern(IntPtr gs1, IntPtr gs2, string patt) + => SafeExecution(() => Native.GeomRelatePattern(gs1, gs2, patt)); + + public static bool GeomTouches(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomTouches(gs1, gs2)); + + public static IntPtr[] GeoStboxes(IntPtr gs) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoStboxes(gs, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] GeoSplitEachNStboxes(IntPtr gs, int elem_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoSplitEachNStboxes(gs, elem_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] GeoSplitNStboxes(IntPtr gs, int box_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoSplitNStboxes(gs, box_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double GeogDistance(IntPtr g1, IntPtr g2) + => SafeExecution(() => Native.GeogDistance(g1, g2)); + + public static double GeomDistance2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomDistance2d(gs1, gs2)); + + public static double GeomMaxDistance2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomMaxDistance2d(gs1, gs2)); + + public static double GeomDistance3d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeomDistance3d(gs1, gs2)); + + public static int GeoEquals(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeoEquals(gs1, gs2)); + + public static bool GeoSame(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeoSame(gs1, gs2)); + + public static IntPtr GeogsetIn(string str) + => SafeExecution(() => Native.GeogsetIn(str)); + + public static IntPtr GeomsetIn(string str) + => SafeExecution(() => Native.GeomsetIn(str)); + + public static string SpatialsetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.SpatialsetOut(s, maxdd)); + + public static string SpatialsetAsText(IntPtr set, int maxdd) + => SafeExecution(() => Native.SpatialsetAsText(set, maxdd)); + + public static string SpatialsetAsEwkt(IntPtr set, int maxdd) + => SafeExecution(() => Native.SpatialsetAsEwkt(set, maxdd)); + + public static IntPtr GeosetMake(IntPtr values, int count) + => SafeExecution(() => Native.GeosetMake(values, count)); + + public static IntPtr GeoToSet(IntPtr gs) + => SafeExecution(() => Native.GeoToSet(gs)); + + public static IntPtr GeosetEndValue(IntPtr s) + => SafeExecution(() => Native.GeosetEndValue(s)); + + public static IntPtr GeosetStartValue(IntPtr s) + => SafeExecution(() => Native.GeosetStartValue(s)); + + public static bool GeosetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.GeosetValueN(s, n, result)); + + public static IntPtr[] GeosetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeosetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool ContainedGeoSet(IntPtr gs, IntPtr s) + => SafeExecution(() => Native.ContainedGeoSet(gs, s)); + + public static bool ContainsSetGeo(IntPtr s, IntPtr gs) + => SafeExecution(() => Native.ContainsSetGeo(s, gs)); + + public static IntPtr GeoUnionTransfn(IntPtr state, IntPtr gs) + => SafeExecution(() => Native.GeoUnionTransfn(state, gs)); + + public static IntPtr IntersectionGeoSet(IntPtr gs, IntPtr s) + => SafeExecution(() => Native.IntersectionGeoSet(gs, s)); + + public static IntPtr IntersectionSetGeo(IntPtr s, IntPtr gs) + => SafeExecution(() => Native.IntersectionSetGeo(s, gs)); + + public static IntPtr MinusGeoSet(IntPtr gs, IntPtr s) + => SafeExecution(() => Native.MinusGeoSet(gs, s)); + + public static IntPtr MinusSetGeo(IntPtr s, IntPtr gs) + => SafeExecution(() => Native.MinusSetGeo(s, gs)); + + public static IntPtr UnionGeoSet(IntPtr gs, IntPtr s) + => SafeExecution(() => Native.UnionGeoSet(gs, s)); + + public static IntPtr UnionSetGeo(IntPtr s, IntPtr gs) + => SafeExecution(() => Native.UnionSetGeo(s, gs)); + + public static IntPtr SpatialsetSetSrid(IntPtr s, int srid) + => SafeExecution(() => Native.SpatialsetSetSrid(s, srid)); + + public static int SpatialsetSrid(IntPtr s) + => SafeExecution(() => Native.SpatialsetSrid(s)); + + public static IntPtr SpatialsetTransform(IntPtr s, int srid) + => SafeExecution(() => Native.SpatialsetTransform(s, srid)); + + public static IntPtr SpatialsetTransformPipeline(IntPtr s, string pipelinestr, int srid, bool is_forward) + => SafeExecution(() => Native.SpatialsetTransformPipeline(s, pipelinestr, srid, is_forward)); + + public static string StboxAsHexwkb(IntPtr box, byte variant, IntPtr size_out) + => SafeExecution(() => Native.StboxAsHexwkb(box, variant, size_out)); + + public static IntPtr StboxAsWkb(IntPtr box, byte variant, IntPtr size_out) + => SafeExecution(() => Native.StboxAsWkb(box, variant, size_out)); + + public static IntPtr StboxFromHexwkb(string hexwkb) + => SafeExecution(() => Native.StboxFromHexwkb(hexwkb)); + + public static IntPtr StboxFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.StboxFromWkb(wkb, size)); + + public static IntPtr StboxIn(string str) + => SafeExecution(() => Native.StboxIn(str)); + + public static string StboxOut(IntPtr box, int maxdd) + => SafeExecution(() => Native.StboxOut(box, maxdd)); + + public static IntPtr GeoTimestamptzToStbox(IntPtr gs, long t) + => SafeExecution(() => Native.GeoTimestamptzToStbox(gs, t)); + + public static IntPtr GeoTstzspanToStbox(IntPtr gs, IntPtr s) + => SafeExecution(() => Native.GeoTstzspanToStbox(gs, s)); + + public static IntPtr StboxCopy(IntPtr box) + => SafeExecution(() => Native.StboxCopy(box)); + + public static IntPtr StboxMake(bool hasx, bool hasz, bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr s) + => SafeExecution(() => Native.StboxMake(hasx, hasz, geodetic, srid, xmin, xmax, ymin, ymax, zmin, zmax, s)); + + public static IntPtr GeoToStbox(IntPtr gs) + => SafeExecution(() => Native.GeoToStbox(gs)); + + public static IntPtr SpatialsetToStbox(IntPtr s) + => SafeExecution(() => Native.SpatialsetToStbox(s)); + + public static IntPtr StboxToBox3d(IntPtr box) + => SafeExecution(() => Native.StboxToBox3d(box)); + + public static IntPtr StboxToGbox(IntPtr box) + => SafeExecution(() => Native.StboxToGbox(box)); + + public static IntPtr StboxToGeo(IntPtr box) + => SafeExecution(() => Native.StboxToGeo(box)); + + public static IntPtr StboxToTstzspan(IntPtr box) + => SafeExecution(() => Native.StboxToTstzspan(box)); + + public static IntPtr TimestamptzToStbox(long t) + => SafeExecution(() => Native.TimestamptzToStbox(t)); + + public static IntPtr TstzsetToStbox(IntPtr s) + => SafeExecution(() => Native.TstzsetToStbox(s)); + + public static IntPtr TstzspanToStbox(IntPtr s) + => SafeExecution(() => Native.TstzspanToStbox(s)); + + public static IntPtr TstzspansetToStbox(IntPtr ss) + => SafeExecution(() => Native.TstzspansetToStbox(ss)); + + public static double StboxArea(IntPtr box, bool spheroid) + => SafeExecution(() => Native.StboxArea(box, spheroid)); + + public static uint StboxHash(IntPtr box) + => SafeExecution(() => Native.StboxHash(box)); + + public static ulong StboxHashExtended(IntPtr box, ulong seed) + => SafeExecution(() => Native.StboxHashExtended(box, seed)); + + public static bool StboxHast(IntPtr box) + => SafeExecution(() => Native.StboxHast(box)); + + public static bool StboxHasx(IntPtr box) + => SafeExecution(() => Native.StboxHasx(box)); + + public static bool StboxHasz(IntPtr box) + => SafeExecution(() => Native.StboxHasz(box)); + + public static bool StboxIsgeodetic(IntPtr box) + => SafeExecution(() => Native.StboxIsgeodetic(box)); + + public static double StboxPerimeter(IntPtr box, bool spheroid) + => SafeExecution(() => Native.StboxPerimeter(box, spheroid)); + + public static bool StboxTmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxTmax(box, result)); + + public static bool StboxTmaxInc(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxTmaxInc(box, result)); + + public static bool StboxTmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxTmin(box, result)); + + public static bool StboxTminInc(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxTminInc(box, result)); + + public static double StboxVolume(IntPtr box) + => SafeExecution(() => Native.StboxVolume(box)); + + public static bool StboxXmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxXmax(box, result)); + + public static bool StboxXmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxXmin(box, result)); + + public static bool StboxYmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxYmax(box, result)); + + public static bool StboxYmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxYmin(box, result)); + + public static bool StboxZmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxZmax(box, result)); + + public static bool StboxZmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxZmin(box, result)); + + public static IntPtr StboxExpandSpace(IntPtr box, double d) + => SafeExecution(() => Native.StboxExpandSpace(box, d)); + + public static IntPtr StboxExpandTime(IntPtr box, IntPtr interv) + => SafeExecution(() => Native.StboxExpandTime(box, interv)); + + public static IntPtr StboxGetSpace(IntPtr box) + => SafeExecution(() => Native.StboxGetSpace(box)); + + public static IntPtr[] StboxQuadSplit(IntPtr box) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.StboxQuadSplit(box, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr StboxRound(IntPtr box, int maxdd) + => SafeExecution(() => Native.StboxRound(box, maxdd)); + + public static IntPtr StboxShiftScaleTime(IntPtr box, IntPtr shift, IntPtr duration) + => SafeExecution(() => Native.StboxShiftScaleTime(box, shift, duration)); + + public static IntPtr StboxarrRound(IntPtr boxarr, int count, int maxdd) + => SafeExecution(() => Native.StboxarrRound(boxarr, count, maxdd)); + + public static IntPtr StboxSetSrid(IntPtr box, int srid) + => SafeExecution(() => Native.StboxSetSrid(box, srid)); + + public static int StboxSrid(IntPtr box) + => SafeExecution(() => Native.StboxSrid(box)); + + public static IntPtr StboxTransform(IntPtr box, int srid) + => SafeExecution(() => Native.StboxTransform(box, srid)); + + public static IntPtr StboxTransformPipeline(IntPtr box, string pipelinestr, int srid, bool is_forward) + => SafeExecution(() => Native.StboxTransformPipeline(box, pipelinestr, srid, is_forward)); + + public static bool AdjacentStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.AdjacentStboxStbox(box1, box2)); + + public static bool ContainedStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.ContainedStboxStbox(box1, box2)); + + public static bool ContainsStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.ContainsStboxStbox(box1, box2)); + + public static bool OverlapsStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverlapsStboxStbox(box1, box2)); + + public static bool SameStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.SameStboxStbox(box1, box2)); + + public static bool AboveStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.AboveStboxStbox(box1, box2)); + + public static bool AfterStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.AfterStboxStbox(box1, box2)); + + public static bool BackStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.BackStboxStbox(box1, box2)); + + public static bool BeforeStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.BeforeStboxStbox(box1, box2)); + + public static bool BelowStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.BelowStboxStbox(box1, box2)); + + public static bool FrontStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.FrontStboxStbox(box1, box2)); + + public static bool LeftStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.LeftStboxStbox(box1, box2)); + + public static bool OveraboveStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OveraboveStboxStbox(box1, box2)); + + public static bool OverafterStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverafterStboxStbox(box1, box2)); + + public static bool OverbackStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverbackStboxStbox(box1, box2)); + + public static bool OverbeforeStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverbeforeStboxStbox(box1, box2)); + + public static bool OverbelowStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverbelowStboxStbox(box1, box2)); + + public static bool OverfrontStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverfrontStboxStbox(box1, box2)); + + public static bool OverleftStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverleftStboxStbox(box1, box2)); + + public static bool OverrightStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverrightStboxStbox(box1, box2)); + + public static bool RightStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.RightStboxStbox(box1, box2)); + + public static IntPtr UnionStboxStbox(IntPtr box1, IntPtr box2, bool strict) + => SafeExecution(() => Native.UnionStboxStbox(box1, box2, strict)); + + public static IntPtr IntersectionStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.IntersectionStboxStbox(box1, box2)); + + public static int StboxCmp(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxCmp(box1, box2)); + + public static bool StboxEq(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxEq(box1, box2)); + + public static bool StboxGe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxGe(box1, box2)); + + public static bool StboxGt(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxGt(box1, box2)); + + public static bool StboxLe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxLe(box1, box2)); + + public static bool StboxLt(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxLt(box1, box2)); + + public static bool StboxNe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxNe(box1, box2)); + + public static string TspatialOut(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TspatialOut(temp, maxdd)); + + public static IntPtr TgeogpointFromMfjson(string str) + => SafeExecution(() => Native.TgeogpointFromMfjson(str)); + + public static IntPtr TgeogpointIn(string str) + => SafeExecution(() => Native.TgeogpointIn(str)); + + public static IntPtr TgeographyFromMfjson(string mfjson) + => SafeExecution(() => Native.TgeographyFromMfjson(mfjson)); + + public static IntPtr TgeographyIn(string str) + => SafeExecution(() => Native.TgeographyIn(str)); + + public static IntPtr TgeometryFromMfjson(string str) + => SafeExecution(() => Native.TgeometryFromMfjson(str)); + + public static IntPtr TgeometryIn(string str) + => SafeExecution(() => Native.TgeometryIn(str)); + + public static IntPtr TgeompointFromMfjson(string str) + => SafeExecution(() => Native.TgeompointFromMfjson(str)); + + public static IntPtr TgeompointIn(string str) + => SafeExecution(() => Native.TgeompointIn(str)); + + public static string TspatialAsEwkt(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TspatialAsEwkt(temp, maxdd)); + + public static string TspatialAsText(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TspatialAsText(temp, maxdd)); + + public static IntPtr TgeoFromBaseTemp(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TgeoFromBaseTemp(gs, temp)); + + public static IntPtr TgeoinstMake(IntPtr gs, long t) + => SafeExecution(() => Native.TgeoinstMake(gs, t)); + + public static IntPtr TgeoseqFromBaseTstzset(IntPtr gs, IntPtr s) + => SafeExecution(() => Native.TgeoseqFromBaseTstzset(gs, s)); + + public static IntPtr TgeoseqFromBaseTstzspan(IntPtr gs, IntPtr s, int interp) + => SafeExecution(() => Native.TgeoseqFromBaseTstzspan(gs, s, interp)); + + public static IntPtr TgeoseqsetFromBaseTstzspanset(IntPtr gs, IntPtr ss, int interp) + => SafeExecution(() => Native.TgeoseqsetFromBaseTstzspanset(gs, ss, interp)); + + public static IntPtr TpointFromBaseTemp(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TpointFromBaseTemp(gs, temp)); + + public static IntPtr TpointinstMake(IntPtr gs, long t) + => SafeExecution(() => Native.TpointinstMake(gs, t)); + + public static IntPtr TpointseqFromBaseTstzset(IntPtr gs, IntPtr s) + => SafeExecution(() => Native.TpointseqFromBaseTstzset(gs, s)); + + public static IntPtr TpointseqFromBaseTstzspan(IntPtr gs, IntPtr s, int interp) + => SafeExecution(() => Native.TpointseqFromBaseTstzspan(gs, s, interp)); + + public static IntPtr TpointseqMakeCoords(IntPtr xcoords, IntPtr ycoords, IntPtr zcoords, IntPtr times, int count, int srid, bool geodetic, bool lower_inc, bool upper_inc, int interp, bool normalize) + => SafeExecution(() => Native.TpointseqMakeCoords(xcoords, ycoords, zcoords, times, count, srid, geodetic, lower_inc, upper_inc, interp, normalize)); + + public static IntPtr TpointseqsetFromBaseTstzspanset(IntPtr gs, IntPtr ss, int interp) + => SafeExecution(() => Native.TpointseqsetFromBaseTstzspanset(gs, ss, interp)); + + public static IntPtr Box3dToStbox(IntPtr box) + => SafeExecution(() => Native.Box3dToStbox(box)); + + public static IntPtr GboxToStbox(IntPtr box) + => SafeExecution(() => Native.GboxToStbox(box)); + + public static IntPtr GeomeasToTpoint(IntPtr gs) + => SafeExecution(() => Native.GeomeasToTpoint(gs)); + + public static IntPtr TgeogpointToTgeography(IntPtr temp) + => SafeExecution(() => Native.TgeogpointToTgeography(temp)); + + public static IntPtr TgeographyToTgeogpoint(IntPtr temp) + => SafeExecution(() => Native.TgeographyToTgeogpoint(temp)); + + public static IntPtr TgeographyToTgeometry(IntPtr temp) + => SafeExecution(() => Native.TgeographyToTgeometry(temp)); + + public static IntPtr TgeometryToTgeography(IntPtr temp) + => SafeExecution(() => Native.TgeometryToTgeography(temp)); + + public static IntPtr TgeometryToTgeompoint(IntPtr temp) + => SafeExecution(() => Native.TgeometryToTgeompoint(temp)); + + public static IntPtr TgeompointToTgeometry(IntPtr temp) + => SafeExecution(() => Native.TgeompointToTgeometry(temp)); + + public static IntPtr TpointAsMvtgeom(IntPtr temp, IntPtr bounds, int extent, int buffer, bool clip_geom) + => SafeExecution(() => Native.TpointAsMvtgeom(temp, bounds, extent, buffer, clip_geom)); + + public static bool TpointTfloatToGeomeas(IntPtr tpoint, IntPtr measure, bool segmentize, IntPtr result) + => SafeExecution(() => Native.TpointTfloatToGeomeas(tpoint, measure, segmentize, result)); + + public static IntPtr TspatialToStbox(IntPtr temp) + => SafeExecution(() => Native.TspatialToStbox(temp)); + + public static bool BearingPointPoint(IntPtr gs1, IntPtr gs2, IntPtr result) + => SafeExecution(() => Native.BearingPointPoint(gs1, gs2, result)); + + public static IntPtr BearingTpointPoint(IntPtr temp, IntPtr gs, bool invert) + => SafeExecution(() => Native.BearingTpointPoint(temp, gs, invert)); + + public static IntPtr BearingTpointTpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.BearingTpointTpoint(temp1, temp2)); + + public static IntPtr TgeoCentroid(IntPtr temp) + => SafeExecution(() => Native.TgeoCentroid(temp)); + + public static IntPtr TgeoConvexHull(IntPtr temp) + => SafeExecution(() => Native.TgeoConvexHull(temp)); + + public static IntPtr TgeoEndValue(IntPtr temp) + => SafeExecution(() => Native.TgeoEndValue(temp)); + + public static IntPtr TgeoStartValue(IntPtr temp) + => SafeExecution(() => Native.TgeoStartValue(temp)); + + public static IntPtr TgeoTraversedArea(IntPtr temp, bool unary_union) + => SafeExecution(() => Native.TgeoTraversedArea(temp, unary_union)); + + public static bool TgeoValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr result) + => SafeExecution(() => Native.TgeoValueAtTimestamptz(temp, t, strict, result)); + + public static bool TgeoValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TgeoValueN(temp, n, result)); + + public static IntPtr[] TgeoValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TpointAngularDifference(IntPtr temp) + => SafeExecution(() => Native.TpointAngularDifference(temp)); + + public static IntPtr TpointAzimuth(IntPtr temp) + => SafeExecution(() => Native.TpointAzimuth(temp)); + + public static IntPtr TpointCumulativeLength(IntPtr temp) + => SafeExecution(() => Native.TpointCumulativeLength(temp)); + + public static bool TpointDirection(IntPtr temp, IntPtr result) + => SafeExecution(() => Native.TpointDirection(temp, result)); + + public static IntPtr TpointGetX(IntPtr temp) + => SafeExecution(() => Native.TpointGetX(temp)); + + public static IntPtr TpointGetY(IntPtr temp) + => SafeExecution(() => Native.TpointGetY(temp)); + + public static IntPtr TpointGetZ(IntPtr temp) + => SafeExecution(() => Native.TpointGetZ(temp)); + + public static bool TpointIsSimple(IntPtr temp) + => SafeExecution(() => Native.TpointIsSimple(temp)); + + public static double TpointLength(IntPtr temp) + => SafeExecution(() => Native.TpointLength(temp)); + + public static IntPtr TpointSpeed(IntPtr temp) + => SafeExecution(() => Native.TpointSpeed(temp)); + + public static IntPtr TpointTrajectory(IntPtr temp, bool unary_union) + => SafeExecution(() => Native.TpointTrajectory(temp, unary_union)); + + public static IntPtr TpointTwcentroid(IntPtr temp) + => SafeExecution(() => Native.TpointTwcentroid(temp)); + + public static IntPtr TgeoAffine(IntPtr temp, IntPtr a) + => SafeExecution(() => Native.TgeoAffine(temp, a)); + + public static IntPtr TgeoScale(IntPtr temp, IntPtr scale, IntPtr sorigin) + => SafeExecution(() => Native.TgeoScale(temp, scale, sorigin)); + + public static IntPtr[] TpointMakeSimple(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TpointMakeSimple(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int TspatialSrid(IntPtr temp) + => SafeExecution(() => Native.TspatialSrid(temp)); + + public static IntPtr TspatialSetSrid(IntPtr temp, int srid) + => SafeExecution(() => Native.TspatialSetSrid(temp, srid)); + + public static IntPtr TspatialTransform(IntPtr temp, int srid) + => SafeExecution(() => Native.TspatialTransform(temp, srid)); + + public static IntPtr TspatialTransformPipeline(IntPtr temp, string pipelinestr, int srid, bool is_forward) + => SafeExecution(() => Native.TspatialTransformPipeline(temp, pipelinestr, srid, is_forward)); + + public static IntPtr TgeoAtGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TgeoAtGeom(temp, gs)); + + public static IntPtr TgeoAtStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TgeoAtStbox(temp, box, border_inc)); + + public static IntPtr TgeoAtValue(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TgeoAtValue(temp, gs)); + + public static IntPtr TgeoMinusGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TgeoMinusGeom(temp, gs)); + + public static IntPtr TgeoMinusStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TgeoMinusStbox(temp, box, border_inc)); + + public static IntPtr TgeoMinusValue(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TgeoMinusValue(temp, gs)); + + public static IntPtr TpointAtElevation(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TpointAtElevation(temp, s)); + + public static IntPtr TpointAtGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TpointAtGeom(temp, gs)); + + public static IntPtr TpointAtValue(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TpointAtValue(temp, gs)); + + public static IntPtr TpointMinusElevation(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TpointMinusElevation(temp, s)); + + public static IntPtr TpointMinusGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TpointMinusGeom(temp, gs)); + + public static IntPtr TpointMinusValue(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TpointMinusValue(temp, gs)); + + public static int AlwaysEqGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqGeoTgeo(gs, temp)); + + public static int AlwaysEqTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AlwaysEqTgeoGeo(temp, gs)); + + public static int AlwaysEqTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTgeoTgeo(temp1, temp2)); + + public static int AlwaysNeGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeGeoTgeo(gs, temp)); + + public static int AlwaysNeTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AlwaysNeTgeoGeo(temp, gs)); + + public static int AlwaysNeTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTgeoTgeo(temp1, temp2)); + + public static int EverEqGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EverEqGeoTgeo(gs, temp)); + + public static int EverEqTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EverEqTgeoGeo(temp, gs)); + + public static int EverEqTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTgeoTgeo(temp1, temp2)); + + public static int EverNeGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EverNeGeoTgeo(gs, temp)); + + public static int EverNeTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EverNeTgeoGeo(temp, gs)); + + public static int EverNeTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTgeoTgeo(temp1, temp2)); + + public static IntPtr TeqGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TeqGeoTgeo(gs, temp)); + + public static IntPtr TeqTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TeqTgeoGeo(temp, gs)); + + public static IntPtr TneGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TneGeoTgeo(gs, temp)); + + public static IntPtr TneTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TneTgeoGeo(temp, gs)); + + public static IntPtr[] TgeoStboxes(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoStboxes(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TgeoSpaceBoxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, bool bitmatrix, bool border_inc) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoSpaceBoxes(temp, xsize, ysize, zsize, sorigin, bitmatrix, border_inc, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TgeoSpaceTimeBoxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool bitmatrix, bool border_inc) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoSpaceTimeBoxes(temp, xsize, ysize, zsize, duration, sorigin, torigin, bitmatrix, border_inc, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TgeoSplitEachNStboxes(IntPtr temp, int elem_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoSplitEachNStboxes(temp, elem_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TgeoSplitNStboxes(IntPtr temp, int box_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoSplitNStboxes(temp, box_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool AdjacentStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.AdjacentStboxTspatial(box, temp)); + + public static bool AdjacentTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.AdjacentTspatialStbox(temp, box)); + + public static bool AdjacentTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AdjacentTspatialTspatial(temp1, temp2)); + + public static bool ContainedStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.ContainedStboxTspatial(box, temp)); + + public static bool ContainedTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.ContainedTspatialStbox(temp, box)); + + public static bool ContainedTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainedTspatialTspatial(temp1, temp2)); + + public static bool ContainsStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.ContainsStboxTspatial(box, temp)); + + public static bool ContainsTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.ContainsTspatialStbox(temp, box)); + + public static bool ContainsTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainsTspatialTspatial(temp1, temp2)); + + public static bool OverlapsStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverlapsStboxTspatial(box, temp)); + + public static bool OverlapsTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverlapsTspatialStbox(temp, box)); + + public static bool OverlapsTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverlapsTspatialTspatial(temp1, temp2)); + + public static bool SameStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.SameStboxTspatial(box, temp)); + + public static bool SameTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.SameTspatialStbox(temp, box)); + + public static bool SameTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.SameTspatialTspatial(temp1, temp2)); + + public static bool AboveStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.AboveStboxTspatial(box, temp)); + + public static bool AboveTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.AboveTspatialStbox(temp, box)); + + public static bool AboveTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AboveTspatialTspatial(temp1, temp2)); + + public static bool AfterStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.AfterStboxTspatial(box, temp)); + + public static bool AfterTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.AfterTspatialStbox(temp, box)); + + public static bool AfterTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AfterTspatialTspatial(temp1, temp2)); + + public static bool BackStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.BackStboxTspatial(box, temp)); + + public static bool BackTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.BackTspatialStbox(temp, box)); + + public static bool BackTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.BackTspatialTspatial(temp1, temp2)); + + public static bool BeforeStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.BeforeStboxTspatial(box, temp)); + + public static bool BeforeTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.BeforeTspatialStbox(temp, box)); + + public static bool BeforeTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.BeforeTspatialTspatial(temp1, temp2)); + + public static bool BelowStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.BelowStboxTspatial(box, temp)); + + public static bool BelowTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.BelowTspatialStbox(temp, box)); + + public static bool BelowTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.BelowTspatialTspatial(temp1, temp2)); + + public static bool FrontStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.FrontStboxTspatial(box, temp)); + + public static bool FrontTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.FrontTspatialStbox(temp, box)); + + public static bool FrontTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.FrontTspatialTspatial(temp1, temp2)); + + public static bool LeftStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.LeftStboxTspatial(box, temp)); + + public static bool LeftTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.LeftTspatialStbox(temp, box)); + + public static bool LeftTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.LeftTspatialTspatial(temp1, temp2)); + + public static bool OveraboveStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OveraboveStboxTspatial(box, temp)); + + public static bool OveraboveTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OveraboveTspatialStbox(temp, box)); + + public static bool OveraboveTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OveraboveTspatialTspatial(temp1, temp2)); + + public static bool OverafterStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverafterStboxTspatial(box, temp)); + + public static bool OverafterTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverafterTspatialStbox(temp, box)); + + public static bool OverafterTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverafterTspatialTspatial(temp1, temp2)); + + public static bool OverbackStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverbackStboxTspatial(box, temp)); + + public static bool OverbackTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverbackTspatialStbox(temp, box)); + + public static bool OverbackTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverbackTspatialTspatial(temp1, temp2)); + + public static bool OverbeforeStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverbeforeStboxTspatial(box, temp)); + + public static bool OverbeforeTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverbeforeTspatialStbox(temp, box)); + + public static bool OverbeforeTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverbeforeTspatialTspatial(temp1, temp2)); + + public static bool OverbelowStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverbelowStboxTspatial(box, temp)); + + public static bool OverbelowTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverbelowTspatialStbox(temp, box)); + + public static bool OverbelowTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverbelowTspatialTspatial(temp1, temp2)); + + public static bool OverfrontStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverfrontStboxTspatial(box, temp)); + + public static bool OverfrontTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverfrontTspatialStbox(temp, box)); + + public static bool OverfrontTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverfrontTspatialTspatial(temp1, temp2)); + + public static bool OverleftStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverleftStboxTspatial(box, temp)); + + public static bool OverleftTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverleftTspatialStbox(temp, box)); + + public static bool OverleftTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverleftTspatialTspatial(temp1, temp2)); + + public static bool OverrightStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverrightStboxTspatial(box, temp)); + + public static bool OverrightTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverrightTspatialStbox(temp, box)); + + public static bool OverrightTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverrightTspatialTspatial(temp1, temp2)); + + public static bool RightStboxTspatial(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.RightStboxTspatial(box, temp)); + + public static bool RightTspatialStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.RightTspatialStbox(temp, box)); + + public static bool RightTspatialTspatial(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.RightTspatialTspatial(temp1, temp2)); + + public static int AcontainsGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AcontainsGeoTgeo(gs, temp)); + + public static int AcontainsTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AcontainsTgeoGeo(temp, gs)); + + public static int AcontainsTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AcontainsTgeoTgeo(temp1, temp2)); + + public static int AcoversGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AcoversGeoTgeo(gs, temp)); + + public static int AcoversTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AcoversTgeoGeo(temp, gs)); + + public static int AcoversTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AcoversTgeoTgeo(temp1, temp2)); + + public static int AdisjointGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AdisjointGeoTgeo(gs, temp)); + + public static int AdisjointTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AdisjointTgeoGeo(temp, gs)); + + public static int AdisjointTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AdisjointTgeoTgeo(temp1, temp2)); + + public static int AdwithinGeoTgeo(IntPtr gs, IntPtr temp, double dist) + => SafeExecution(() => Native.AdwithinGeoTgeo(gs, temp, dist)); + + public static int AdwithinTgeoGeo(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.AdwithinTgeoGeo(temp, gs, dist)); + + public static int AdwithinTgeoTgeo(IntPtr temp1, IntPtr temp2, double dist) + => SafeExecution(() => Native.AdwithinTgeoTgeo(temp1, temp2, dist)); + + public static int AintersectsGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AintersectsGeoTgeo(gs, temp)); + + public static int AintersectsTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AintersectsTgeoGeo(temp, gs)); + + public static int AintersectsTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AintersectsTgeoTgeo(temp1, temp2)); + + public static int AtouchesGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AtouchesGeoTgeo(gs, temp)); + + public static int AtouchesTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AtouchesTgeoGeo(temp, gs)); + + public static int AtouchesTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AtouchesTgeoTgeo(temp1, temp2)); + + public static int AtouchesTpointGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AtouchesTpointGeo(temp, gs)); + + public static int AtouchesGeoTpoint(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AtouchesGeoTpoint(gs, temp)); + + public static int EcontainsGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EcontainsGeoTgeo(gs, temp)); + + public static int EcontainsTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EcontainsTgeoGeo(temp, gs)); + + public static int EcontainsTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EcontainsTgeoTgeo(temp1, temp2)); + + public static int EcoversGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EcoversGeoTgeo(gs, temp)); + + public static int EcoversTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EcoversTgeoGeo(temp, gs)); + + public static int EcoversTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EcoversTgeoTgeo(temp1, temp2)); + + public static int EdisjointGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EdisjointGeoTgeo(gs, temp)); + + public static int EdisjointTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EdisjointTgeoGeo(temp, gs)); + + public static int EdisjointTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EdisjointTgeoTgeo(temp1, temp2)); + + public static int EdwithinGeoTgeo(IntPtr gs, IntPtr temp, double dist) + => SafeExecution(() => Native.EdwithinGeoTgeo(gs, temp, dist)); + + public static int EdwithinTgeoGeo(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.EdwithinTgeoGeo(temp, gs, dist)); + + public static int EdwithinTgeoTgeo(IntPtr temp1, IntPtr temp2, double dist) + => SafeExecution(() => Native.EdwithinTgeoTgeo(temp1, temp2, dist)); + + public static int EintersectsGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EintersectsGeoTgeo(gs, temp)); + + public static int EintersectsTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EintersectsTgeoGeo(temp, gs)); + + public static int EintersectsTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EintersectsTgeoTgeo(temp1, temp2)); + + public static int EtouchesGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EtouchesGeoTgeo(gs, temp)); + + public static int EtouchesTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EtouchesTgeoGeo(temp, gs)); + + public static int EtouchesTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EtouchesTgeoTgeo(temp1, temp2)); + + public static int EtouchesTpointGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EtouchesTpointGeo(temp, gs)); + + public static int EtouchesGeoTpoint(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EtouchesGeoTpoint(gs, temp)); + + public static IntPtr TcontainsGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TcontainsGeoTgeo(gs, temp)); + + public static IntPtr TcontainsTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TcontainsTgeoGeo(temp, gs)); + + public static IntPtr TcontainsTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TcontainsTgeoTgeo(temp1, temp2)); + + public static IntPtr TcoversGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TcoversGeoTgeo(gs, temp)); + + public static IntPtr TcoversTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TcoversTgeoGeo(temp, gs)); + + public static IntPtr TcoversTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TcoversTgeoTgeo(temp1, temp2)); + + public static IntPtr TdisjointGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TdisjointGeoTgeo(gs, temp)); + + public static IntPtr TdisjointTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TdisjointTgeoGeo(temp, gs)); + + public static IntPtr TdisjointTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdisjointTgeoTgeo(temp1, temp2)); + + public static IntPtr TdwithinGeoTgeo(IntPtr gs, IntPtr temp, double dist) + => SafeExecution(() => Native.TdwithinGeoTgeo(gs, temp, dist)); + + public static IntPtr TdwithinTgeoGeo(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.TdwithinTgeoGeo(temp, gs, dist)); + + public static IntPtr TdwithinTgeoTgeo(IntPtr temp1, IntPtr temp2, double dist) + => SafeExecution(() => Native.TdwithinTgeoTgeo(temp1, temp2, dist)); + + public static IntPtr TintersectsGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TintersectsGeoTgeo(gs, temp)); + + public static IntPtr TintersectsTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TintersectsTgeoGeo(temp, gs)); + + public static IntPtr TintersectsTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TintersectsTgeoTgeo(temp1, temp2)); + + public static IntPtr TtouchesGeoTgeo(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TtouchesGeoTgeo(gs, temp)); + + public static IntPtr TtouchesTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TtouchesTgeoGeo(temp, gs)); + + public static IntPtr TtouchesTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TtouchesTgeoTgeo(temp1, temp2)); + + public static int[] EdwithinTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.EdwithinTgeoarrTgeoarr(arr1, count1, arr2, count2, dist, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int[] AdwithinTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.AdwithinTgeoarrTgeoarr(arr1, count1, arr2, count2, dist, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int[] EintersectsTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.EintersectsTgeoarrTgeoarr(arr1, count1, arr2, count2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int[] AintersectsTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.AintersectsTgeoarrTgeoarr(arr1, count1, arr2, count2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int[] EtouchesTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.EtouchesTgeoarrTgeoarr(arr1, count1, arr2, count2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int[] AtouchesTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.AtouchesTgeoarrTgeoarr(arr1, count1, arr2, count2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int[] EdisjointTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.EdisjointTgeoarrTgeoarr(arr1, count1, arr2, count2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int[] AdisjointTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.AdisjointTgeoarrTgeoarr(arr1, count1, arr2, count2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static (int[], IntPtr[]) TdwithinTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist) + { + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + IntPtr _out_periods = Marshal.AllocHGlobal(IntPtr.Size); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TdwithinTgeoarrTgeoarr(arr1, count1, arr2, count2, dist, _count_count, _out_periods)); + int _n = Marshal.ReadInt32(_count_count); + int[] _resultArr = new int[_n]; + Marshal.Copy(_resultPtr, _resultArr, 0, _n); + IntPtr __out_periods_arr = Marshal.ReadIntPtr(_out_periods); + IntPtr[] __out_periods_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_periods_out[_i] = Marshal.ReadIntPtr(__out_periods_arr, _i * IntPtr.Size); } + return (_resultArr, __out_periods_out); + } + finally + { + Marshal.FreeHGlobal(_count_count); + Marshal.FreeHGlobal(_out_periods); + } + } + + public static (int[], IntPtr[]) TintersectsTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + IntPtr _out_periods = Marshal.AllocHGlobal(IntPtr.Size); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TintersectsTgeoarrTgeoarr(arr1, count1, arr2, count2, _count_count, _out_periods)); + int _n = Marshal.ReadInt32(_count_count); + int[] _resultArr = new int[_n]; + Marshal.Copy(_resultPtr, _resultArr, 0, _n); + IntPtr __out_periods_arr = Marshal.ReadIntPtr(_out_periods); + IntPtr[] __out_periods_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_periods_out[_i] = Marshal.ReadIntPtr(__out_periods_arr, _i * IntPtr.Size); } + return (_resultArr, __out_periods_out); + } + finally + { + Marshal.FreeHGlobal(_count_count); + Marshal.FreeHGlobal(_out_periods); + } + } + + public static (int[], IntPtr[]) TtouchesTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + IntPtr _out_periods = Marshal.AllocHGlobal(IntPtr.Size); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TtouchesTgeoarrTgeoarr(arr1, count1, arr2, count2, _count_count, _out_periods)); + int _n = Marshal.ReadInt32(_count_count); + int[] _resultArr = new int[_n]; + Marshal.Copy(_resultPtr, _resultArr, 0, _n); + IntPtr __out_periods_arr = Marshal.ReadIntPtr(_out_periods); + IntPtr[] __out_periods_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_periods_out[_i] = Marshal.ReadIntPtr(__out_periods_arr, _i * IntPtr.Size); } + return (_resultArr, __out_periods_out); + } + finally + { + Marshal.FreeHGlobal(_count_count); + Marshal.FreeHGlobal(_out_periods); + } + } + + public static (int[], IntPtr[]) TdisjointTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + { + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + IntPtr _out_periods = Marshal.AllocHGlobal(IntPtr.Size); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TdisjointTgeoarrTgeoarr(arr1, count1, arr2, count2, _count_count, _out_periods)); + int _n = Marshal.ReadInt32(_count_count); + int[] _resultArr = new int[_n]; + Marshal.Copy(_resultPtr, _resultArr, 0, _n); + IntPtr __out_periods_arr = Marshal.ReadIntPtr(_out_periods); + IntPtr[] __out_periods_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_periods_out[_i] = Marshal.ReadIntPtr(__out_periods_arr, _i * IntPtr.Size); } + return (_resultArr, __out_periods_out); + } + finally + { + Marshal.FreeHGlobal(_count_count); + Marshal.FreeHGlobal(_out_periods); + } + } + + public static IntPtr TdistanceTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TdistanceTgeoGeo(temp, gs)); + + public static IntPtr TdistanceTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdistanceTgeoTgeo(temp1, temp2)); + + public static double NadStboxGeo(IntPtr box, IntPtr gs) + => SafeExecution(() => Native.NadStboxGeo(box, gs)); + + public static double NadStboxStbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.NadStboxStbox(box1, box2)); + + public static double StboxSpatialDistance(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxSpatialDistance(box1, box2)); + + public static double NadTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NadTgeoGeo(temp, gs)); + + public static double NadTgeoStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTgeoStbox(temp, box)); + + public static double NadTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTgeoTgeo(temp1, temp2)); + + public static IntPtr NaiTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NaiTgeoGeo(temp, gs)); + + public static IntPtr NaiTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NaiTgeoTgeo(temp1, temp2)); + + public static IntPtr ShortestlineTgeoGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.ShortestlineTgeoGeo(temp, gs)); + + public static IntPtr ShortestlineTgeoTgeo(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ShortestlineTgeoTgeo(temp1, temp2)); + + public static double MindistanceTgeoTgeo(IntPtr temp1, IntPtr temp2, double threshold) + => SafeExecution(() => Native.MindistanceTgeoTgeo(temp1, temp2, threshold)); + + public static double MindistanceTgeoarrTgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) + => SafeExecution(() => Native.MindistanceTgeoarrTgeoarr(arr1, count1, arr2, count2)); + + public static IntPtr TpointTcentroidFinalfn(IntPtr state) + => SafeExecution(() => Native.TpointTcentroidFinalfn(state)); + + public static IntPtr TpointTcentroidTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TpointTcentroidTransfn(state, temp)); + + public static IntPtr TspatialExtentTransfn(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.TspatialExtentTransfn(box, temp)); + + public static IntPtr StboxGetSpaceTile(IntPtr point, double xsize, double ysize, double zsize, IntPtr sorigin) + => SafeExecution(() => Native.StboxGetSpaceTile(point, xsize, ysize, zsize, sorigin)); + + public static IntPtr StboxGetSpaceTimeTile(IntPtr point, long t, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin) + => SafeExecution(() => Native.StboxGetSpaceTimeTile(point, t, xsize, ysize, zsize, duration, sorigin, torigin)); + + public static IntPtr StboxGetTimeTile(long t, IntPtr duration, long torigin) + => SafeExecution(() => Native.StboxGetTimeTile(t, duration, torigin)); + + public static IntPtr[] StboxSpaceTiles(IntPtr bounds, double xsize, double ysize, double zsize, IntPtr sorigin, bool border_inc) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.StboxSpaceTiles(bounds, xsize, ysize, zsize, sorigin, border_inc, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] StboxSpaceTimeTiles(IntPtr bounds, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool border_inc) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.StboxSpaceTimeTiles(bounds, xsize, ysize, zsize, duration, sorigin, torigin, border_inc, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] StboxTimeTiles(IntPtr bounds, IntPtr duration, long torigin, bool border_inc) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.StboxTimeTiles(bounds, duration, torigin, border_inc, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TgeoSpaceSplit(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, bool bitmatrix, bool border_inc) + => SafeExecution(() => Native.TgeoSpaceSplit(temp, xsize, ysize, zsize, sorigin, bitmatrix, border_inc)); + + public static IntPtr TgeoSpaceTimeSplit(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool bitmatrix, bool border_inc) + => SafeExecution(() => Native.TgeoSpaceTimeSplit(temp, xsize, ysize, zsize, duration, sorigin, torigin, bitmatrix, border_inc)); + + public static int[] GeoClusterKmeans(IntPtr geoms, uint ngeoms, uint k) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoClusterKmeans(geoms, ngeoms, k, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + int[] _out = new int[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] GeoClusterDbscan(IntPtr geoms, uint ngeoms, double tolerance, int minpoints) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoClusterDbscan(geoms, ngeoms, tolerance, minpoints, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] GeoClusterIntersecting(IntPtr geoms, uint ngeoms) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoClusterIntersecting(geoms, ngeoms, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] GeoClusterWithin(IntPtr geoms, uint ngeoms, double tolerance) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoClusterWithin(geoms, ngeoms, tolerance, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_h3.g.cs b/MEOS.NET/Functions/Meos.meos_h3.g.cs new file mode 100644 index 0000000..771ba81 --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_h3.g.cs @@ -0,0 +1,312 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_h3.h declares. + public static partial class Meos + { + public static ulong H3indexIn(string str) + => SafeExecution(() => Native.H3indexIn(str)); + + public static string H3indexOut(ulong cell) + => SafeExecution(() => Native.H3indexOut(cell)); + + public static bool H3IsValidCell(ulong cell) + => SafeExecution(() => Native.H3IsValidCell(cell)); + + public static bool H3IsValidDirectedEdge(ulong edge) + => SafeExecution(() => Native.H3IsValidDirectedEdge(edge)); + + public static bool H3IsValidVertex(ulong vertex) + => SafeExecution(() => Native.H3IsValidVertex(vertex)); + + public static bool H3indexEq(ulong a, ulong b) + => SafeExecution(() => Native.H3indexEq(a, b)); + + public static bool H3indexNe(ulong a, ulong b) + => SafeExecution(() => Native.H3indexNe(a, b)); + + public static bool H3indexLt(ulong a, ulong b) + => SafeExecution(() => Native.H3indexLt(a, b)); + + public static bool H3indexLe(ulong a, ulong b) + => SafeExecution(() => Native.H3indexLe(a, b)); + + public static bool H3indexGt(ulong a, ulong b) + => SafeExecution(() => Native.H3indexGt(a, b)); + + public static bool H3indexGe(ulong a, ulong b) + => SafeExecution(() => Native.H3indexGe(a, b)); + + public static int H3indexCmp(ulong a, ulong b) + => SafeExecution(() => Native.H3indexCmp(a, b)); + + public static uint H3indexHash(ulong cell) + => SafeExecution(() => Native.H3indexHash(cell)); + + public static IntPtr H3GridDisk(ulong origin, int k) + => SafeExecution(() => Native.H3GridDisk(origin, k)); + + public static IntPtr H3CellToChildren(ulong origin, int childRes) + => SafeExecution(() => Native.H3CellToChildren(origin, childRes)); + + public static IntPtr H3CompactCells(IntPtr cells) + => SafeExecution(() => Native.H3CompactCells(cells)); + + public static IntPtr H3UncompactCells(IntPtr cells, int res) + => SafeExecution(() => Native.H3UncompactCells(cells, res)); + + public static IntPtr H3GridRing(ulong origin, int k) + => SafeExecution(() => Native.H3GridRing(origin, k)); + + public static IntPtr H3GridPathCells(ulong start, ulong end) + => SafeExecution(() => Native.H3GridPathCells(start, end)); + + public static IntPtr H3OriginToDirectedEdges(ulong origin) + => SafeExecution(() => Native.H3OriginToDirectedEdges(origin)); + + public static IntPtr H3CellToVertexes(ulong cell) + => SafeExecution(() => Native.H3CellToVertexes(cell)); + + public static IntPtr H3GetIcosahedronFaces(ulong cell) + => SafeExecution(() => Native.H3GetIcosahedronFaces(cell)); + + public static ulong H3indexFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.H3indexFromWkb(wkb, size)); + + public static ulong H3indexFromHexwkb(string hexwkb) + => SafeExecution(() => Native.H3indexFromHexwkb(hexwkb)); + + public static IntPtr H3indexAsWkb(ulong cell, byte variant, IntPtr size_out) + => SafeExecution(() => Native.H3indexAsWkb(cell, variant, size_out)); + + public static string H3indexAsHexwkb(ulong cell, byte variant, IntPtr size_out) + => SafeExecution(() => Native.H3indexAsHexwkb(cell, variant, size_out)); + + public static uint H3indexGetResolution(ulong cell) + => SafeExecution(() => Native.H3indexGetResolution(cell)); + + public static ulong H3indexCellToParent(ulong cell, uint parent_resolution) + => SafeExecution(() => Native.H3indexCellToParent(cell, parent_resolution)); + + public static IntPtr H3indexCellToPoint(ulong cell) + => SafeExecution(() => Native.H3indexCellToPoint(cell)); + + public static IntPtr H3indexCellToBoundary(ulong cell) + => SafeExecution(() => Native.H3indexCellToBoundary(cell)); + + public static double H3indexCellArea(ulong cell) + => SafeExecution(() => Native.H3indexCellArea(cell)); + + public static IntPtr Th3indexIn(string str) + => SafeExecution(() => Native.Th3indexIn(str)); + + public static IntPtr Th3indexinstIn(string str) + => SafeExecution(() => Native.Th3indexinstIn(str)); + + public static IntPtr Th3indexseqIn(string str, int interp) + => SafeExecution(() => Native.Th3indexseqIn(str, interp)); + + public static IntPtr Th3indexseqsetIn(string str) + => SafeExecution(() => Native.Th3indexseqsetIn(str)); + + public static IntPtr Th3indexMake(ulong value, long t) + => SafeExecution(() => Native.Th3indexMake(value, t)); + + public static IntPtr Th3indexinstMake(ulong value, long t) + => SafeExecution(() => Native.Th3indexinstMake(value, t)); + + public static IntPtr Th3indexseqMake(IntPtr values, IntPtr times, int count, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.Th3indexseqMake(values, times, count, lower_inc, upper_inc)); + + public static IntPtr Th3indexseqsetMake(IntPtr sequences, int count) + => SafeExecution(() => Native.Th3indexseqsetMake(sequences, count)); + + public static ulong Th3indexStartValue(IntPtr temp) + => SafeExecution(() => Native.Th3indexStartValue(temp)); + + public static ulong Th3indexEndValue(IntPtr temp) + => SafeExecution(() => Native.Th3indexEndValue(temp)); + + public static bool Th3indexValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.Th3indexValueN(temp, n, result)); + + public static IntPtr[] Th3indexValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.Th3indexValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool Th3indexValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr result) + => SafeExecution(() => Native.Th3indexValueAtTimestamptz(temp, t, strict, result)); + + public static IntPtr TbigintToTh3index(IntPtr temp) + => SafeExecution(() => Native.TbigintToTh3index(temp)); + + public static IntPtr Th3indexToTbigint(IntPtr temp) + => SafeExecution(() => Native.Th3indexToTbigint(temp)); + + public static int EverEqH3indexTh3index(ulong cell, IntPtr temp) + => SafeExecution(() => Native.EverEqH3indexTh3index(cell, temp)); + + public static int EverEqTh3indexH3index(IntPtr temp, ulong cell) + => SafeExecution(() => Native.EverEqTh3indexH3index(temp, cell)); + + public static int EverNeH3indexTh3index(ulong cell, IntPtr temp) + => SafeExecution(() => Native.EverNeH3indexTh3index(cell, temp)); + + public static int EverNeTh3indexH3index(IntPtr temp, ulong cell) + => SafeExecution(() => Native.EverNeTh3indexH3index(temp, cell)); + + public static int AlwaysEqH3indexTh3index(ulong cell, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqH3indexTh3index(cell, temp)); + + public static int AlwaysEqTh3indexH3index(IntPtr temp, ulong cell) + => SafeExecution(() => Native.AlwaysEqTh3indexH3index(temp, cell)); + + public static int AlwaysNeH3indexTh3index(ulong cell, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeH3indexTh3index(cell, temp)); + + public static int AlwaysNeTh3indexH3index(IntPtr temp, ulong cell) + => SafeExecution(() => Native.AlwaysNeTh3indexH3index(temp, cell)); + + public static int EverEqTh3indexTh3index(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTh3indexTh3index(temp1, temp2)); + + public static int EverNeTh3indexTh3index(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTh3indexTh3index(temp1, temp2)); + + public static int AlwaysEqTh3indexTh3index(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTh3indexTh3index(temp1, temp2)); + + public static int AlwaysNeTh3indexTh3index(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTh3indexTh3index(temp1, temp2)); + + public static IntPtr TeqH3indexTh3index(ulong cell, IntPtr temp) + => SafeExecution(() => Native.TeqH3indexTh3index(cell, temp)); + + public static IntPtr TeqTh3indexH3index(IntPtr temp, ulong cell) + => SafeExecution(() => Native.TeqTh3indexH3index(temp, cell)); + + public static IntPtr TeqTh3indexTh3index(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TeqTh3indexTh3index(temp1, temp2)); + + public static IntPtr TneH3indexTh3index(ulong cell, IntPtr temp) + => SafeExecution(() => Native.TneH3indexTh3index(cell, temp)); + + public static IntPtr TneTh3indexH3index(IntPtr temp, ulong cell) + => SafeExecution(() => Native.TneTh3indexH3index(temp, cell)); + + public static IntPtr TneTh3indexTh3index(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TneTh3indexTh3index(temp1, temp2)); + + public static IntPtr Th3indexGetBaseCellNumber(IntPtr temp) + => SafeExecution(() => Native.Th3indexGetBaseCellNumber(temp)); + + public static IntPtr Th3indexIsResClassIii(IntPtr temp) + => SafeExecution(() => Native.Th3indexIsResClassIii(temp)); + + public static IntPtr Th3indexIsPentagon(IntPtr temp) + => SafeExecution(() => Native.Th3indexIsPentagon(temp)); + + public static IntPtr Th3indexCellToParentNext(IntPtr temp) + => SafeExecution(() => Native.Th3indexCellToParentNext(temp)); + + public static IntPtr Th3indexCellToCenterChild(IntPtr temp, int resolution) + => SafeExecution(() => Native.Th3indexCellToCenterChild(temp, resolution)); + + public static IntPtr Th3indexCellToCenterChildNext(IntPtr temp) + => SafeExecution(() => Native.Th3indexCellToCenterChildNext(temp)); + + public static IntPtr Th3indexCellToChildPos(IntPtr temp, int parent_res) + => SafeExecution(() => Native.Th3indexCellToChildPos(temp, parent_res)); + + public static IntPtr Th3indexChildPosToCell(IntPtr child_pos, IntPtr parent, int child_res) + => SafeExecution(() => Native.Th3indexChildPosToCell(child_pos, parent, child_res)); + + public static IntPtr TgeogpointToTh3index(IntPtr temp, int resolution) + => SafeExecution(() => Native.TgeogpointToTh3index(temp, resolution)); + + public static IntPtr TgeompointToTh3index(IntPtr temp, int resolution) + => SafeExecution(() => Native.TgeompointToTh3index(temp, resolution)); + + public static IntPtr Th3indexToTgeogpoint(IntPtr temp) + => SafeExecution(() => Native.Th3indexToTgeogpoint(temp)); + + public static IntPtr Th3indexToTgeompoint(IntPtr temp) + => SafeExecution(() => Native.Th3indexToTgeompoint(temp)); + + public static IntPtr H3indexToSet(ulong cell) + => SafeExecution(() => Native.H3indexToSet(cell)); + + public static ulong GeoToH3indexCell(IntPtr point, int resolution) + => SafeExecution(() => Native.GeoToH3indexCell(point, resolution)); + + public static IntPtr GeoToH3indexSet(IntPtr gs, int resolution) + => SafeExecution(() => Native.GeoToH3indexSet(gs, resolution)); + + public static IntPtr H3indexToStbox(ulong cell) + => SafeExecution(() => Native.H3indexToStbox(cell)); + + public static IntPtr H3indexTimestamptzToStbox(ulong cell, long t) + => SafeExecution(() => Native.H3indexTimestamptzToStbox(cell, t)); + + public static IntPtr H3indexTstzspanToStbox(ulong cell, IntPtr s) + => SafeExecution(() => Native.H3indexTstzspanToStbox(cell, s)); + + public static int EverEqH3indexsetTh3index(IntPtr cells, IntPtr th3idx) + => SafeExecution(() => Native.EverEqH3indexsetTh3index(cells, th3idx)); + + public static IntPtr Th3indexAreNeighborCells(IntPtr origin, IntPtr dest) + => SafeExecution(() => Native.Th3indexAreNeighborCells(origin, dest)); + + public static IntPtr Th3indexCellsToDirectedEdge(IntPtr origin, IntPtr dest) + => SafeExecution(() => Native.Th3indexCellsToDirectedEdge(origin, dest)); + + public static IntPtr Th3indexIsValidDirectedEdge(IntPtr edge) + => SafeExecution(() => Native.Th3indexIsValidDirectedEdge(edge)); + + public static IntPtr Th3indexGetDirectedEdgeOrigin(IntPtr edge) + => SafeExecution(() => Native.Th3indexGetDirectedEdgeOrigin(edge)); + + public static IntPtr Th3indexGetDirectedEdgeDestination(IntPtr edge) + => SafeExecution(() => Native.Th3indexGetDirectedEdgeDestination(edge)); + + public static IntPtr Th3indexDirectedEdgeToBoundary(IntPtr edge) + => SafeExecution(() => Native.Th3indexDirectedEdgeToBoundary(edge)); + + public static IntPtr Th3indexCellToVertex(IntPtr temp, int vertex_num) + => SafeExecution(() => Native.Th3indexCellToVertex(temp, vertex_num)); + + public static IntPtr Th3indexVertexToLatlng(IntPtr temp) + => SafeExecution(() => Native.Th3indexVertexToLatlng(temp)); + + public static IntPtr Th3indexIsValidVertex(IntPtr temp) + => SafeExecution(() => Native.Th3indexIsValidVertex(temp)); + + public static IntPtr Th3indexGridDistance(IntPtr origin, IntPtr dest) + => SafeExecution(() => Native.Th3indexGridDistance(origin, dest)); + + public static IntPtr Th3indexCellToLocalIj(IntPtr origin, IntPtr cell) + => SafeExecution(() => Native.Th3indexCellToLocalIj(origin, cell)); + + public static IntPtr Th3indexLocalIjToCell(IntPtr origin, IntPtr coord) + => SafeExecution(() => Native.Th3indexLocalIjToCell(origin, coord)); + + public static IntPtr Th3indexEdgeLength(IntPtr temp) + => SafeExecution(() => Native.Th3indexEdgeLength(temp)); + + public static IntPtr TgeogpointGreatCircleDistance(IntPtr a, IntPtr b) + => SafeExecution(() => Native.TgeogpointGreatCircleDistance(a, b)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_internal.g.cs b/MEOS.NET/Functions/Meos.meos_internal.g.cs new file mode 100644 index 0000000..2445801 --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_internal.g.cs @@ -0,0 +1,1797 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_internal.h declares. + public static partial class Meos + { + public static IntPtr PrngGetGenerationRng() + => SafeExecution(() => Native.PrngGetGenerationRng()); + + public static IntPtr PrngGetAggregationRng() + => SafeExecution(() => Native.PrngGetAggregationRng()); + + public static double MeosRandomDouble(IntPtr rng) + => SafeExecution(() => Native.MeosRandomDouble(rng)); + + public static double MeosRandomExponential(IntPtr rng, double mean) + => SafeExecution(() => Native.MeosRandomExponential(rng, mean)); + + public static uint MeosRandomBinomial20Half(IntPtr rng) + => SafeExecution(() => Native.MeosRandomBinomial20Half(rng)); + + public static bool BasetypeIn(string str, int type, bool end, IntPtr result) + => SafeExecution(() => Native.BasetypeIn(str, type, end, result)); + + public static long DatumCeil(long d) + => SafeExecution(() => Native.DatumCeil(d)); + + public static long DatumDegrees(long d, long normalize) + => SafeExecution(() => Native.DatumDegrees(d, normalize)); + + public static long DatumFloatRound(long value, long size) + => SafeExecution(() => Native.DatumFloatRound(value, size)); + + public static long DatumFloor(long d) + => SafeExecution(() => Native.DatumFloor(d)); + + public static uint DatumHash(long d, int basetype) + => SafeExecution(() => Native.DatumHash(d, basetype)); + + public static ulong DatumHashExtended(long d, int basetype, ulong seed) + => SafeExecution(() => Native.DatumHashExtended(d, basetype, seed)); + + public static long DatumRadians(long d) + => SafeExecution(() => Native.DatumRadians(d)); + + public static void FloatspanRoundSet(IntPtr s, int maxdd, IntPtr result) + => SafeExecution(() => Native.FloatspanRoundSet(s, maxdd, result)); + + public static IntPtr SetIn(string str, int basetype) + => SafeExecution(() => Native.SetIn(str, basetype)); + + public static string SetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.SetOut(s, maxdd)); + + public static IntPtr SpanIn(string str, int spantype) + => SafeExecution(() => Native.SpanIn(str, spantype)); + + public static string SpanOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.SpanOut(s, maxdd)); + + public static IntPtr SpansetIn(string str, int spantype) + => SafeExecution(() => Native.SpansetIn(str, spantype)); + + public static string SpansetOut(IntPtr ss, int maxdd) + => SafeExecution(() => Native.SpansetOut(ss, maxdd)); + + public static IntPtr SetMake(IntPtr values, int count, int basetype, bool order) + => SafeExecution(() => Native.SetMake(values, count, basetype, order)); + + public static IntPtr SetMakeExp(IntPtr values, int count, int maxcount, int basetype, bool order) + => SafeExecution(() => Native.SetMakeExp(values, count, maxcount, basetype, order)); + + public static IntPtr SetMakeFree(IntPtr values, int count, int basetype, bool order) + => SafeExecution(() => Native.SetMakeFree(values, count, basetype, order)); + + public static IntPtr SpanMake(long lower, long upper, bool lower_inc, bool upper_inc, int basetype) + => SafeExecution(() => Native.SpanMake(lower, upper, lower_inc, upper_inc, basetype)); + + public static void SpanSet(long lower, long upper, bool lower_inc, bool upper_inc, int basetype, int spantype, IntPtr s) + => SafeExecution(() => Native.SpanSet(lower, upper, lower_inc, upper_inc, basetype, spantype, s)); + + public static IntPtr SpansetMakeExp(IntPtr spans, int count, int maxcount, bool normalize, bool order) + => SafeExecution(() => Native.SpansetMakeExp(spans, count, maxcount, normalize, order)); + + public static IntPtr SpansetMakeFree(IntPtr spans, int count, bool normalize, bool order) + => SafeExecution(() => Native.SpansetMakeFree(spans, count, normalize, order)); + + public static IntPtr SetSpan(IntPtr s) + => SafeExecution(() => Native.SetSpan(s)); + + public static IntPtr SetSpanset(IntPtr s) + => SafeExecution(() => Native.SetSpanset(s)); + + public static void ValueSetSpan(long value, int basetype, IntPtr s) + => SafeExecution(() => Native.ValueSetSpan(value, basetype, s)); + + public static IntPtr ValueSet(long d, int basetype) + => SafeExecution(() => Native.ValueSet(d, basetype)); + + public static IntPtr ValueSpan(long d, int basetype) + => SafeExecution(() => Native.ValueSpan(d, basetype)); + + public static IntPtr ValueSpanset(long d, int basetype) + => SafeExecution(() => Native.ValueSpanset(d, basetype)); + + public static long NumspanWidth(IntPtr s) + => SafeExecution(() => Native.NumspanWidth(s)); + + public static long NumspansetWidth(IntPtr ss, bool boundspan) + => SafeExecution(() => Native.NumspansetWidth(ss, boundspan)); + + public static long SetEndValue(IntPtr s) + => SafeExecution(() => Native.SetEndValue(s)); + + public static int SetMemSize(IntPtr s) + => SafeExecution(() => Native.SetMemSize(s)); + + public static void SetSetSubspan(IntPtr s, int minidx, int maxidx, IntPtr result) + => SafeExecution(() => Native.SetSetSubspan(s, minidx, maxidx, result)); + + public static void SetSetSpan(IntPtr s, IntPtr result) + => SafeExecution(() => Native.SetSetSpan(s, result)); + + public static long SetStartValue(IntPtr s) + => SafeExecution(() => Native.SetStartValue(s)); + + public static bool SetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.SetValueN(s, n, result)); + + public static IntPtr SetVals(IntPtr s) + => SafeExecution(() => Native.SetVals(s)); + + public static long[] SetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static long SpansetLower(IntPtr ss) + => SafeExecution(() => Native.SpansetLower(ss)); + + public static int SpansetMemSize(IntPtr ss) + => SafeExecution(() => Native.SpansetMemSize(ss)); + + public static IntPtr[] SpansetSps(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SpansetSps(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static long SpansetUpper(IntPtr ss) + => SafeExecution(() => Native.SpansetUpper(ss)); + + public static void DatespanSetTstzspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DatespanSetTstzspan(s1, s2)); + + public static void BigintspanSetFloatspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.BigintspanSetFloatspan(s1, s2)); + + public static void BigintspanSetIntspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.BigintspanSetIntspan(s1, s2)); + + public static void FloatspanSetBigintspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.FloatspanSetBigintspan(s1, s2)); + + public static void FloatspanSetIntspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.FloatspanSetIntspan(s1, s2)); + + public static void IntspanSetBigintspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.IntspanSetBigintspan(s1, s2)); + + public static void IntspanSetFloatspan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.IntspanSetFloatspan(s1, s2)); + + public static IntPtr NumsetShiftScale(IntPtr s, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.NumsetShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr NumspanExpand(IntPtr s, long value) + => SafeExecution(() => Native.NumspanExpand(s, value)); + + public static IntPtr NumspanShiftScale(IntPtr s, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.NumspanShiftScale(s, shift, width, hasshift, haswidth)); + + public static IntPtr NumspansetShiftScale(IntPtr ss, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.NumspansetShiftScale(ss, shift, width, hasshift, haswidth)); + + public static IntPtr SetCompact(IntPtr s) + => SafeExecution(() => Native.SetCompact(s)); + + public static void SpanExpand(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanExpand(s1, s2)); + + public static IntPtr SuperUnionSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SuperUnionSpanSpan(s1, s2)); + + public static IntPtr SpansetCompact(IntPtr ss) + => SafeExecution(() => Native.SpansetCompact(ss)); + + public static IntPtr TboxExpandValue(IntPtr box, long value, int basetyp) + => SafeExecution(() => Native.TboxExpandValue(box, value, basetyp)); + + public static IntPtr TextcatTextsetTextCommon(IntPtr s, IntPtr txt, bool invert) + => SafeExecution(() => Native.TextcatTextsetTextCommon(s, txt, invert)); + + public static void TstzspanSetDatespan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.TstzspanSetDatespan(s1, s2)); + + public static bool AdjacentSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.AdjacentSpanValue(s, value)); + + public static bool AdjacentSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.AdjacentSpansetValue(ss, value)); + + public static bool AdjacentValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.AdjacentValueSpanset(value, ss)); + + public static bool ContainedValueSet(long value, IntPtr s) + => SafeExecution(() => Native.ContainedValueSet(value, s)); + + public static bool ContainedValueSpan(long value, IntPtr s) + => SafeExecution(() => Native.ContainedValueSpan(value, s)); + + public static bool ContainedValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.ContainedValueSpanset(value, ss)); + + public static bool ContainsSetValue(IntPtr s, long value) + => SafeExecution(() => Native.ContainsSetValue(s, value)); + + public static bool ContainsSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.ContainsSpanValue(s, value)); + + public static bool ContainsSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.ContainsSpansetValue(ss, value)); + + public static bool OvadjSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.OvadjSpanSpan(s1, s2)); + + public static bool LeftSetValue(IntPtr s, long value) + => SafeExecution(() => Native.LeftSetValue(s, value)); + + public static bool LeftSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.LeftSpanValue(s, value)); + + public static bool LeftSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.LeftSpansetValue(ss, value)); + + public static bool LeftValueSet(long value, IntPtr s) + => SafeExecution(() => Native.LeftValueSet(value, s)); + + public static bool LeftValueSpan(long value, IntPtr s) + => SafeExecution(() => Native.LeftValueSpan(value, s)); + + public static bool LeftValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.LeftValueSpanset(value, ss)); + + public static bool LfnadjSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.LfnadjSpanSpan(s1, s2)); + + public static bool OverleftSetValue(IntPtr s, long value) + => SafeExecution(() => Native.OverleftSetValue(s, value)); + + public static bool OverleftSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.OverleftSpanValue(s, value)); + + public static bool OverleftSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.OverleftSpansetValue(ss, value)); + + public static bool OverleftValueSet(long value, IntPtr s) + => SafeExecution(() => Native.OverleftValueSet(value, s)); + + public static bool OverleftValueSpan(long value, IntPtr s) + => SafeExecution(() => Native.OverleftValueSpan(value, s)); + + public static bool OverleftValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.OverleftValueSpanset(value, ss)); + + public static bool OverrightSetValue(IntPtr s, long value) + => SafeExecution(() => Native.OverrightSetValue(s, value)); + + public static bool OverrightSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.OverrightSpanValue(s, value)); + + public static bool OverrightSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.OverrightSpansetValue(ss, value)); + + public static bool OverrightValueSet(long value, IntPtr s) + => SafeExecution(() => Native.OverrightValueSet(value, s)); + + public static bool OverrightValueSpan(long value, IntPtr s) + => SafeExecution(() => Native.OverrightValueSpan(value, s)); + + public static bool OverrightValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.OverrightValueSpanset(value, ss)); + + public static bool RightValueSet(long value, IntPtr s) + => SafeExecution(() => Native.RightValueSet(value, s)); + + public static bool RightSetValue(IntPtr s, long value) + => SafeExecution(() => Native.RightSetValue(s, value)); + + public static bool RightValueSpan(long value, IntPtr s) + => SafeExecution(() => Native.RightValueSpan(value, s)); + + public static bool RightValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.RightValueSpanset(value, ss)); + + public static bool RightSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.RightSpanValue(s, value)); + + public static bool RightSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.RightSpansetValue(ss, value)); + + public static bool BboxType(int bboxtype) + => SafeExecution(() => Native.BboxType(bboxtype)); + + public static ulong BboxGetSize(int bboxtype) + => SafeExecution(() => Native.BboxGetSize(bboxtype)); + + public static int BboxMaxDims(int bboxtype) + => SafeExecution(() => Native.BboxMaxDims(bboxtype)); + + public static bool TemporalBboxEq(IntPtr box1, IntPtr box2, int temptype) + => SafeExecution(() => Native.TemporalBboxEq(box1, box2, temptype)); + + public static int TemporalBboxCmp(IntPtr box1, IntPtr box2, int temptype) + => SafeExecution(() => Native.TemporalBboxCmp(box1, box2, temptype)); + + public static bool EnsureBboxTemporalCompatible(int bboxtype, IntPtr temp) + => SafeExecution(() => Native.EnsureBboxTemporalCompatible(bboxtype, temp)); + + public static bool EnsureSameIndexBboxtype(int bboxtype1, int bboxtype2) + => SafeExecution(() => Native.EnsureSameIndexBboxtype(bboxtype1, bboxtype2)); + + public static bool EnsureIndexJoinOp(int op) + => SafeExecution(() => Native.EnsureIndexJoinOp(op)); + + public static IntPtr[] BboxTemporalSplitBoxes(int bboxtype, ulong boxsize, IntPtr temp, int maxboxes) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.BboxTemporalSplitBoxes(bboxtype, boxsize, temp, maxboxes, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool SpanContains(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanContains(s1, s2)); + + public static bool SpanContained(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanContained(s1, s2)); + + public static bool SpanOverlaps(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanOverlaps(s1, s2)); + + public static bool SpanSame(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanSame(s1, s2)); + + public static bool SpanAdjacent(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanAdjacent(s1, s2)); + + public static bool SpanLeft(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanLeft(s1, s2)); + + public static bool SpanRight(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanRight(s1, s2)); + + public static bool SpanOverleft(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanOverleft(s1, s2)); + + public static bool SpanOverright(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.SpanOverright(s1, s2)); + + public static void BboxUnionSpanSpan(IntPtr s1, IntPtr s2, IntPtr result) + => SafeExecution(() => Native.BboxUnionSpanSpan(s1, s2, result)); + + public static bool InterSpanSpan(IntPtr s1, IntPtr s2, IntPtr result) + => SafeExecution(() => Native.InterSpanSpan(s1, s2, result)); + + public static IntPtr IntersectionSetValue(IntPtr s, long value) + => SafeExecution(() => Native.IntersectionSetValue(s, value)); + + public static IntPtr IntersectionSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.IntersectionSpanValue(s, value)); + + public static IntPtr IntersectionSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.IntersectionSpansetValue(ss, value)); + + public static IntPtr IntersectionValueSet(long value, IntPtr s) + => SafeExecution(() => Native.IntersectionValueSet(value, s)); + + public static IntPtr IntersectionValueSpan(long value, IntPtr s) + => SafeExecution(() => Native.IntersectionValueSpan(value, s)); + + public static IntPtr IntersectionValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.IntersectionValueSpanset(value, ss)); + + public static int MiSpanSpan(IntPtr s1, IntPtr s2, IntPtr result) + => SafeExecution(() => Native.MiSpanSpan(s1, s2, result)); + + public static IntPtr MinusSetValue(IntPtr s, long value) + => SafeExecution(() => Native.MinusSetValue(s, value)); + + public static IntPtr MinusSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.MinusSpanValue(s, value)); + + public static IntPtr MinusSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.MinusSpansetValue(ss, value)); + + public static IntPtr MinusValueSet(long value, IntPtr s) + => SafeExecution(() => Native.MinusValueSet(value, s)); + + public static IntPtr MinusValueSpan(long value, IntPtr s) + => SafeExecution(() => Native.MinusValueSpan(value, s)); + + public static IntPtr MinusValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.MinusValueSpanset(value, ss)); + + public static IntPtr UnionSetValue(IntPtr s, long value) + => SafeExecution(() => Native.UnionSetValue(s, value)); + + public static IntPtr UnionSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.UnionSpanValue(s, value)); + + public static IntPtr UnionSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.UnionSpansetValue(ss, value)); + + public static IntPtr UnionValueSet(long value, IntPtr s) + => SafeExecution(() => Native.UnionValueSet(value, s)); + + public static IntPtr UnionValueSpan(long value, IntPtr s) + => SafeExecution(() => Native.UnionValueSpan(value, s)); + + public static IntPtr UnionValueSpanset(long value, IntPtr ss) + => SafeExecution(() => Native.UnionValueSpanset(value, ss)); + + public static long DistanceSetSet(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceSetSet(s1, s2)); + + public static long DistanceSetValue(IntPtr s, long value) + => SafeExecution(() => Native.DistanceSetValue(s, value)); + + public static long DistanceSpanSpan(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceSpanSpan(s1, s2)); + + public static long DistanceSpanValue(IntPtr s, long value) + => SafeExecution(() => Native.DistanceSpanValue(s, value)); + + public static long DistanceSpansetSpan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.DistanceSpansetSpan(ss, s)); + + public static long DistanceSpansetSpanset(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.DistanceSpansetSpanset(ss1, ss2)); + + public static long DistanceSpansetValue(IntPtr ss, long value) + => SafeExecution(() => Native.DistanceSpansetValue(ss, value)); + + public static long DistanceValueValue(long l, long r, int basetype) + => SafeExecution(() => Native.DistanceValueValue(l, r, basetype)); + + public static IntPtr SpanbaseExtentTransfn(IntPtr state, long value, int basetype) + => SafeExecution(() => Native.SpanbaseExtentTransfn(state, value, basetype)); + + public static IntPtr ValueUnionTransfn(IntPtr state, long value, int basetype) + => SafeExecution(() => Native.ValueUnionTransfn(state, value, basetype)); + + public static IntPtr NumberTstzspanToTbox(long d, int basetype, IntPtr s) + => SafeExecution(() => Native.NumberTstzspanToTbox(d, basetype, s)); + + public static IntPtr NumberTimestamptzToTbox(long d, int basetype, long t) + => SafeExecution(() => Native.NumberTimestamptzToTbox(d, basetype, t)); + + public static void TboxSet(IntPtr s, IntPtr p, IntPtr box) + => SafeExecution(() => Native.TboxSet(s, p, box)); + + public static void FloatSetTbox(double d, IntPtr box) + => SafeExecution(() => Native.FloatSetTbox(d, box)); + + public static void IntSetTbox(int i, IntPtr box) + => SafeExecution(() => Native.IntSetTbox(i, box)); + + public static void NumberSetTbox(long d, int basetype, IntPtr box) + => SafeExecution(() => Native.NumberSetTbox(d, basetype, box)); + + public static IntPtr NumberTbox(long value, int basetype) + => SafeExecution(() => Native.NumberTbox(value, basetype)); + + public static void NumsetSetTbox(IntPtr s, IntPtr box) + => SafeExecution(() => Native.NumsetSetTbox(s, box)); + + public static void NumspanSetTbox(IntPtr span, IntPtr box) + => SafeExecution(() => Native.NumspanSetTbox(span, box)); + + public static void TimestamptzSetTbox(long t, IntPtr box) + => SafeExecution(() => Native.TimestamptzSetTbox(t, box)); + + public static void TstzsetSetTbox(IntPtr s, IntPtr box) + => SafeExecution(() => Native.TstzsetSetTbox(s, box)); + + public static void TstzspanSetTbox(IntPtr s, IntPtr box) + => SafeExecution(() => Native.TstzspanSetTbox(s, box)); + + public static IntPtr TboxShiftScaleValue(IntPtr box, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.TboxShiftScaleValue(box, shift, width, hasshift, haswidth)); + + public static void TboxExpand(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxExpand(box1, box2)); + + public static bool TboxContains(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxContains(box1, box2)); + + public static bool TboxContained(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxContained(box1, box2)); + + public static bool TboxOverlaps(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxOverlaps(box1, box2)); + + public static bool TboxSame(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxSame(box1, box2)); + + public static bool TboxAdjacent(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxAdjacent(box1, box2)); + + public static bool TboxLeft(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxLeft(box1, box2)); + + public static bool TboxRight(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxRight(box1, box2)); + + public static bool TboxOverleft(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxOverleft(box1, box2)); + + public static bool TboxOverright(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxOverright(box1, box2)); + + public static bool TboxBefore(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxBefore(box1, box2)); + + public static bool TboxAfter(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxAfter(box1, box2)); + + public static bool TboxOverbefore(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxOverbefore(box1, box2)); + + public static bool TboxOverafter(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TboxOverafter(box1, box2)); + + public static bool InterTboxTbox(IntPtr box1, IntPtr box2, IntPtr result) + => SafeExecution(() => Native.InterTboxTbox(box1, box2, result)); + + public static IntPtr TboolinstFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TboolinstFromMfjson(mfjson)); + + public static IntPtr TboolinstIn(string str) + => SafeExecution(() => Native.TboolinstIn(str)); + + public static IntPtr TboolseqFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TboolseqFromMfjson(mfjson)); + + public static IntPtr TboolseqIn(string str, int interp) + => SafeExecution(() => Native.TboolseqIn(str, interp)); + + public static IntPtr TboolseqsetFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TboolseqsetFromMfjson(mfjson)); + + public static IntPtr TboolseqsetIn(string str) + => SafeExecution(() => Native.TboolseqsetIn(str)); + + public static IntPtr TemporalIn(string str, int temptype) + => SafeExecution(() => Native.TemporalIn(str, temptype)); + + public static string TemporalOut(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TemporalOut(temp, maxdd)); + + public static IntPtr TemparrOut(IntPtr temparr, int count, int maxdd) + => SafeExecution(() => Native.TemparrOut(temparr, count, maxdd)); + + public static IntPtr TfloatinstFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TfloatinstFromMfjson(mfjson)); + + public static IntPtr TfloatinstIn(string str) + => SafeExecution(() => Native.TfloatinstIn(str)); + + public static IntPtr TfloatseqFromMfjson(IntPtr mfjson, int interp) + => SafeExecution(() => Native.TfloatseqFromMfjson(mfjson, interp)); + + public static IntPtr TfloatseqIn(string str, int interp) + => SafeExecution(() => Native.TfloatseqIn(str, interp)); + + public static IntPtr TfloatseqsetFromMfjson(IntPtr mfjson, int interp) + => SafeExecution(() => Native.TfloatseqsetFromMfjson(mfjson, interp)); + + public static IntPtr TfloatseqsetIn(string str) + => SafeExecution(() => Native.TfloatseqsetIn(str)); + + public static IntPtr TinstantFromMfjson(IntPtr mfjson, bool spatial, int srid, int temptype) + => SafeExecution(() => Native.TinstantFromMfjson(mfjson, spatial, srid, temptype)); + + public static IntPtr TinstantIn(string str, int temptype) + => SafeExecution(() => Native.TinstantIn(str, temptype)); + + public static string TinstantOut(IntPtr inst, int maxdd) + => SafeExecution(() => Native.TinstantOut(inst, maxdd)); + + public static IntPtr TbigintinstFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TbigintinstFromMfjson(mfjson)); + + public static IntPtr TbigintinstIn(string str) + => SafeExecution(() => Native.TbigintinstIn(str)); + + public static IntPtr TbigintseqFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TbigintseqFromMfjson(mfjson)); + + public static IntPtr TbigintseqsetFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TbigintseqsetFromMfjson(mfjson)); + + public static IntPtr TbigintseqsetIn(string str) + => SafeExecution(() => Native.TbigintseqsetIn(str)); + + public static IntPtr TintinstFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TintinstFromMfjson(mfjson)); + + public static IntPtr TintinstIn(string str) + => SafeExecution(() => Native.TintinstIn(str)); + + public static IntPtr TintseqFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TintseqFromMfjson(mfjson)); + + public static IntPtr TintseqIn(string str, int interp) + => SafeExecution(() => Native.TintseqIn(str, interp)); + + public static IntPtr TintseqsetFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TintseqsetFromMfjson(mfjson)); + + public static IntPtr TintseqsetIn(string str) + => SafeExecution(() => Native.TintseqsetIn(str)); + + public static IntPtr TsequenceFromMfjson(IntPtr mfjson, bool spatial, int srid, int temptype, int interp) + => SafeExecution(() => Native.TsequenceFromMfjson(mfjson, spatial, srid, temptype, interp)); + + public static IntPtr TsequenceIn(string str, int temptype, int interp) + => SafeExecution(() => Native.TsequenceIn(str, temptype, interp)); + + public static string TsequenceOut(IntPtr seq, int maxdd) + => SafeExecution(() => Native.TsequenceOut(seq, maxdd)); + + public static IntPtr TsequencesetFromMfjson(IntPtr mfjson, bool spatial, int srid, int temptype, int interp) + => SafeExecution(() => Native.TsequencesetFromMfjson(mfjson, spatial, srid, temptype, interp)); + + public static IntPtr TsequencesetIn(string str, int temptype, int interp) + => SafeExecution(() => Native.TsequencesetIn(str, temptype, interp)); + + public static string TsequencesetOut(IntPtr ss, int maxdd) + => SafeExecution(() => Native.TsequencesetOut(ss, maxdd)); + + public static IntPtr TtextinstFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TtextinstFromMfjson(mfjson)); + + public static IntPtr TtextinstIn(string str) + => SafeExecution(() => Native.TtextinstIn(str)); + + public static IntPtr TtextseqFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TtextseqFromMfjson(mfjson)); + + public static IntPtr TtextseqIn(string str, int interp) + => SafeExecution(() => Native.TtextseqIn(str, interp)); + + public static IntPtr TtextseqsetFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TtextseqsetFromMfjson(mfjson)); + + public static IntPtr TtextseqsetIn(string str) + => SafeExecution(() => Native.TtextseqsetIn(str)); + + public static IntPtr TjsonbinstFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TjsonbinstFromMfjson(mfjson)); + + public static IntPtr TjsonbseqFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TjsonbseqFromMfjson(mfjson)); + + public static IntPtr TjsonbseqsetFromMfjson(IntPtr mfjson) + => SafeExecution(() => Native.TjsonbseqsetFromMfjson(mfjson)); + + public static IntPtr TemporalFromMfjson(string mfjson, int temptype) + => SafeExecution(() => Native.TemporalFromMfjson(mfjson, temptype)); + + public static IntPtr TemporalFromBaseTemp(long value, int temptype, IntPtr temp) + => SafeExecution(() => Native.TemporalFromBaseTemp(value, temptype, temp)); + + public static IntPtr TinstantCopy(IntPtr inst) + => SafeExecution(() => Native.TinstantCopy(inst)); + + public static IntPtr TinstantMake(long value, int temptype, long t) + => SafeExecution(() => Native.TinstantMake(value, temptype, t)); + + public static IntPtr TinstantMakeFree(long value, int temptype, long t) + => SafeExecution(() => Native.TinstantMakeFree(value, temptype, t)); + + public static IntPtr TsequenceCopy(IntPtr seq) + => SafeExecution(() => Native.TsequenceCopy(seq)); + + public static IntPtr TsequenceFromBaseTemp(long value, int temptype, IntPtr seq) + => SafeExecution(() => Native.TsequenceFromBaseTemp(value, temptype, seq)); + + public static IntPtr TsequenceFromBaseTstzset(long value, int temptype, IntPtr s) + => SafeExecution(() => Native.TsequenceFromBaseTstzset(value, temptype, s)); + + public static IntPtr TsequenceFromBaseTstzspan(long value, int temptype, IntPtr s, int interp) + => SafeExecution(() => Native.TsequenceFromBaseTstzspan(value, temptype, s, interp)); + + public static IntPtr TsequenceMakeExp(IntPtr instants, int count, int maxcount, bool lower_inc, bool upper_inc, int interp, bool normalize) + => SafeExecution(() => Native.TsequenceMakeExp(instants, count, maxcount, lower_inc, upper_inc, interp, normalize)); + + public static IntPtr TsequenceMakeFree(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, bool normalize) + => SafeExecution(() => Native.TsequenceMakeFree(instants, count, lower_inc, upper_inc, interp, normalize)); + + public static IntPtr TsequencesetCopy(IntPtr ss) + => SafeExecution(() => Native.TsequencesetCopy(ss)); + + public static IntPtr TseqsetarrToTseqset(IntPtr seqsets, int count, int totalseqs) + => SafeExecution(() => Native.TseqsetarrToTseqset(seqsets, count, totalseqs)); + + public static IntPtr TsequencesetFromBaseTemp(long value, int temptype, IntPtr ss) + => SafeExecution(() => Native.TsequencesetFromBaseTemp(value, temptype, ss)); + + public static IntPtr TsequencesetFromBaseTstzspanset(long value, int temptype, IntPtr ss, int interp) + => SafeExecution(() => Native.TsequencesetFromBaseTstzspanset(value, temptype, ss, interp)); + + public static IntPtr TsequencesetMakeExp(IntPtr sequences, int count, int maxcount, bool normalize) + => SafeExecution(() => Native.TsequencesetMakeExp(sequences, count, maxcount, normalize)); + + public static IntPtr TsequencesetMakeFree(IntPtr sequences, int count, bool normalize) + => SafeExecution(() => Native.TsequencesetMakeFree(sequences, count, normalize)); + + public static void TemporalSetTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TemporalSetTstzspan(temp, s)); + + public static void TinstantSetTstzspan(IntPtr inst, IntPtr s) + => SafeExecution(() => Native.TinstantSetTstzspan(inst, s)); + + public static void TnumberSetTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.TnumberSetTbox(temp, box)); + + public static void TnumberinstSetTbox(IntPtr inst, IntPtr box) + => SafeExecution(() => Native.TnumberinstSetTbox(inst, box)); + + public static void TnumberseqSetTbox(IntPtr seq, IntPtr box) + => SafeExecution(() => Native.TnumberseqSetTbox(seq, box)); + + public static void TnumberseqsetSetTbox(IntPtr ss, IntPtr box) + => SafeExecution(() => Native.TnumberseqsetSetTbox(ss, box)); + + public static void TsequenceSetTstzspan(IntPtr seq, IntPtr s) + => SafeExecution(() => Native.TsequenceSetTstzspan(seq, s)); + + public static void TsequencesetSetTstzspan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.TsequencesetSetTstzspan(ss, s)); + + public static IntPtr TemporalEndInst(IntPtr temp) + => SafeExecution(() => Native.TemporalEndInst(temp)); + + public static long TemporalEndValue(IntPtr temp) + => SafeExecution(() => Native.TemporalEndValue(temp)); + + public static IntPtr TemporalInstN(IntPtr temp, int n) + => SafeExecution(() => Native.TemporalInstN(temp, n)); + + public static IntPtr[] TemporalInstsP(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalInstsP(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TemporalMaxInstP(IntPtr temp) + => SafeExecution(() => Native.TemporalMaxInstP(temp)); + + public static long TemporalMaxValue(IntPtr temp) + => SafeExecution(() => Native.TemporalMaxValue(temp)); + + public static ulong TemporalMemSize(IntPtr temp) + => SafeExecution(() => Native.TemporalMemSize(temp)); + + public static IntPtr TemporalMinInstP(IntPtr temp) + => SafeExecution(() => Native.TemporalMinInstP(temp)); + + public static long TemporalMinValue(IntPtr temp) + => SafeExecution(() => Native.TemporalMinValue(temp)); + + public static IntPtr[] TemporalSequencesP(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalSequencesP(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static void TemporalSetBbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.TemporalSetBbox(temp, box)); + + public static IntPtr TemporalStartInst(IntPtr temp) + => SafeExecution(() => Native.TemporalStartInst(temp)); + + public static long TemporalStartValue(IntPtr temp) + => SafeExecution(() => Native.TemporalStartValue(temp)); + + public static long[] TemporalValuesP(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalValuesP(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool TemporalValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TemporalValueN(temp, n, result)); + + public static long[] TemporalValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TemporalValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static uint TinstantHash(IntPtr inst) + => SafeExecution(() => Native.TinstantHash(inst)); + + public static ulong TinstantHashExtended(IntPtr inst, ulong seed) + => SafeExecution(() => Native.TinstantHashExtended(inst, seed)); + + public static IntPtr[] TinstantInsts(IntPtr inst) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TinstantInsts(inst, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static void TinstantSetBbox(IntPtr inst, IntPtr box) + => SafeExecution(() => Native.TinstantSetBbox(inst, box)); + + public static IntPtr TinstantTime(IntPtr inst) + => SafeExecution(() => Native.TinstantTime(inst)); + + public static long[] TinstantTimestamps(IntPtr inst) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TinstantTimestamps(inst, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static long TinstantValueP(IntPtr inst) + => SafeExecution(() => Native.TinstantValueP(inst)); + + public static long TinstantValue(IntPtr inst) + => SafeExecution(() => Native.TinstantValue(inst)); + + public static bool TinstantValueAtTimestamptz(IntPtr inst, long t, IntPtr result) + => SafeExecution(() => Native.TinstantValueAtTimestamptz(inst, t, result)); + + public static long[] TinstantValuesP(IntPtr inst) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TinstantValuesP(inst, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static void TnumberSetSpan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TnumberSetSpan(temp, s)); + + public static IntPtr TnumberinstValuespans(IntPtr inst) + => SafeExecution(() => Native.TnumberinstValuespans(inst)); + + public static double TnumberseqAvgVal(IntPtr seq) + => SafeExecution(() => Native.TnumberseqAvgVal(seq)); + + public static IntPtr TnumberseqValuespans(IntPtr seq) + => SafeExecution(() => Native.TnumberseqValuespans(seq)); + + public static double TnumberseqsetAvgVal(IntPtr ss) + => SafeExecution(() => Native.TnumberseqsetAvgVal(ss)); + + public static IntPtr TnumberseqsetValuespans(IntPtr ss) + => SafeExecution(() => Native.TnumberseqsetValuespans(ss)); + + public static IntPtr TsequenceDuration(IntPtr seq) + => SafeExecution(() => Native.TsequenceDuration(seq)); + + public static long TsequenceEndTimestamptz(IntPtr seq) + => SafeExecution(() => Native.TsequenceEndTimestamptz(seq)); + + public static uint TsequenceHash(IntPtr seq) + => SafeExecution(() => Native.TsequenceHash(seq)); + + public static ulong TsequenceHashExtended(IntPtr seq, ulong seed) + => SafeExecution(() => Native.TsequenceHashExtended(seq, seed)); + + public static IntPtr[] TsequenceInstsP(IntPtr seq) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequenceInstsP(seq, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TsequenceMaxInstP(IntPtr seq) + => SafeExecution(() => Native.TsequenceMaxInstP(seq)); + + public static long TsequenceMaxVal(IntPtr seq) + => SafeExecution(() => Native.TsequenceMaxVal(seq)); + + public static IntPtr TsequenceMinInstP(IntPtr seq) + => SafeExecution(() => Native.TsequenceMinInstP(seq)); + + public static long TsequenceMinVal(IntPtr seq) + => SafeExecution(() => Native.TsequenceMinVal(seq)); + + public static IntPtr[] TsequenceSegments(IntPtr seq) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequenceSegments(seq, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TsequenceSeqs(IntPtr seq) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequenceSeqs(seq, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static long TsequenceStartTimestamptz(IntPtr seq) + => SafeExecution(() => Native.TsequenceStartTimestamptz(seq)); + + public static IntPtr TsequenceTime(IntPtr seq) + => SafeExecution(() => Native.TsequenceTime(seq)); + + public static long[] TsequenceTimestamps(IntPtr seq) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequenceTimestamps(seq, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool TsequenceValueAtTimestamptz(IntPtr seq, long t, bool strict, IntPtr result) + => SafeExecution(() => Native.TsequenceValueAtTimestamptz(seq, t, strict, result)); + + public static long[] TsequenceValuesP(IntPtr seq) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequenceValuesP(seq, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TsequencesetDuration(IntPtr ss, bool boundspan) + => SafeExecution(() => Native.TsequencesetDuration(ss, boundspan)); + + public static long TsequencesetEndTimestamptz(IntPtr ss) + => SafeExecution(() => Native.TsequencesetEndTimestamptz(ss)); + + public static uint TsequencesetHash(IntPtr ss) + => SafeExecution(() => Native.TsequencesetHash(ss)); + + public static ulong TsequencesetHashExtended(IntPtr ss, ulong seed) + => SafeExecution(() => Native.TsequencesetHashExtended(ss, seed)); + + public static IntPtr TsequencesetInstN(IntPtr ss, int n) + => SafeExecution(() => Native.TsequencesetInstN(ss, n)); + + public static IntPtr[] TsequencesetInstsP(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequencesetInstsP(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TsequencesetMaxInstP(IntPtr ss) + => SafeExecution(() => Native.TsequencesetMaxInstP(ss)); + + public static long TsequencesetMaxVal(IntPtr ss) + => SafeExecution(() => Native.TsequencesetMaxVal(ss)); + + public static IntPtr TsequencesetMinInstP(IntPtr ss) + => SafeExecution(() => Native.TsequencesetMinInstP(ss)); + + public static long TsequencesetMinVal(IntPtr ss) + => SafeExecution(() => Native.TsequencesetMinVal(ss)); + + public static int TsequencesetNumInstants(IntPtr ss) + => SafeExecution(() => Native.TsequencesetNumInstants(ss)); + + public static int TsequencesetNumTimestamps(IntPtr ss) + => SafeExecution(() => Native.TsequencesetNumTimestamps(ss)); + + public static IntPtr[] TsequencesetSegments(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequencesetSegments(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TsequencesetSequencesP(IntPtr ss) + => SafeExecution(() => Native.TsequencesetSequencesP(ss)); + + public static long TsequencesetStartTimestamptz(IntPtr ss) + => SafeExecution(() => Native.TsequencesetStartTimestamptz(ss)); + + public static IntPtr TsequencesetTime(IntPtr ss) + => SafeExecution(() => Native.TsequencesetTime(ss)); + + public static bool TsequencesetTimestamptzN(IntPtr ss, int n, IntPtr result) + => SafeExecution(() => Native.TsequencesetTimestamptzN(ss, n, result)); + + public static long[] TsequencesetTimestamps(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequencesetTimestamps(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool TsequencesetValueAtTimestamptz(IntPtr ss, long t, bool strict, IntPtr result) + => SafeExecution(() => Native.TsequencesetValueAtTimestamptz(ss, t, strict, result)); + + public static bool TsequencesetValueN(IntPtr ss, int n, IntPtr result) + => SafeExecution(() => Native.TsequencesetValueN(ss, n, result)); + + public static bool TsequencesetValueNP(IntPtr ss, int n, IntPtr result) + => SafeExecution(() => Native.TsequencesetValueNP(ss, n, result)); + + public static long[] TsequencesetValuesP(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TsequencesetValuesP(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + long[] _out = new long[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static void TemporalRestart(IntPtr temp, int count) + => SafeExecution(() => Native.TemporalRestart(temp, count)); + + public static IntPtr TemporalTsequence(IntPtr temp, int interp) + => SafeExecution(() => Native.TemporalTsequence(temp, interp)); + + public static IntPtr TemporalTsequenceset(IntPtr temp, int interp) + => SafeExecution(() => Native.TemporalTsequenceset(temp, interp)); + + public static IntPtr TinstantShiftTime(IntPtr inst, IntPtr interv) + => SafeExecution(() => Native.TinstantShiftTime(inst, interv)); + + public static IntPtr TinstantAsTsequence(IntPtr inst, int interp) + => SafeExecution(() => Native.TinstantAsTsequence(inst, interp)); + + public static IntPtr TinstantToTsequenceFree(IntPtr inst, int interp) + => SafeExecution(() => Native.TinstantToTsequenceFree(inst, interp)); + + public static IntPtr TinstantAsTsequenceset(IntPtr inst, int interp) + => SafeExecution(() => Native.TinstantAsTsequenceset(inst, interp)); + + public static IntPtr TnumberShiftScaleValue(IntPtr temp, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.TnumberShiftScaleValue(temp, shift, width, hasshift, haswidth)); + + public static IntPtr TnumberinstShiftValue(IntPtr inst, long shift) + => SafeExecution(() => Native.TnumberinstShiftValue(inst, shift)); + + public static IntPtr TnumberseqShiftScaleValue(IntPtr seq, long shift, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.TnumberseqShiftScaleValue(seq, shift, width, hasshift, haswidth)); + + public static IntPtr TnumberseqsetShiftScaleValue(IntPtr ss, long start, long width, bool hasshift, bool haswidth) + => SafeExecution(() => Native.TnumberseqsetShiftScaleValue(ss, start, width, hasshift, haswidth)); + + public static void TsequenceRestart(IntPtr seq, int count) + => SafeExecution(() => Native.TsequenceRestart(seq, count)); + + public static IntPtr TsequenceSetInterp(IntPtr seq, int interp) + => SafeExecution(() => Native.TsequenceSetInterp(seq, interp)); + + public static IntPtr TsequenceShiftScaleTime(IntPtr seq, IntPtr shift, IntPtr duration) + => SafeExecution(() => Native.TsequenceShiftScaleTime(seq, shift, duration)); + + public static IntPtr TsequenceSubseq(IntPtr seq, int from, int to, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.TsequenceSubseq(seq, from, to, lower_inc, upper_inc)); + + public static IntPtr TsequenceAsTinstant(IntPtr seq) + => SafeExecution(() => Native.TsequenceAsTinstant(seq)); + + public static IntPtr TsequenceAsTsequenceset(IntPtr seq) + => SafeExecution(() => Native.TsequenceAsTsequenceset(seq)); + + public static IntPtr TsequenceToTsequencesetFree(IntPtr seq) + => SafeExecution(() => Native.TsequenceToTsequencesetFree(seq)); + + public static IntPtr TsequenceToTsequencesetInterp(IntPtr seq, int interp) + => SafeExecution(() => Native.TsequenceToTsequencesetInterp(seq, interp)); + + public static void TsequencesetRestart(IntPtr ss, int count) + => SafeExecution(() => Native.TsequencesetRestart(ss, count)); + + public static IntPtr TsequencesetSetInterp(IntPtr ss, int interp) + => SafeExecution(() => Native.TsequencesetSetInterp(ss, interp)); + + public static IntPtr TsequencesetShiftScaleTime(IntPtr ss, IntPtr start, IntPtr duration) + => SafeExecution(() => Native.TsequencesetShiftScaleTime(ss, start, duration)); + + public static IntPtr TsequencesetToDiscrete(IntPtr ss) + => SafeExecution(() => Native.TsequencesetToDiscrete(ss)); + + public static IntPtr TsequencesetToLinear(IntPtr ss) + => SafeExecution(() => Native.TsequencesetToLinear(ss)); + + public static IntPtr TsequencesetToStep(IntPtr ss) + => SafeExecution(() => Native.TsequencesetToStep(ss)); + + public static IntPtr TsequencesetAsTinstant(IntPtr ss) + => SafeExecution(() => Native.TsequencesetAsTinstant(ss)); + + public static IntPtr TsequencesetAsTsequence(IntPtr ss) + => SafeExecution(() => Native.TsequencesetAsTsequence(ss)); + + public static IntPtr TinstantMerge(IntPtr inst1, IntPtr inst2) + => SafeExecution(() => Native.TinstantMerge(inst1, inst2)); + + public static IntPtr TinstantMergeArray(IntPtr instants, int count) + => SafeExecution(() => Native.TinstantMergeArray(instants, count)); + + public static IntPtr TsequenceAppendTinstant(IntPtr seq, IntPtr inst, double maxdist, IntPtr maxt, bool expand) + => SafeExecution(() => Native.TsequenceAppendTinstant(seq, inst, maxdist, maxt, expand)); + + public static IntPtr TsequenceAppendTsequence(IntPtr seq1, IntPtr seq2, bool expand) + => SafeExecution(() => Native.TsequenceAppendTsequence(seq1, seq2, expand)); + + public static IntPtr TsequenceDeleteTimestamptz(IntPtr seq, long t, bool connect) + => SafeExecution(() => Native.TsequenceDeleteTimestamptz(seq, t, connect)); + + public static IntPtr TsequenceDeleteTstzset(IntPtr seq, IntPtr s, bool connect) + => SafeExecution(() => Native.TsequenceDeleteTstzset(seq, s, connect)); + + public static IntPtr TsequenceDeleteTstzspan(IntPtr seq, IntPtr s, bool connect) + => SafeExecution(() => Native.TsequenceDeleteTstzspan(seq, s, connect)); + + public static IntPtr TsequenceDeleteTstzspanset(IntPtr seq, IntPtr ss, bool connect) + => SafeExecution(() => Native.TsequenceDeleteTstzspanset(seq, ss, connect)); + + public static IntPtr TsequenceInsert(IntPtr seq1, IntPtr seq2, bool connect) + => SafeExecution(() => Native.TsequenceInsert(seq1, seq2, connect)); + + public static IntPtr TsequenceMerge(IntPtr seq1, IntPtr seq2) + => SafeExecution(() => Native.TsequenceMerge(seq1, seq2)); + + public static IntPtr TsequenceMergeArray(IntPtr sequences, int count) + => SafeExecution(() => Native.TsequenceMergeArray(sequences, count)); + + public static IntPtr TsequencesetAppendTinstant(IntPtr ss, IntPtr inst, double maxdist, IntPtr maxt, bool expand) + => SafeExecution(() => Native.TsequencesetAppendTinstant(ss, inst, maxdist, maxt, expand)); + + public static IntPtr TsequencesetAppendTsequence(IntPtr ss, IntPtr seq, bool expand) + => SafeExecution(() => Native.TsequencesetAppendTsequence(ss, seq, expand)); + + public static IntPtr TsequencesetDeleteTimestamptz(IntPtr ss, long t) + => SafeExecution(() => Native.TsequencesetDeleteTimestamptz(ss, t)); + + public static IntPtr TsequencesetDeleteTstzset(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.TsequencesetDeleteTstzset(ss, s)); + + public static IntPtr TsequencesetDeleteTstzspan(IntPtr ss, IntPtr s) + => SafeExecution(() => Native.TsequencesetDeleteTstzspan(ss, s)); + + public static IntPtr TsequencesetDeleteTstzspanset(IntPtr ss, IntPtr ps) + => SafeExecution(() => Native.TsequencesetDeleteTstzspanset(ss, ps)); + + public static IntPtr TsequencesetInsert(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.TsequencesetInsert(ss1, ss2)); + + public static IntPtr TsequencesetMerge(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.TsequencesetMerge(ss1, ss2)); + + public static IntPtr TsequencesetMergeArray(IntPtr seqsets, int count) + => SafeExecution(() => Native.TsequencesetMergeArray(seqsets, count)); + + public static void TsequenceExpandBbox(IntPtr seq, IntPtr inst) + => SafeExecution(() => Native.TsequenceExpandBbox(seq, inst)); + + public static void TsequenceSetBbox(IntPtr seq, IntPtr box) + => SafeExecution(() => Native.TsequenceSetBbox(seq, box)); + + public static void TsequencesetExpandBbox(IntPtr ss, IntPtr seq) + => SafeExecution(() => Native.TsequencesetExpandBbox(ss, seq)); + + public static void TsequencesetSetBbox(IntPtr ss, IntPtr box) + => SafeExecution(() => Native.TsequencesetSetBbox(ss, box)); + + public static IntPtr TcontseqAfterTimestamptz(IntPtr seq, long t, bool strict) + => SafeExecution(() => Native.TcontseqAfterTimestamptz(seq, t, strict)); + + public static IntPtr TcontseqBeforeTimestamptz(IntPtr seq, long t, bool strict) + => SafeExecution(() => Native.TcontseqBeforeTimestamptz(seq, t, strict)); + + public static IntPtr TcontseqRestrictMinmax(IntPtr seq, bool min, bool atfunc) + => SafeExecution(() => Native.TcontseqRestrictMinmax(seq, min, atfunc)); + + public static IntPtr TdiscseqAfterTimestamptz(IntPtr seq, long t, bool strict) + => SafeExecution(() => Native.TdiscseqAfterTimestamptz(seq, t, strict)); + + public static IntPtr TdiscseqBeforeTimestamptz(IntPtr seq, long t, bool strict) + => SafeExecution(() => Native.TdiscseqBeforeTimestamptz(seq, t, strict)); + + public static IntPtr TdiscseqRestrictMinmax(IntPtr seq, bool min, bool atfunc) + => SafeExecution(() => Native.TdiscseqRestrictMinmax(seq, min, atfunc)); + + public static bool TemporalBboxRestrictSet(IntPtr temp, IntPtr set) + => SafeExecution(() => Native.TemporalBboxRestrictSet(temp, set)); + + public static IntPtr TemporalRestrictMinmax(IntPtr temp, bool min, bool atfunc) + => SafeExecution(() => Native.TemporalRestrictMinmax(temp, min, atfunc)); + + public static IntPtr TemporalRestrictTimestamptz(IntPtr temp, long t, bool atfunc) + => SafeExecution(() => Native.TemporalRestrictTimestamptz(temp, t, atfunc)); + + public static IntPtr TemporalRestrictTstzset(IntPtr temp, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TemporalRestrictTstzset(temp, s, atfunc)); + + public static IntPtr TemporalRestrictTstzspan(IntPtr temp, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TemporalRestrictTstzspan(temp, s, atfunc)); + + public static IntPtr TemporalRestrictTstzspanset(IntPtr temp, IntPtr ss, bool atfunc) + => SafeExecution(() => Native.TemporalRestrictTstzspanset(temp, ss, atfunc)); + + public static IntPtr TemporalRestrictValue(IntPtr temp, long value, bool atfunc) + => SafeExecution(() => Native.TemporalRestrictValue(temp, value, atfunc)); + + public static IntPtr TemporalRestrictValues(IntPtr temp, IntPtr set, bool atfunc) + => SafeExecution(() => Native.TemporalRestrictValues(temp, set, atfunc)); + + public static bool TemporalValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr result) + => SafeExecution(() => Native.TemporalValueAtTimestamptz(temp, t, strict, result)); + + public static IntPtr TinstantAfterTimestamptz(IntPtr inst, long t, bool strict) + => SafeExecution(() => Native.TinstantAfterTimestamptz(inst, t, strict)); + + public static IntPtr TinstantBeforeTimestamptz(IntPtr inst, long t, bool strict) + => SafeExecution(() => Native.TinstantBeforeTimestamptz(inst, t, strict)); + + public static IntPtr TinstantRestrictTstzspan(IntPtr inst, IntPtr period, bool atfunc) + => SafeExecution(() => Native.TinstantRestrictTstzspan(inst, period, atfunc)); + + public static IntPtr TinstantRestrictTstzspanset(IntPtr inst, IntPtr ss, bool atfunc) + => SafeExecution(() => Native.TinstantRestrictTstzspanset(inst, ss, atfunc)); + + public static IntPtr TinstantRestrictTimestamptz(IntPtr inst, long t, bool atfunc) + => SafeExecution(() => Native.TinstantRestrictTimestamptz(inst, t, atfunc)); + + public static IntPtr TinstantRestrictTstzset(IntPtr inst, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TinstantRestrictTstzset(inst, s, atfunc)); + + public static IntPtr TinstantRestrictValue(IntPtr inst, long value, bool atfunc) + => SafeExecution(() => Native.TinstantRestrictValue(inst, value, atfunc)); + + public static IntPtr TinstantRestrictValues(IntPtr inst, IntPtr set, bool atfunc) + => SafeExecution(() => Native.TinstantRestrictValues(inst, set, atfunc)); + + public static IntPtr TnumberRestrictSpan(IntPtr temp, IntPtr span, bool atfunc) + => SafeExecution(() => Native.TnumberRestrictSpan(temp, span, atfunc)); + + public static IntPtr TnumberRestrictSpanset(IntPtr temp, IntPtr ss, bool atfunc) + => SafeExecution(() => Native.TnumberRestrictSpanset(temp, ss, atfunc)); + + public static IntPtr TnumberinstRestrictSpan(IntPtr inst, IntPtr span, bool atfunc) + => SafeExecution(() => Native.TnumberinstRestrictSpan(inst, span, atfunc)); + + public static IntPtr TnumberinstRestrictSpanset(IntPtr inst, IntPtr ss, bool atfunc) + => SafeExecution(() => Native.TnumberinstRestrictSpanset(inst, ss, atfunc)); + + public static IntPtr TnumberseqsetRestrictSpan(IntPtr ss, IntPtr span, bool atfunc) + => SafeExecution(() => Native.TnumberseqsetRestrictSpan(ss, span, atfunc)); + + public static IntPtr TnumberseqsetRestrictSpanset(IntPtr ss, IntPtr spanset, bool atfunc) + => SafeExecution(() => Native.TnumberseqsetRestrictSpanset(ss, spanset, atfunc)); + + public static IntPtr TsequenceAtTimestamptz(IntPtr seq, long t) + => SafeExecution(() => Native.TsequenceAtTimestamptz(seq, t)); + + public static IntPtr TsequenceRestrictTstzspan(IntPtr seq, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TsequenceRestrictTstzspan(seq, s, atfunc)); + + public static IntPtr TsequenceRestrictTstzspanset(IntPtr seq, IntPtr ss, bool atfunc) + => SafeExecution(() => Native.TsequenceRestrictTstzspanset(seq, ss, atfunc)); + + public static IntPtr TsequencesetAfterTimestamptz(IntPtr ss, long t, bool strict) + => SafeExecution(() => Native.TsequencesetAfterTimestamptz(ss, t, strict)); + + public static IntPtr TsequencesetBeforeTimestamptz(IntPtr ss, long t, bool strict) + => SafeExecution(() => Native.TsequencesetBeforeTimestamptz(ss, t, strict)); + + public static IntPtr TsequencesetRestrictMinmax(IntPtr ss, bool min, bool atfunc) + => SafeExecution(() => Native.TsequencesetRestrictMinmax(ss, min, atfunc)); + + public static IntPtr TsequencesetRestrictTstzspan(IntPtr ss, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TsequencesetRestrictTstzspan(ss, s, atfunc)); + + public static IntPtr TsequencesetRestrictTstzspanset(IntPtr ss, IntPtr ps, bool atfunc) + => SafeExecution(() => Native.TsequencesetRestrictTstzspanset(ss, ps, atfunc)); + + public static IntPtr TsequencesetRestrictTimestamptz(IntPtr ss, long t, bool atfunc) + => SafeExecution(() => Native.TsequencesetRestrictTimestamptz(ss, t, atfunc)); + + public static IntPtr TsequencesetRestrictTstzset(IntPtr ss, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TsequencesetRestrictTstzset(ss, s, atfunc)); + + public static IntPtr TsequencesetRestrictValue(IntPtr ss, long value, bool atfunc) + => SafeExecution(() => Native.TsequencesetRestrictValue(ss, value, atfunc)); + + public static IntPtr TsequencesetRestrictValues(IntPtr ss, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TsequencesetRestrictValues(ss, s, atfunc)); + + public static int TinstantCmp(IntPtr inst1, IntPtr inst2) + => SafeExecution(() => Native.TinstantCmp(inst1, inst2)); + + public static bool TinstantEq(IntPtr inst1, IntPtr inst2) + => SafeExecution(() => Native.TinstantEq(inst1, inst2)); + + public static int TsequenceCmp(IntPtr seq1, IntPtr seq2) + => SafeExecution(() => Native.TsequenceCmp(seq1, seq2)); + + public static bool TsequenceEq(IntPtr seq1, IntPtr seq2) + => SafeExecution(() => Native.TsequenceEq(seq1, seq2)); + + public static int TsequencesetCmp(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.TsequencesetCmp(ss1, ss2)); + + public static bool TsequencesetEq(IntPtr ss1, IntPtr ss2) + => SafeExecution(() => Native.TsequencesetEq(ss1, ss2)); + + public static int AlwaysEqBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqBaseTemporal(value, temp)); + + public static int AlwaysEqTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.AlwaysEqTemporalBase(temp, value)); + + public static int AlwaysNeBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeBaseTemporal(value, temp)); + + public static int AlwaysNeTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.AlwaysNeTemporalBase(temp, value)); + + public static int AlwaysGeBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.AlwaysGeBaseTemporal(value, temp)); + + public static int AlwaysGeTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.AlwaysGeTemporalBase(temp, value)); + + public static int AlwaysGtBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.AlwaysGtBaseTemporal(value, temp)); + + public static int AlwaysGtTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.AlwaysGtTemporalBase(temp, value)); + + public static int AlwaysLeBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.AlwaysLeBaseTemporal(value, temp)); + + public static int AlwaysLeTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.AlwaysLeTemporalBase(temp, value)); + + public static int AlwaysLtBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.AlwaysLtBaseTemporal(value, temp)); + + public static int AlwaysLtTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.AlwaysLtTemporalBase(temp, value)); + + public static int EverEqBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.EverEqBaseTemporal(value, temp)); + + public static int EverEqTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.EverEqTemporalBase(temp, value)); + + public static int EverNeBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.EverNeBaseTemporal(value, temp)); + + public static int EverNeTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.EverNeTemporalBase(temp, value)); + + public static int EverGeBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.EverGeBaseTemporal(value, temp)); + + public static int EverGeTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.EverGeTemporalBase(temp, value)); + + public static int EverGtBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.EverGtBaseTemporal(value, temp)); + + public static int EverGtTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.EverGtTemporalBase(temp, value)); + + public static int EverLeBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.EverLeBaseTemporal(value, temp)); + + public static int EverLeTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.EverLeTemporalBase(temp, value)); + + public static int EverLtBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.EverLtBaseTemporal(value, temp)); + + public static int EverLtTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.EverLtTemporalBase(temp, value)); + + public static IntPtr TeqBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.TeqBaseTemporal(value, temp)); + + public static IntPtr TeqTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.TeqTemporalBase(temp, value)); + + public static IntPtr TneBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.TneBaseTemporal(value, temp)); + + public static IntPtr TneTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.TneTemporalBase(temp, value)); + + public static IntPtr TltBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.TltBaseTemporal(value, temp)); + + public static IntPtr TltTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.TltTemporalBase(temp, value)); + + public static IntPtr TleBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.TleBaseTemporal(value, temp)); + + public static IntPtr TleTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.TleTemporalBase(temp, value)); + + public static IntPtr TgtBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.TgtBaseTemporal(value, temp)); + + public static IntPtr TgtTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.TgtTemporalBase(temp, value)); + + public static IntPtr TgeBaseTemporal(long value, IntPtr temp) + => SafeExecution(() => Native.TgeBaseTemporal(value, temp)); + + public static IntPtr TgeTemporalBase(IntPtr temp, long value) + => SafeExecution(() => Native.TgeTemporalBase(temp, value)); + + public static IntPtr TnumberinstAbs(IntPtr inst) + => SafeExecution(() => Native.TnumberinstAbs(inst)); + + public static double TnumberinstDistance(IntPtr inst1, IntPtr inst2) + => SafeExecution(() => Native.TnumberinstDistance(inst1, inst2)); + + public static IntPtr TnumberseqAbs(IntPtr seq) + => SafeExecution(() => Native.TnumberseqAbs(seq)); + + public static IntPtr TnumberseqAngularDifference(IntPtr seq) + => SafeExecution(() => Native.TnumberseqAngularDifference(seq)); + + public static IntPtr TnumberseqDeltaValue(IntPtr seq) + => SafeExecution(() => Native.TnumberseqDeltaValue(seq)); + + public static IntPtr TnumberseqsetAbs(IntPtr ss) + => SafeExecution(() => Native.TnumberseqsetAbs(ss)); + + public static IntPtr TnumberseqsetAngularDifference(IntPtr ss) + => SafeExecution(() => Native.TnumberseqsetAngularDifference(ss)); + + public static IntPtr TnumberseqsetDeltaValue(IntPtr ss) + => SafeExecution(() => Native.TnumberseqsetDeltaValue(ss)); + + public static IntPtr TdistanceTnumberNumber(IntPtr temp, long value) + => SafeExecution(() => Native.TdistanceTnumberNumber(temp, value)); + + public static long NadTboxTbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.NadTboxTbox(box1, box2)); + + public static long NadTnumberNumber(IntPtr temp, long value) + => SafeExecution(() => Native.NadTnumberNumber(temp, value)); + + public static long NadTnumberTbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTnumberTbox(temp, box)); + + public static long NadTnumberTnumber(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTnumberTnumber(temp1, temp2)); + + public static double TnumberseqIntegral(IntPtr seq) + => SafeExecution(() => Native.TnumberseqIntegral(seq)); + + public static double TnumberseqTwavg(IntPtr seq) + => SafeExecution(() => Native.TnumberseqTwavg(seq)); + + public static double TnumberseqsetIntegral(IntPtr ss) + => SafeExecution(() => Native.TnumberseqsetIntegral(ss)); + + public static double TnumberseqsetTwavg(IntPtr ss) + => SafeExecution(() => Native.TnumberseqsetTwavg(ss)); + + public static IntPtr TemporalCompact(IntPtr temp) + => SafeExecution(() => Native.TemporalCompact(temp)); + + public static IntPtr TsequenceCompact(IntPtr seq) + => SafeExecution(() => Native.TsequenceCompact(seq)); + + public static IntPtr TsequencesetCompact(IntPtr ss) + => SafeExecution(() => Native.TsequencesetCompact(ss)); + + public static IntPtr TemporalSkiplistMake() + => SafeExecution(() => Native.TemporalSkiplistMake()); + + public static IntPtr SkiplistMake(ulong key_size, ulong value_size, IntPtr comp_fn, IntPtr merge_fn) + => SafeExecution(() => Native.SkiplistMake(key_size, value_size, comp_fn, merge_fn)); + + public static int SkiplistSearch(IntPtr list, IntPtr key, IntPtr value) + => SafeExecution(() => Native.SkiplistSearch(list, key, value)); + + public static void SkiplistFree(IntPtr list) + => SafeExecution(() => Native.SkiplistFree(list)); + + public static void SkiplistSplice(IntPtr list, IntPtr keys, IntPtr values, int count, IntPtr func, bool crossings, int sktype) + => SafeExecution(() => Native.SkiplistSplice(list, keys, values, count, func, crossings, sktype)); + + public static void TemporalSkiplistSplice(IntPtr list, IntPtr values, int count, IntPtr func, bool crossings) + => SafeExecution(() => Native.TemporalSkiplistSplice(list, values, count, func, crossings)); + + public static IntPtr SkiplistValues(IntPtr list) + => SafeExecution(() => Native.SkiplistValues(list)); + + public static IntPtr SkiplistKeysValues(IntPtr list, IntPtr values) + => SafeExecution(() => Native.SkiplistKeysValues(list, values)); + + public static IntPtr TemporalAppTinstTransfn(IntPtr state, IntPtr inst, int interp, double maxdist, IntPtr maxt) + => SafeExecution(() => Native.TemporalAppTinstTransfn(state, inst, interp, maxdist, maxt)); + + public static IntPtr TemporalAppTseqTransfn(IntPtr state, IntPtr seq) + => SafeExecution(() => Native.TemporalAppTseqTransfn(state, seq)); + + public static IntPtr[] SpanBins(IntPtr s, long size, long origin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SpanBins(s, size, origin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] SpansetBins(IntPtr ss, long size, long origin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.SpansetBins(ss, size, origin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TnumberValueBins(IntPtr temp, long size, long origin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TnumberValueBins(temp, size, origin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 24); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TnumberValueTimeBoxes(IntPtr temp, long vsize, IntPtr duration, long vorigin, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TnumberValueTimeBoxes(temp, vsize, duration, vorigin, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static (IntPtr[], long[]) TnumberValueSplit(IntPtr temp, long vsize, long vorigin) + { + IntPtr _out_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TnumberValueSplit(temp, vsize, vorigin, _out_bins, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_bins_arr = Marshal.ReadIntPtr(_out_bins); + long[] __out_bins_out = new long[_n]; + Marshal.Copy(__out_bins_arr, __out_bins_out, 0, _n); + return (_resultArr, __out_bins_out); + } + finally + { + Marshal.FreeHGlobal(_out_bins); + Marshal.FreeHGlobal(_count_count); + } + } + + public static IntPtr TboxGetValueTimeTile(long value, long t, long vsize, IntPtr duration, long vorigin, long torigin, int basetype, int spantype) + => SafeExecution(() => Native.TboxGetValueTimeTile(value, t, vsize, duration, vorigin, torigin, basetype, spantype)); + + public static IntPtr[] TboxValueTimeTiles(IntPtr box, long vsize, IntPtr duration, long vorigin, long torigin) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TboxValueTimeTiles(box, vsize, duration, vorigin, torigin, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 56); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static (IntPtr[], long[], long[]) TnumberValueTimeSplit(IntPtr temp, long size, IntPtr duration, long vorigin, long torigin) + { + IntPtr _out_value_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _out_time_bins = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.TnumberValueTimeSplit(temp, size, duration, vorigin, torigin, _out_value_bins, _out_time_bins, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_value_bins_arr = Marshal.ReadIntPtr(_out_value_bins); + long[] __out_value_bins_out = new long[_n]; + Marshal.Copy(__out_value_bins_arr, __out_value_bins_out, 0, _n); + IntPtr __out_time_bins_arr = Marshal.ReadIntPtr(_out_time_bins); + long[] __out_time_bins_out = new long[_n]; + Marshal.Copy(__out_time_bins_arr, __out_time_bins_out, 0, _n); + return (_resultArr, __out_value_bins_out, __out_time_bins_out); + } + finally + { + Marshal.FreeHGlobal(_out_value_bins); + Marshal.FreeHGlobal(_out_time_bins); + Marshal.FreeHGlobal(_count_count); + } + } + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_internal_geo.g.cs b/MEOS.NET/Functions/Meos.meos_internal_geo.g.cs new file mode 100644 index 0000000..098751c --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_internal_geo.g.cs @@ -0,0 +1,444 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_internal_geo.h declares. + public static partial class Meos + { + public static IntPtr MeosProjGetContext() + => SafeExecution(() => Native.MeosProjGetContext()); + + public static IntPtr GeosGetContext() + => SafeExecution(() => Native.GeosGetContext()); + + public static long DatumGeoRound(long value, long size) + => SafeExecution(() => Native.DatumGeoRound(value, size)); + + public static IntPtr PointRound(IntPtr gs, int maxdd) + => SafeExecution(() => Native.PointRound(gs, maxdd)); + + public static void StboxSet(bool hasx, bool hasz, bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr s, IntPtr result) + => SafeExecution(() => Native.StboxSet(hasx, hasz, geodetic, srid, xmin, xmax, ymin, ymax, zmin, zmax, s, result)); + + public static void GboxSetStbox(IntPtr box, int srid, IntPtr result) + => SafeExecution(() => Native.GboxSetStbox(box, srid, result)); + + public static bool GeoSetStbox(IntPtr gs, IntPtr result) + => SafeExecution(() => Native.GeoSetStbox(gs, result)); + + public static void GeoarrSetStbox(IntPtr values, int count, IntPtr result) + => SafeExecution(() => Native.GeoarrSetStbox(values, count, result)); + + public static bool SpatialSetStbox(long d, int basetype, IntPtr result) + => SafeExecution(() => Native.SpatialSetStbox(d, basetype, result)); + + public static void SpatialsetSetStbox(IntPtr set, IntPtr result) + => SafeExecution(() => Native.SpatialsetSetStbox(set, result)); + + public static long DistanceSpatialsetValue(IntPtr s, long value) + => SafeExecution(() => Native.DistanceSpatialsetValue(s, value)); + + public static long DistanceSpatialsetSpatialset(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.DistanceSpatialsetSpatialset(s1, s2)); + + public static void StboxSetBox3d(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxSetBox3d(box, result)); + + public static void StboxSetGbox(IntPtr box, IntPtr result) + => SafeExecution(() => Native.StboxSetGbox(box, result)); + + public static void TstzsetSetStbox(IntPtr s, IntPtr result) + => SafeExecution(() => Native.TstzsetSetStbox(s, result)); + + public static void TimestamptzSetStbox(long t, IntPtr result) + => SafeExecution(() => Native.TimestamptzSetStbox(t, result)); + + public static void TstzspanSetStbox(IntPtr s, IntPtr result) + => SafeExecution(() => Native.TstzspanSetStbox(s, result)); + + public static void TstzspansetSetStbox(IntPtr s, IntPtr result) + => SafeExecution(() => Native.TstzspansetSetStbox(s, result)); + + public static void StboxExpand(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxExpand(box1, box2)); + + public static bool StboxExpandSpaceSet(IntPtr box, double d, IntPtr result) + => SafeExecution(() => Native.StboxExpandSpaceSet(box, d, result)); + + public static bool StboxContains(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxContains(box1, box2)); + + public static bool StboxContained(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxContained(box1, box2)); + + public static bool StboxOverlaps(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverlaps(box1, box2)); + + public static bool StboxSame(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxSame(box1, box2)); + + public static bool StboxAdjacent(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxAdjacent(box1, box2)); + + public static bool StboxLeft(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxLeft(box1, box2)); + + public static bool StboxRight(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxRight(box1, box2)); + + public static bool StboxOverleft(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverleft(box1, box2)); + + public static bool StboxOverright(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverright(box1, box2)); + + public static bool StboxBelow(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxBelow(box1, box2)); + + public static bool StboxAbove(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxAbove(box1, box2)); + + public static bool StboxOverbelow(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverbelow(box1, box2)); + + public static bool StboxOverabove(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverabove(box1, box2)); + + public static bool StboxFront(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxFront(box1, box2)); + + public static bool StboxBack(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxBack(box1, box2)); + + public static bool StboxOverfront(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverfront(box1, box2)); + + public static bool StboxOverback(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverback(box1, box2)); + + public static bool StboxBefore(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxBefore(box1, box2)); + + public static bool StboxAfter(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxAfter(box1, box2)); + + public static bool StboxOverbefore(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverbefore(box1, box2)); + + public static bool StboxOverafter(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.StboxOverafter(box1, box2)); + + public static bool InterStboxStbox(IntPtr box1, IntPtr box2, IntPtr result) + => SafeExecution(() => Native.InterStboxStbox(box1, box2, result)); + + public static IntPtr StboxGeo(IntPtr box) + => SafeExecution(() => Native.StboxGeo(box)); + + public static IntPtr TgeogpointinstFromMfjson(IntPtr mfjson, int srid) + => SafeExecution(() => Native.TgeogpointinstFromMfjson(mfjson, srid)); + + public static IntPtr TgeogpointinstIn(string str) + => SafeExecution(() => Native.TgeogpointinstIn(str)); + + public static IntPtr TgeogpointseqFromMfjson(IntPtr mfjson, int srid, int interp) + => SafeExecution(() => Native.TgeogpointseqFromMfjson(mfjson, srid, interp)); + + public static IntPtr TgeogpointseqIn(string str, int interp) + => SafeExecution(() => Native.TgeogpointseqIn(str, interp)); + + public static IntPtr TgeogpointseqsetFromMfjson(IntPtr mfjson, int srid, int interp) + => SafeExecution(() => Native.TgeogpointseqsetFromMfjson(mfjson, srid, interp)); + + public static IntPtr TgeogpointseqsetIn(string str) + => SafeExecution(() => Native.TgeogpointseqsetIn(str)); + + public static IntPtr TgeompointinstFromMfjson(IntPtr mfjson, int srid) + => SafeExecution(() => Native.TgeompointinstFromMfjson(mfjson, srid)); + + public static IntPtr TgeompointinstIn(string str) + => SafeExecution(() => Native.TgeompointinstIn(str)); + + public static IntPtr TgeompointseqFromMfjson(IntPtr mfjson, int srid, int interp) + => SafeExecution(() => Native.TgeompointseqFromMfjson(mfjson, srid, interp)); + + public static IntPtr TgeompointseqIn(string str, int interp) + => SafeExecution(() => Native.TgeompointseqIn(str, interp)); + + public static IntPtr TgeompointseqsetFromMfjson(IntPtr mfjson, int srid, int interp) + => SafeExecution(() => Native.TgeompointseqsetFromMfjson(mfjson, srid, interp)); + + public static IntPtr TgeompointseqsetIn(string str) + => SafeExecution(() => Native.TgeompointseqsetIn(str)); + + public static IntPtr TgeographyinstFromMfjson(IntPtr mfjson, int srid) + => SafeExecution(() => Native.TgeographyinstFromMfjson(mfjson, srid)); + + public static IntPtr TgeographyinstIn(string str) + => SafeExecution(() => Native.TgeographyinstIn(str)); + + public static IntPtr TgeographyseqFromMfjson(IntPtr mfjson, int srid, int interp) + => SafeExecution(() => Native.TgeographyseqFromMfjson(mfjson, srid, interp)); + + public static IntPtr TgeographyseqIn(string str, int interp) + => SafeExecution(() => Native.TgeographyseqIn(str, interp)); + + public static IntPtr TgeographyseqsetFromMfjson(IntPtr mfjson, int srid, int interp) + => SafeExecution(() => Native.TgeographyseqsetFromMfjson(mfjson, srid, interp)); + + public static IntPtr TgeographyseqsetIn(string str) + => SafeExecution(() => Native.TgeographyseqsetIn(str)); + + public static IntPtr TgeometryinstFromMfjson(IntPtr mfjson, int srid) + => SafeExecution(() => Native.TgeometryinstFromMfjson(mfjson, srid)); + + public static IntPtr TgeometryinstIn(string str) + => SafeExecution(() => Native.TgeometryinstIn(str)); + + public static IntPtr TgeometryseqFromMfjson(IntPtr mfjson, int srid, int interp) + => SafeExecution(() => Native.TgeometryseqFromMfjson(mfjson, srid, interp)); + + public static IntPtr TgeometryseqIn(string str, int interp) + => SafeExecution(() => Native.TgeometryseqIn(str, interp)); + + public static IntPtr TgeometryseqsetFromMfjson(IntPtr mfjson, int srid, int interp) + => SafeExecution(() => Native.TgeometryseqsetFromMfjson(mfjson, srid, interp)); + + public static IntPtr TgeometryseqsetIn(string str) + => SafeExecution(() => Native.TgeometryseqsetIn(str)); + + public static void TspatialSetStbox(IntPtr temp, IntPtr result) + => SafeExecution(() => Native.TspatialSetStbox(temp, result)); + + public static void TgeoinstSetStbox(IntPtr inst, IntPtr box) + => SafeExecution(() => Native.TgeoinstSetStbox(inst, box)); + + public static void TspatialseqSetStbox(IntPtr seq, IntPtr box) + => SafeExecution(() => Native.TspatialseqSetStbox(seq, box)); + + public static void TspatialseqsetSetStbox(IntPtr ss, IntPtr box) + => SafeExecution(() => Native.TspatialseqsetSetStbox(ss, box)); + + public static IntPtr TgeoRestrictElevation(IntPtr temp, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TgeoRestrictElevation(temp, s, atfunc)); + + public static IntPtr TgeoRestrictGeom(IntPtr temp, IntPtr gs, bool atfunc) + => SafeExecution(() => Native.TgeoRestrictGeom(temp, gs, atfunc)); + + public static IntPtr TgeoRestrictStbox(IntPtr temp, IntPtr box, bool border_inc, bool atfunc) + => SafeExecution(() => Native.TgeoRestrictStbox(temp, box, border_inc, atfunc)); + + public static IntPtr TgeoinstRestrictGeom(IntPtr inst, IntPtr gs, bool atfunc) + => SafeExecution(() => Native.TgeoinstRestrictGeom(inst, gs, atfunc)); + + public static IntPtr TgeoinstRestrictStbox(IntPtr inst, IntPtr box, bool border_inc, bool atfunc) + => SafeExecution(() => Native.TgeoinstRestrictStbox(inst, box, border_inc, atfunc)); + + public static IntPtr TgeoseqRestrictGeom(IntPtr seq, IntPtr gs, bool atfunc) + => SafeExecution(() => Native.TgeoseqRestrictGeom(seq, gs, atfunc)); + + public static IntPtr TgeoseqRestrictStbox(IntPtr seq, IntPtr box, bool border_inc, bool atfunc) + => SafeExecution(() => Native.TgeoseqRestrictStbox(seq, box, border_inc, atfunc)); + + public static IntPtr TgeoseqsetRestrictGeom(IntPtr ss, IntPtr gs, bool atfunc) + => SafeExecution(() => Native.TgeoseqsetRestrictGeom(ss, gs, atfunc)); + + public static IntPtr TgeoseqsetRestrictStbox(IntPtr ss, IntPtr box, bool border_inc, bool atfunc) + => SafeExecution(() => Native.TgeoseqsetRestrictStbox(ss, box, border_inc, atfunc)); + + public static IntPtr GeoEdgeCtxMake(IntPtr gs) + => SafeExecution(() => Native.GeoEdgeCtxMake(gs)); + + public static void GeoEdgeCtxFree(IntPtr ctx) + => SafeExecution(() => Native.GeoEdgeCtxFree(ctx)); + + public static bool GeoIntersects2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeoIntersects2d(gs1, gs2)); + + public static bool GeoIntersects2dCtx(IntPtr gs, IntPtr ctx) + => SafeExecution(() => Native.GeoIntersects2dCtx(gs, ctx)); + + public static bool GeoCovers2d(IntPtr gs1, IntPtr gs2) + => SafeExecution(() => Native.GeoCovers2d(gs1, gs2)); + + public static IntPtr TpointLinearInterGeom(IntPtr temp, IntPtr gs, bool clip) + => SafeExecution(() => Native.TpointLinearInterGeom(temp, gs, clip)); + + public static IntPtr TpointLinearInterGeomCtx(IntPtr temp, IntPtr ctx, bool clip) + => SafeExecution(() => Native.TpointLinearInterGeomCtx(temp, ctx, clip)); + + public static IntPtr TpointLinearDwithinGeom(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.TpointLinearDwithinGeom(temp, gs, dist)); + + public static IntPtr TpointLinearDwithinGeomCtx(IntPtr temp, IntPtr ctx, double dist) + => SafeExecution(() => Native.TpointLinearDwithinGeomCtx(temp, ctx, dist)); + + public static IntPtr TpointLinearDistanceGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TpointLinearDistanceGeom(temp, gs)); + + public static IntPtr TpointLinearRestrictGeom(IntPtr temp, IntPtr gs, bool atfunc) + => SafeExecution(() => Native.TpointLinearRestrictGeom(temp, gs, atfunc)); + + public static bool GeomMeosSupported(IntPtr geom) + => SafeExecution(() => Native.GeomMeosSupported(geom)); + + public static int SpatialSrid(long d, int basetype) + => SafeExecution(() => Native.SpatialSrid(d, basetype)); + + public static bool SpatialSetSrid(long d, int basetype, int srid) + => SafeExecution(() => Native.SpatialSetSrid(d, basetype, srid)); + + public static int TspatialinstSrid(IntPtr inst) + => SafeExecution(() => Native.TspatialinstSrid(inst)); + + public static IntPtr TpointseqAzimuth(IntPtr seq) + => SafeExecution(() => Native.TpointseqAzimuth(seq)); + + public static IntPtr TpointseqCumulativeLength(IntPtr seq, double prevlength) + => SafeExecution(() => Native.TpointseqCumulativeLength(seq, prevlength)); + + public static bool TpointseqIsSimple(IntPtr seq) + => SafeExecution(() => Native.TpointseqIsSimple(seq)); + + public static double TpointseqLength(IntPtr seq) + => SafeExecution(() => Native.TpointseqLength(seq)); + + public static IntPtr TpointseqLinearTrajectory(IntPtr seq, bool unary_union) + => SafeExecution(() => Native.TpointseqLinearTrajectory(seq, unary_union)); + + public static IntPtr[] TgeoseqStboxes(IntPtr seq) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoseqStboxes(seq, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TgeoseqSplitNStboxes(IntPtr seq, int max_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoseqSplitNStboxes(seq, max_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TpointseqsetAzimuth(IntPtr ss) + => SafeExecution(() => Native.TpointseqsetAzimuth(ss)); + + public static IntPtr TpointseqsetCumulativeLength(IntPtr ss) + => SafeExecution(() => Native.TpointseqsetCumulativeLength(ss)); + + public static bool TpointseqsetIsSimple(IntPtr ss) + => SafeExecution(() => Native.TpointseqsetIsSimple(ss)); + + public static double TpointseqsetLength(IntPtr ss) + => SafeExecution(() => Native.TpointseqsetLength(ss)); + + public static IntPtr[] TgeoseqsetStboxes(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoseqsetStboxes(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TgeoseqsetSplitNStboxes(IntPtr ss, int max_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TgeoseqsetSplitNStboxes(ss, max_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TpointGetCoord(IntPtr temp, int coord) + => SafeExecution(() => Native.TpointGetCoord(temp, coord)); + + public static IntPtr TgeominstTgeoginst(IntPtr inst, bool oper) + => SafeExecution(() => Native.TgeominstTgeoginst(inst, oper)); + + public static IntPtr TgeomseqTgeogseq(IntPtr seq, bool oper) + => SafeExecution(() => Native.TgeomseqTgeogseq(seq, oper)); + + public static IntPtr TgeomseqsetTgeogseqset(IntPtr ss, bool oper) + => SafeExecution(() => Native.TgeomseqsetTgeogseqset(ss, oper)); + + public static IntPtr TgeomTgeog(IntPtr temp, bool oper) + => SafeExecution(() => Native.TgeomTgeog(temp, oper)); + + public static IntPtr TgeoTpoint(IntPtr temp, bool oper) + => SafeExecution(() => Native.TgeoTpoint(temp, oper)); + + public static void TspatialinstSetSrid(IntPtr inst, int srid) + => SafeExecution(() => Native.TspatialinstSetSrid(inst, srid)); + + public static IntPtr[] TpointseqMakeSimple(IntPtr seq) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TpointseqMakeSimple(seq, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static void TspatialseqSetSrid(IntPtr seq, int srid) + => SafeExecution(() => Native.TspatialseqSetSrid(seq, srid)); + + public static IntPtr[] TpointseqsetMakeSimple(IntPtr ss) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TpointseqsetMakeSimple(ss, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static void TspatialseqsetSetSrid(IntPtr ss, int srid) + => SafeExecution(() => Native.TspatialseqsetSetSrid(ss, srid)); + + public static IntPtr TpointseqTwcentroid(IntPtr seq) + => SafeExecution(() => Native.TpointseqTwcentroid(seq)); + + public static IntPtr TpointseqsetTwcentroid(IntPtr ss) + => SafeExecution(() => Native.TpointseqsetTwcentroid(ss)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_json.g.cs b/MEOS.NET/Functions/Meos.meos_json.g.cs new file mode 100644 index 0000000..96237ab --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_json.g.cs @@ -0,0 +1,798 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_json.h declares. + public static partial class Meos + { + public static IntPtr JsonIn(string str) + => SafeExecution(() => Native.JsonIn(str)); + + public static string JsonOut(IntPtr js) + => SafeExecution(() => Native.JsonOut(js)); + + public static IntPtr JsonbFromText(IntPtr txt, bool unique_keys) + => SafeExecution(() => Native.JsonbFromText(txt, unique_keys)); + + public static IntPtr JsonbIn(string str) + => SafeExecution(() => Native.JsonbIn(str)); + + public static string JsonbOut(IntPtr jb) + => SafeExecution(() => Native.JsonbOut(jb)); + + public static IntPtr JsonMake(IntPtr keys_vals, int count) + => SafeExecution(() => Native.JsonMake(keys_vals, count)); + + public static IntPtr JsonMakeTwoArg(IntPtr keys, IntPtr values, int count) + => SafeExecution(() => Native.JsonMakeTwoArg(keys, values, count)); + + public static IntPtr JsonbCopy(IntPtr jb) + => SafeExecution(() => Native.JsonbCopy(jb)); + + public static IntPtr JsonbMake(IntPtr keys_vals, int count) + => SafeExecution(() => Native.JsonbMake(keys_vals, count)); + + public static IntPtr JsonbMakeTwoArg(IntPtr keys, IntPtr values, int count) + => SafeExecution(() => Native.JsonbMakeTwoArg(keys, values, count)); + + public static bool JsonbToBool(IntPtr jb) + => SafeExecution(() => Native.JsonbToBool(jb)); + + public static string JsonbToCstring(IntPtr jb) + => SafeExecution(() => Native.JsonbToCstring(jb)); + + public static float JsonbToFloat4(IntPtr jb) + => SafeExecution(() => Native.JsonbToFloat4(jb)); + + public static double JsonbToFloat8(IntPtr jb) + => SafeExecution(() => Native.JsonbToFloat8(jb)); + + public static short JsonbToInt16(IntPtr jb) + => SafeExecution(() => Native.JsonbToInt16(jb)); + + public static int JsonbToInt32(IntPtr jb) + => SafeExecution(() => Native.JsonbToInt32(jb)); + + public static long JsonbToInt64(IntPtr jb) + => SafeExecution(() => Native.JsonbToInt64(jb)); + + public static IntPtr JsonbToNumeric(IntPtr jb) + => SafeExecution(() => Native.JsonbToNumeric(jb)); + + public static IntPtr JsonbToText(IntPtr jb) + => SafeExecution(() => Native.JsonbToText(jb)); + + public static IntPtr JsonArrayElement(IntPtr js, int element) + => SafeExecution(() => Native.JsonArrayElement(js, element)); + + public static IntPtr JsonArrayElementText(IntPtr js, int element) + => SafeExecution(() => Native.JsonArrayElementText(js, element)); + + public static IntPtr[] JsonArrayElements(IntPtr js) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonArrayElements(js, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] JsonArrayElementsText(IntPtr js) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonArrayElementsText(js, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int JsonArrayLength(IntPtr js) + => SafeExecution(() => Native.JsonArrayLength(js)); + + public static (IntPtr[], IntPtr[]) JsonEach(IntPtr js) + { + IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.JsonEach(js, _out_values, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); + IntPtr[] __out_values_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } + return (_resultArr, __out_values_out); + } + finally + { + Marshal.FreeHGlobal(_out_values); + Marshal.FreeHGlobal(_count_count); + } + } + + public static (IntPtr[], IntPtr[]) JsonEachText(IntPtr js) + { + IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.JsonEachText(js, _out_values, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); + IntPtr[] __out_values_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } + return (_resultArr, __out_values_out); + } + finally + { + Marshal.FreeHGlobal(_out_values); + Marshal.FreeHGlobal(_count_count); + } + } + + public static IntPtr JsonExtractPath(IntPtr js, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.JsonExtractPath(js, path_elems, path_len)); + + public static IntPtr JsonExtractPathText(IntPtr js, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.JsonExtractPathText(js, path_elems, path_len)); + + public static IntPtr JsonObjectField(IntPtr js, IntPtr key) + => SafeExecution(() => Native.JsonObjectField(js, key)); + + public static IntPtr JsonObjectFieldText(IntPtr js, IntPtr key) + => SafeExecution(() => Native.JsonObjectFieldText(js, key)); + + public static IntPtr[] JsonObjectKeys(IntPtr js) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonObjectKeys(js, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr JsonTypeof(IntPtr js) + => SafeExecution(() => Native.JsonTypeof(js)); + + public static IntPtr JsonbArrayElement(IntPtr jb, int element) + => SafeExecution(() => Native.JsonbArrayElement(jb, element)); + + public static IntPtr JsonbArrayElementText(IntPtr jb, int element) + => SafeExecution(() => Native.JsonbArrayElementText(jb, element)); + + public static IntPtr[] JsonbArrayElements(IntPtr jb) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonbArrayElements(jb, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] JsonbArrayElementsText(IntPtr jb) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonbArrayElementsText(jb, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int JsonbArrayLength(IntPtr jb) + => SafeExecution(() => Native.JsonbArrayLength(jb)); + + public static bool JsonbContained(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbContained(jb1, jb2)); + + public static bool JsonbContains(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbContains(jb1, jb2)); + + public static (IntPtr[], IntPtr[]) JsonbEach(IntPtr jb) + { + IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.JsonbEach(jb, _out_values, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); + IntPtr[] __out_values_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } + return (_resultArr, __out_values_out); + } + finally + { + Marshal.FreeHGlobal(_out_values); + Marshal.FreeHGlobal(_count_count); + } + } + + public static (IntPtr[], IntPtr[]) JsonbEachText(IntPtr jb) + { + IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.JsonbEachText(jb, _out_values, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); + IntPtr[] __out_values_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } + return (_resultArr, __out_values_out); + } + finally + { + Marshal.FreeHGlobal(_out_values); + Marshal.FreeHGlobal(_count_count); + } + } + + public static bool JsonbExists(IntPtr jb, IntPtr key) + => SafeExecution(() => Native.JsonbExists(jb, key)); + + public static bool JsonbExistsArray(IntPtr jb, IntPtr keys_elems, int keys_len, bool any) + => SafeExecution(() => Native.JsonbExistsArray(jb, keys_elems, keys_len, any)); + + public static IntPtr JsonbExtractPath(IntPtr jb, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.JsonbExtractPath(jb, path_elems, path_len)); + + public static IntPtr JsonbExtractPathText(IntPtr jb, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.JsonbExtractPathText(jb, path_elems, path_len)); + + public static uint JsonbHash(IntPtr jb) + => SafeExecution(() => Native.JsonbHash(jb)); + + public static ulong JsonbHashExtended(IntPtr jb, ulong seed) + => SafeExecution(() => Native.JsonbHashExtended(jb, seed)); + + public static IntPtr JsonbObjectField(IntPtr jb, IntPtr key) + => SafeExecution(() => Native.JsonbObjectField(jb, key)); + + public static IntPtr JsonbObjectFieldText(IntPtr jb, IntPtr key) + => SafeExecution(() => Native.JsonbObjectFieldText(jb, key)); + + public static IntPtr[] JsonbObjectKeys(IntPtr jb) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonbObjectKeys(jb, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr JsonStripNulls(IntPtr js, bool strip_in_arrays) + => SafeExecution(() => Native.JsonStripNulls(js, strip_in_arrays)); + + public static IntPtr JsonbConcat(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbConcat(jb1, jb2)); + + public static IntPtr JsonbDelete(IntPtr jb, IntPtr key) + => SafeExecution(() => Native.JsonbDelete(jb, key)); + + public static IntPtr JsonbDeleteArray(IntPtr jb, IntPtr keys_elems, int keys_len) + => SafeExecution(() => Native.JsonbDeleteArray(jb, keys_elems, keys_len)); + + public static IntPtr JsonbDeleteIndex(IntPtr jb, int idx) + => SafeExecution(() => Native.JsonbDeleteIndex(jb, idx)); + + public static IntPtr JsonbDeletePath(IntPtr jb, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.JsonbDeletePath(jb, path_elems, path_len)); + + public static IntPtr JsonbInsert(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool after) + => SafeExecution(() => Native.JsonbInsert(jb, path_elems, path_len, newjb, after)); + + public static IntPtr JsonbPretty(IntPtr jb) + => SafeExecution(() => Native.JsonbPretty(jb)); + + public static IntPtr JsonbSet(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool create) + => SafeExecution(() => Native.JsonbSet(jb, path_elems, path_len, newjb, create)); + + public static IntPtr JsonbSetLax(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool create, IntPtr handle_null) + => SafeExecution(() => Native.JsonbSetLax(jb, path_elems, path_len, newjb, create, handle_null)); + + public static IntPtr JsonbStripNulls(IntPtr jb, bool strip_in_arrays) + => SafeExecution(() => Native.JsonbStripNulls(jb, strip_in_arrays)); + + public static int JsonbCmp(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbCmp(jb1, jb2)); + + public static bool JsonbEq(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbEq(jb1, jb2)); + + public static bool JsonbGe(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbGe(jb1, jb2)); + + public static bool JsonbGt(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbGt(jb1, jb2)); + + public static bool JsonbLe(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbLe(jb1, jb2)); + + public static bool JsonbLt(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbLt(jb1, jb2)); + + public static bool JsonbNe(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.JsonbNe(jb1, jb2)); + + public static int JsonbPathExists(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.JsonbPathExists(jb, jp, vars, silent, tz)); + + public static bool JsonbPathMatch(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.JsonbPathMatch(jb, jp, vars, silent, tz)); + + public static IntPtr[] JsonbPathQueryAll(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonbPathQueryAll(jb, jp, vars, silent, tz, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr JsonbPathQueryArray(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.JsonbPathQueryArray(jb, jp, vars, silent, tz)); + + public static IntPtr JsonbPathQueryFirst(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.JsonbPathQueryFirst(jb, jp, vars, silent, tz)); + + public static IntPtr JsonpathIn(string str) + => SafeExecution(() => Native.JsonpathIn(str)); + + public static IntPtr JsonpathCopy(IntPtr jp) + => SafeExecution(() => Native.JsonpathCopy(jp)); + + public static string JsonpathOut(IntPtr jp) + => SafeExecution(() => Native.JsonpathOut(jp)); + + public static IntPtr JsonbsetIn(string str) + => SafeExecution(() => Native.JsonbsetIn(str)); + + public static string JsonbsetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.JsonbsetOut(s, maxdd)); + + public static IntPtr JsonbsetMake(IntPtr values, int count) + => SafeExecution(() => Native.JsonbsetMake(values, count)); + + public static IntPtr JsonbToSet(IntPtr jb) + => SafeExecution(() => Native.JsonbToSet(jb)); + + public static IntPtr JsonbsetEndValue(IntPtr s) + => SafeExecution(() => Native.JsonbsetEndValue(s)); + + public static IntPtr JsonbsetStartValue(IntPtr s) + => SafeExecution(() => Native.JsonbsetStartValue(s)); + + public static bool JsonbsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.JsonbsetValueN(s, n, result)); + + public static IntPtr[] JsonbsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonbsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr ConcatJsonbsetJsonb(IntPtr s, IntPtr jb, bool invert) + => SafeExecution(() => Native.ConcatJsonbsetJsonb(s, jb, invert)); + + public static IntPtr JsonbsetArrayLength(IntPtr set) + => SafeExecution(() => Native.JsonbsetArrayLength(set)); + + public static IntPtr JsonbsetObjectField(IntPtr set, IntPtr key, bool astext, int null_handle) + => SafeExecution(() => Native.JsonbsetObjectField(set, key, astext, null_handle)); + + public static IntPtr JsonbsetArrayElement(IntPtr set, int idx, bool astext, int null_handle) + => SafeExecution(() => Native.JsonbsetArrayElement(set, idx, astext, null_handle)); + + public static IntPtr JsonbsetDeleteIndex(IntPtr set, int idx) + => SafeExecution(() => Native.JsonbsetDeleteIndex(set, idx)); + + public static IntPtr JsonbsetDelete(IntPtr set, IntPtr key) + => SafeExecution(() => Native.JsonbsetDelete(set, key)); + + public static IntPtr JsonbsetDeleteArray(IntPtr set, IntPtr keys, int count) + => SafeExecution(() => Native.JsonbsetDeleteArray(set, keys, count)); + + public static IntPtr[] JsonbsetExists(IntPtr set, IntPtr key) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonbsetExists(set, key, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr JsonbsetExistsArray(IntPtr set, IntPtr keys, int count, bool any, IntPtr rescount) + => SafeExecution(() => Native.JsonbsetExistsArray(set, keys, count, any, rescount)); + + public static IntPtr JsonbsetSet(IntPtr set, IntPtr keys, int count, IntPtr newjb, bool create, IntPtr null_handle, bool lax) + => SafeExecution(() => Native.JsonbsetSet(set, keys, count, newjb, create, null_handle, lax)); + + public static IntPtr JsonbsetToAlphanumset(IntPtr set, string key, int settype, int null_handle) + => SafeExecution(() => Native.JsonbsetToAlphanumset(set, key, settype, null_handle)); + + public static IntPtr JsonbsetToIntset(IntPtr set, string key, int null_handle) + => SafeExecution(() => Native.JsonbsetToIntset(set, key, null_handle)); + + public static IntPtr JsonbsetToBigintset(IntPtr set, string key, int null_handle) + => SafeExecution(() => Native.JsonbsetToBigintset(set, key, null_handle)); + + public static IntPtr JsonbsetToFloatset(IntPtr set, string key, int null_handle) + => SafeExecution(() => Native.JsonbsetToFloatset(set, key, null_handle)); + + public static IntPtr JsonbsetToTextsetKey(IntPtr set, string key, int null_handle) + => SafeExecution(() => Native.JsonbsetToTextsetKey(set, key, null_handle)); + + public static IntPtr JsonbsetStripNulls(IntPtr set, bool strip_in_arrays) + => SafeExecution(() => Native.JsonbsetStripNulls(set, strip_in_arrays)); + + public static IntPtr JsonbsetPretty(IntPtr set) + => SafeExecution(() => Native.JsonbsetPretty(set)); + + public static IntPtr JsonbsetDeletePath(IntPtr set, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.JsonbsetDeletePath(set, path_elems, path_len)); + + public static IntPtr JsonbsetExtractPath(IntPtr set, IntPtr path_elems, int path_len, bool astext, int null_handle) + => SafeExecution(() => Native.JsonbsetExtractPath(set, path_elems, path_len, astext, null_handle)); + + public static IntPtr JsonbsetInsert(IntPtr set, IntPtr path_elems, int path_len, IntPtr newjb, bool after) + => SafeExecution(() => Native.JsonbsetInsert(set, path_elems, path_len, newjb, after)); + + public static IntPtr[] JsonbsetPathExists(IntPtr set, IntPtr jp, IntPtr vars, bool silent, bool tz) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonbsetPathExists(set, jp, vars, silent, tz, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] JsonbsetPathMatch(IntPtr set, IntPtr jp, IntPtr vars, bool silent, bool tz) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.JsonbsetPathMatch(set, jp, vars, silent, tz, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr JsonbsetPathQueryArray(IntPtr set, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.JsonbsetPathQueryArray(set, jp, vars, silent, tz)); + + public static IntPtr JsonbsetPathQueryFirst(IntPtr set, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.JsonbsetPathQueryFirst(set, jp, vars, silent, tz)); + + public static bool ContainedJsonbSet(IntPtr jb, IntPtr s) + => SafeExecution(() => Native.ContainedJsonbSet(jb, s)); + + public static bool ContainsSetJsonb(IntPtr s, IntPtr jb) + => SafeExecution(() => Native.ContainsSetJsonb(s, jb)); + + public static IntPtr IntersectionJsonbSet(IntPtr jb, IntPtr s) + => SafeExecution(() => Native.IntersectionJsonbSet(jb, s)); + + public static IntPtr IntersectionSetJsonb(IntPtr s, IntPtr jb) + => SafeExecution(() => Native.IntersectionSetJsonb(s, jb)); + + public static IntPtr JsonbUnionTransfn(IntPtr state, IntPtr jb) + => SafeExecution(() => Native.JsonbUnionTransfn(state, jb)); + + public static IntPtr MinusJsonbSet(IntPtr jb, IntPtr s) + => SafeExecution(() => Native.MinusJsonbSet(jb, s)); + + public static IntPtr MinusSetJsonb(IntPtr s, IntPtr jb) + => SafeExecution(() => Native.MinusSetJsonb(s, jb)); + + public static IntPtr UnionJsonbSet(IntPtr jb, IntPtr s) + => SafeExecution(() => Native.UnionJsonbSet(jb, s)); + + public static IntPtr UnionSetJsonb(IntPtr s, IntPtr jb) + => SafeExecution(() => Native.UnionSetJsonb(s, jb)); + + public static IntPtr TjsonbFromMfjson(string str) + => SafeExecution(() => Native.TjsonbFromMfjson(str)); + + public static IntPtr TjsonbIn(string str) + => SafeExecution(() => Native.TjsonbIn(str)); + + public static string TjsonbOut(IntPtr temp) + => SafeExecution(() => Native.TjsonbOut(temp)); + + public static IntPtr TjsonbinstIn(string str) + => SafeExecution(() => Native.TjsonbinstIn(str)); + + public static IntPtr TjsonbseqIn(string str, int interp) + => SafeExecution(() => Native.TjsonbseqIn(str, interp)); + + public static IntPtr TjsonbseqsetIn(string str) + => SafeExecution(() => Native.TjsonbseqsetIn(str)); + + public static IntPtr TjsonbFromBaseTemp(IntPtr jsonb, IntPtr temp) + => SafeExecution(() => Native.TjsonbFromBaseTemp(jsonb, temp)); + + public static IntPtr TjsonbinstMake(IntPtr jsonb, long t) + => SafeExecution(() => Native.TjsonbinstMake(jsonb, t)); + + public static IntPtr TjsonbseqFromBaseTstzset(IntPtr jsonb, IntPtr s) + => SafeExecution(() => Native.TjsonbseqFromBaseTstzset(jsonb, s)); + + public static IntPtr TjsonbseqFromBaseTstzspan(IntPtr jsonb, IntPtr sp) + => SafeExecution(() => Native.TjsonbseqFromBaseTstzspan(jsonb, sp)); + + public static IntPtr TjsonbseqsetFromBaseTstzspanset(IntPtr jsonb, IntPtr ss) + => SafeExecution(() => Native.TjsonbseqsetFromBaseTstzspanset(jsonb, ss)); + + public static IntPtr TjsonbToTtext(IntPtr temp) + => SafeExecution(() => Native.TjsonbToTtext(temp)); + + public static IntPtr TtextToTjsonb(IntPtr temp) + => SafeExecution(() => Native.TtextToTjsonb(temp)); + + public static IntPtr TjsonbEndValue(IntPtr temp) + => SafeExecution(() => Native.TjsonbEndValue(temp)); + + public static IntPtr TjsonbStartValue(IntPtr temp) + => SafeExecution(() => Native.TjsonbStartValue(temp)); + + public static bool TjsonbValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TjsonbValueAtTimestamptz(temp, t, strict, value)); + + public static bool TjsonbValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TjsonbValueN(temp, n, result)); + + public static IntPtr[] TjsonbValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TjsonbValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr ConcatTjsonbJsonb(IntPtr temp, IntPtr jb, bool invert) + => SafeExecution(() => Native.ConcatTjsonbJsonb(temp, jb, invert)); + + public static IntPtr ConcatTjsonbTjsonb(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ConcatTjsonbTjsonb(temp1, temp2)); + + public static IntPtr ContainsTjsonbJsonb(IntPtr temp, IntPtr jb, bool invert) + => SafeExecution(() => Native.ContainsTjsonbJsonb(temp, jb, invert)); + + public static IntPtr ContainsTjsonbTjsonb(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainsTjsonbTjsonb(temp1, temp2)); + + public static int NullHandleTypeFromString(string str) + => SafeExecution(() => Native.NullHandleTypeFromString(str)); + + public static IntPtr TjsonArrayElement(IntPtr temp, int idx, int null_handle) + => SafeExecution(() => Native.TjsonArrayElement(temp, idx, null_handle)); + + public static IntPtr TjsonArrayLength(IntPtr temp) + => SafeExecution(() => Native.TjsonArrayLength(temp)); + + public static IntPtr TjsonExtractPath(IntPtr temp, IntPtr path_elems, int path_len, int null_handle) + => SafeExecution(() => Native.TjsonExtractPath(temp, path_elems, path_len, null_handle)); + + public static IntPtr TjsonObjectField(IntPtr temp, IntPtr key, bool astext, int null_handle) + => SafeExecution(() => Native.TjsonObjectField(temp, key, astext, null_handle)); + + public static IntPtr TjsonStripNulls(IntPtr temp, bool strip_in_arrays) + => SafeExecution(() => Native.TjsonStripNulls(temp, strip_in_arrays)); + + public static IntPtr TjsonbArrayElement(IntPtr temp, int idx, bool astext, int null_handle) + => SafeExecution(() => Native.TjsonbArrayElement(temp, idx, astext, null_handle)); + + public static IntPtr TjsonbArrayLength(IntPtr temp) + => SafeExecution(() => Native.TjsonbArrayLength(temp)); + + public static IntPtr TjsonbDelete(IntPtr temp, IntPtr key) + => SafeExecution(() => Native.TjsonbDelete(temp, key)); + + public static IntPtr TjsonbDeleteArray(IntPtr temp, IntPtr keys, int count) + => SafeExecution(() => Native.TjsonbDeleteArray(temp, keys, count)); + + public static IntPtr TjsonbDeleteIndex(IntPtr temp, int idx) + => SafeExecution(() => Native.TjsonbDeleteIndex(temp, idx)); + + public static IntPtr TjsonbDeletePath(IntPtr temp, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.TjsonbDeletePath(temp, path_elems, path_len)); + + public static IntPtr TjsonbExists(IntPtr temp, IntPtr key) + => SafeExecution(() => Native.TjsonbExists(temp, key)); + + public static IntPtr TjsonbExistsAll(IntPtr temp, IntPtr keys, int count) + => SafeExecution(() => Native.TjsonbExistsAll(temp, keys, count)); + + public static IntPtr TjsonbExistsAny(IntPtr temp, IntPtr keys, int count) + => SafeExecution(() => Native.TjsonbExistsAny(temp, keys, count)); + + public static IntPtr TjsonbExistsArray(IntPtr temp, IntPtr keys, int count, bool any) + => SafeExecution(() => Native.TjsonbExistsArray(temp, keys, count, any)); + + public static IntPtr TjsonbExtractPath(IntPtr temp, IntPtr path_elems, int path_len, bool astext, int null_handle) + => SafeExecution(() => Native.TjsonbExtractPath(temp, path_elems, path_len, astext, null_handle)); + + public static IntPtr TjsonbInsert(IntPtr temp, IntPtr keys, int count, IntPtr newjb, bool after) + => SafeExecution(() => Native.TjsonbInsert(temp, keys, count, newjb, after)); + + public static IntPtr TjsonbObjectField(IntPtr temp, IntPtr key, bool astext, int null_handle) + => SafeExecution(() => Native.TjsonbObjectField(temp, key, astext, null_handle)); + + public static IntPtr TjsonbPathExists(IntPtr temp, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.TjsonbPathExists(temp, jp, vars, silent, tz)); + + public static IntPtr TjsonbPathMatch(IntPtr temp, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.TjsonbPathMatch(temp, jp, vars, silent, tz)); + + public static IntPtr TjsonbPathQueryArray(IntPtr temp, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.TjsonbPathQueryArray(temp, jp, vars, silent, tz)); + + public static IntPtr TjsonbPathQueryFirst(IntPtr temp, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.TjsonbPathQueryFirst(temp, jp, vars, silent, tz)); + + public static IntPtr TjsonbPretty(IntPtr temp) + => SafeExecution(() => Native.TjsonbPretty(temp)); + + public static IntPtr TjsonbSet(IntPtr temp, IntPtr keys, int count, IntPtr newjb, bool create, IntPtr handle_null, bool lax) + => SafeExecution(() => Native.TjsonbSet(temp, keys, count, newjb, create, handle_null, lax)); + + public static IntPtr TjsonbStripNulls(IntPtr temp, bool strip_in_arrays) + => SafeExecution(() => Native.TjsonbStripNulls(temp, strip_in_arrays)); + + public static IntPtr TjsonbToTbool(IntPtr temp, string key, int null_handle) + => SafeExecution(() => Native.TjsonbToTbool(temp, key, null_handle)); + + public static IntPtr TjsonbToTfloat(IntPtr temp, string key, int interp, int null_handle) + => SafeExecution(() => Native.TjsonbToTfloat(temp, key, interp, null_handle)); + + public static IntPtr TjsonbToTint(IntPtr temp, string key, int null_handle) + => SafeExecution(() => Native.TjsonbToTint(temp, key, null_handle)); + + public static IntPtr TjsonbToTtextKey(IntPtr temp, string key, int null_handle) + => SafeExecution(() => Native.TjsonbToTtextKey(temp, key, null_handle)); + + public static IntPtr TjsonbAtValue(IntPtr temp, IntPtr jsb) + => SafeExecution(() => Native.TjsonbAtValue(temp, jsb)); + + public static IntPtr TjsonbMinusValue(IntPtr temp, IntPtr jsb) + => SafeExecution(() => Native.TjsonbMinusValue(temp, jsb)); + + public static int AlwaysEqJsonbTjsonb(IntPtr jb, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqJsonbTjsonb(jb, temp)); + + public static int AlwaysEqTjsonbJsonb(IntPtr temp, IntPtr jb) + => SafeExecution(() => Native.AlwaysEqTjsonbJsonb(temp, jb)); + + public static int AlwaysEqTjsonbTjsonb(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTjsonbTjsonb(temp1, temp2)); + + public static int AlwaysNeJsonbTjsonb(IntPtr jb, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeJsonbTjsonb(jb, temp)); + + public static int AlwaysNeTjsonbJsonb(IntPtr temp, IntPtr jb) + => SafeExecution(() => Native.AlwaysNeTjsonbJsonb(temp, jb)); + + public static int AlwaysNeTjsonbTjsonb(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTjsonbTjsonb(temp1, temp2)); + + public static int EverEqJsonbTjsonb(IntPtr jb, IntPtr temp) + => SafeExecution(() => Native.EverEqJsonbTjsonb(jb, temp)); + + public static int EverEqTjsonbJsonb(IntPtr temp, IntPtr jb) + => SafeExecution(() => Native.EverEqTjsonbJsonb(temp, jb)); + + public static int EverEqTjsonbTjsonb(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTjsonbTjsonb(temp1, temp2)); + + public static int EverNeJsonbTjsonb(IntPtr jb, IntPtr temp) + => SafeExecution(() => Native.EverNeJsonbTjsonb(jb, temp)); + + public static int EverNeTjsonbJsonb(IntPtr temp, IntPtr jb) + => SafeExecution(() => Native.EverNeTjsonbJsonb(temp, jb)); + + public static int EverNeTjsonbTjsonb(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTjsonbTjsonb(temp1, temp2)); + + public static IntPtr TeqJsonbTjsonb(IntPtr jb, IntPtr temp) + => SafeExecution(() => Native.TeqJsonbTjsonb(jb, temp)); + + public static IntPtr TeqTjsonbJsonb(IntPtr temp, IntPtr jb) + => SafeExecution(() => Native.TeqTjsonbJsonb(temp, jb)); + + public static IntPtr TneJsonbTjsonb(IntPtr jb, IntPtr temp) + => SafeExecution(() => Native.TneJsonbTjsonb(jb, temp)); + + public static IntPtr TneTjsonbJsonb(IntPtr temp, IntPtr jb) + => SafeExecution(() => Native.TneTjsonbJsonb(temp, jb)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_npoint.g.cs b/MEOS.NET/Functions/Meos.meos_npoint.g.cs new file mode 100644 index 0000000..6773d3d --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_npoint.g.cs @@ -0,0 +1,429 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_npoint.h declares. + public static partial class Meos + { + public static string NpointAsEwkt(IntPtr np, int maxdd) + => SafeExecution(() => Native.NpointAsEwkt(np, maxdd)); + + public static string NpointAsHexwkb(IntPtr np, byte variant, IntPtr size_out) + => SafeExecution(() => Native.NpointAsHexwkb(np, variant, size_out)); + + public static string NpointAsText(IntPtr np, int maxdd) + => SafeExecution(() => Native.NpointAsText(np, maxdd)); + + public static IntPtr NpointAsWkb(IntPtr np, byte variant, IntPtr size_out) + => SafeExecution(() => Native.NpointAsWkb(np, variant, size_out)); + + public static IntPtr NpointFromHexwkb(string hexwkb) + => SafeExecution(() => Native.NpointFromHexwkb(hexwkb)); + + public static IntPtr NpointFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.NpointFromWkb(wkb, size)); + + public static IntPtr NpointIn(string str) + => SafeExecution(() => Native.NpointIn(str)); + + public static string NpointOut(IntPtr np, int maxdd) + => SafeExecution(() => Native.NpointOut(np, maxdd)); + + public static IntPtr NsegmentIn(string str) + => SafeExecution(() => Native.NsegmentIn(str)); + + public static string NsegmentOut(IntPtr ns, int maxdd) + => SafeExecution(() => Native.NsegmentOut(ns, maxdd)); + + public static IntPtr NpointMake(long rid, double pos) + => SafeExecution(() => Native.NpointMake(rid, pos)); + + public static IntPtr NsegmentMake(long rid, double pos1, double pos2) + => SafeExecution(() => Native.NsegmentMake(rid, pos1, pos2)); + + public static IntPtr GeompointToNpoint(IntPtr gs) + => SafeExecution(() => Native.GeompointToNpoint(gs)); + + public static IntPtr GeomToNsegment(IntPtr gs) + => SafeExecution(() => Native.GeomToNsegment(gs)); + + public static IntPtr NpointToGeompoint(IntPtr np) + => SafeExecution(() => Native.NpointToGeompoint(np)); + + public static IntPtr NpointToNsegment(IntPtr np) + => SafeExecution(() => Native.NpointToNsegment(np)); + + public static IntPtr NpointToStbox(IntPtr np) + => SafeExecution(() => Native.NpointToStbox(np)); + + public static IntPtr NsegmentToGeom(IntPtr ns) + => SafeExecution(() => Native.NsegmentToGeom(ns)); + + public static IntPtr NsegmentToStbox(IntPtr ns) + => SafeExecution(() => Native.NsegmentToStbox(ns)); + + public static uint NpointHash(IntPtr np) + => SafeExecution(() => Native.NpointHash(np)); + + public static ulong NpointHashExtended(IntPtr np, ulong seed) + => SafeExecution(() => Native.NpointHashExtended(np, seed)); + + public static double NpointPosition(IntPtr np) + => SafeExecution(() => Native.NpointPosition(np)); + + public static long NpointRoute(IntPtr np) + => SafeExecution(() => Native.NpointRoute(np)); + + public static double NsegmentEndPosition(IntPtr ns) + => SafeExecution(() => Native.NsegmentEndPosition(ns)); + + public static long NsegmentRoute(IntPtr ns) + => SafeExecution(() => Native.NsegmentRoute(ns)); + + public static double NsegmentStartPosition(IntPtr ns) + => SafeExecution(() => Native.NsegmentStartPosition(ns)); + + public static bool RouteExists(long rid) + => SafeExecution(() => Native.RouteExists(rid)); + + public static IntPtr RouteGeom(long rid) + => SafeExecution(() => Native.RouteGeom(rid)); + + public static double RouteLength(long rid) + => SafeExecution(() => Native.RouteLength(rid)); + + public static IntPtr NpointRound(IntPtr np, int maxdd) + => SafeExecution(() => Native.NpointRound(np, maxdd)); + + public static IntPtr NsegmentRound(IntPtr ns, int maxdd) + => SafeExecution(() => Native.NsegmentRound(ns, maxdd)); + + public static int GetSridWays() + => SafeExecution(() => Native.GetSridWays()); + + public static int NpointSrid(IntPtr np) + => SafeExecution(() => Native.NpointSrid(np)); + + public static int NsegmentSrid(IntPtr ns) + => SafeExecution(() => Native.NsegmentSrid(ns)); + + public static IntPtr NpointTimestamptzToStbox(IntPtr np, long t) + => SafeExecution(() => Native.NpointTimestamptzToStbox(np, t)); + + public static IntPtr NpointTstzspanToStbox(IntPtr np, IntPtr s) + => SafeExecution(() => Native.NpointTstzspanToStbox(np, s)); + + public static int NpointCmp(IntPtr np1, IntPtr np2) + => SafeExecution(() => Native.NpointCmp(np1, np2)); + + public static bool NpointEq(IntPtr np1, IntPtr np2) + => SafeExecution(() => Native.NpointEq(np1, np2)); + + public static bool NpointGe(IntPtr np1, IntPtr np2) + => SafeExecution(() => Native.NpointGe(np1, np2)); + + public static bool NpointGt(IntPtr np1, IntPtr np2) + => SafeExecution(() => Native.NpointGt(np1, np2)); + + public static bool NpointLe(IntPtr np1, IntPtr np2) + => SafeExecution(() => Native.NpointLe(np1, np2)); + + public static bool NpointLt(IntPtr np1, IntPtr np2) + => SafeExecution(() => Native.NpointLt(np1, np2)); + + public static bool NpointNe(IntPtr np1, IntPtr np2) + => SafeExecution(() => Native.NpointNe(np1, np2)); + + public static bool NpointSame(IntPtr np1, IntPtr np2) + => SafeExecution(() => Native.NpointSame(np1, np2)); + + public static int NsegmentCmp(IntPtr ns1, IntPtr ns2) + => SafeExecution(() => Native.NsegmentCmp(ns1, ns2)); + + public static bool NsegmentEq(IntPtr ns1, IntPtr ns2) + => SafeExecution(() => Native.NsegmentEq(ns1, ns2)); + + public static bool NsegmentGe(IntPtr ns1, IntPtr ns2) + => SafeExecution(() => Native.NsegmentGe(ns1, ns2)); + + public static bool NsegmentGt(IntPtr ns1, IntPtr ns2) + => SafeExecution(() => Native.NsegmentGt(ns1, ns2)); + + public static bool NsegmentLe(IntPtr ns1, IntPtr ns2) + => SafeExecution(() => Native.NsegmentLe(ns1, ns2)); + + public static bool NsegmentLt(IntPtr ns1, IntPtr ns2) + => SafeExecution(() => Native.NsegmentLt(ns1, ns2)); + + public static bool NsegmentNe(IntPtr ns1, IntPtr ns2) + => SafeExecution(() => Native.NsegmentNe(ns1, ns2)); + + public static IntPtr NpointsetIn(string str) + => SafeExecution(() => Native.NpointsetIn(str)); + + public static string NpointsetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.NpointsetOut(s, maxdd)); + + public static IntPtr NpointsetMake(IntPtr values, int count) + => SafeExecution(() => Native.NpointsetMake(values, count)); + + public static IntPtr NpointToSet(IntPtr np) + => SafeExecution(() => Native.NpointToSet(np)); + + public static IntPtr NpointsetEndValue(IntPtr s) + => SafeExecution(() => Native.NpointsetEndValue(s)); + + public static IntPtr NpointsetRoutes(IntPtr s) + => SafeExecution(() => Native.NpointsetRoutes(s)); + + public static IntPtr NpointsetStartValue(IntPtr s) + => SafeExecution(() => Native.NpointsetStartValue(s)); + + public static bool NpointsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.NpointsetValueN(s, n, result)); + + public static IntPtr[] NpointsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.NpointsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool ContainedNpointSet(IntPtr np, IntPtr s) + => SafeExecution(() => Native.ContainedNpointSet(np, s)); + + public static bool ContainsSetNpoint(IntPtr s, IntPtr np) + => SafeExecution(() => Native.ContainsSetNpoint(s, np)); + + public static IntPtr IntersectionNpointSet(IntPtr np, IntPtr s) + => SafeExecution(() => Native.IntersectionNpointSet(np, s)); + + public static IntPtr IntersectionSetNpoint(IntPtr s, IntPtr np) + => SafeExecution(() => Native.IntersectionSetNpoint(s, np)); + + public static IntPtr MinusNpointSet(IntPtr np, IntPtr s) + => SafeExecution(() => Native.MinusNpointSet(np, s)); + + public static IntPtr MinusSetNpoint(IntPtr s, IntPtr np) + => SafeExecution(() => Native.MinusSetNpoint(s, np)); + + public static IntPtr NpointUnionTransfn(IntPtr state, IntPtr np) + => SafeExecution(() => Native.NpointUnionTransfn(state, np)); + + public static IntPtr UnionNpointSet(IntPtr np, IntPtr s) + => SafeExecution(() => Native.UnionNpointSet(np, s)); + + public static IntPtr UnionSetNpoint(IntPtr s, IntPtr np) + => SafeExecution(() => Native.UnionSetNpoint(s, np)); + + public static IntPtr TnpointIn(string str) + => SafeExecution(() => Native.TnpointIn(str)); + + public static IntPtr TnpointFromMfjson(string mfjson) + => SafeExecution(() => Native.TnpointFromMfjson(mfjson)); + + public static string TnpointOut(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TnpointOut(temp, maxdd)); + + public static IntPtr TnpointinstMake(IntPtr np, long t) + => SafeExecution(() => Native.TnpointinstMake(np, t)); + + public static IntPtr TnpointFromBaseTemp(IntPtr np, IntPtr temp) + => SafeExecution(() => Native.TnpointFromBaseTemp(np, temp)); + + public static IntPtr TnpointseqFromBaseTstzset(IntPtr np, IntPtr s) + => SafeExecution(() => Native.TnpointseqFromBaseTstzset(np, s)); + + public static IntPtr TnpointseqFromBaseTstzspan(IntPtr np, IntPtr s, int interp) + => SafeExecution(() => Native.TnpointseqFromBaseTstzspan(np, s, interp)); + + public static IntPtr TnpointseqsetFromBaseTstzspanset(IntPtr np, IntPtr ss, int interp) + => SafeExecution(() => Native.TnpointseqsetFromBaseTstzspanset(np, ss, interp)); + + public static IntPtr TgeompointToTnpoint(IntPtr temp) + => SafeExecution(() => Native.TgeompointToTnpoint(temp)); + + public static IntPtr TnpointToTgeompoint(IntPtr temp) + => SafeExecution(() => Native.TnpointToTgeompoint(temp)); + + public static IntPtr TnpointCumulativeLength(IntPtr temp) + => SafeExecution(() => Native.TnpointCumulativeLength(temp)); + + public static IntPtr TnpointEndValue(IntPtr temp) + => SafeExecution(() => Native.TnpointEndValue(temp)); + + public static double TnpointLength(IntPtr temp) + => SafeExecution(() => Native.TnpointLength(temp)); + + public static IntPtr[] TnpointPositions(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TnpointPositions(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static long TnpointRoute(IntPtr temp) + => SafeExecution(() => Native.TnpointRoute(temp)); + + public static IntPtr TnpointRoutes(IntPtr temp) + => SafeExecution(() => Native.TnpointRoutes(temp)); + + public static IntPtr TnpointSpeed(IntPtr temp) + => SafeExecution(() => Native.TnpointSpeed(temp)); + + public static IntPtr TnpointStartValue(IntPtr temp) + => SafeExecution(() => Native.TnpointStartValue(temp)); + + public static IntPtr TnpointTrajectory(IntPtr temp) + => SafeExecution(() => Native.TnpointTrajectory(temp)); + + public static bool TnpointValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TnpointValueAtTimestamptz(temp, t, strict, value)); + + public static bool TnpointValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TnpointValueN(temp, n, result)); + + public static IntPtr[] TnpointValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TnpointValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TnpointTwcentroid(IntPtr temp) + => SafeExecution(() => Native.TnpointTwcentroid(temp)); + + public static IntPtr TnpointAtGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TnpointAtGeom(temp, gs)); + + public static IntPtr TnpointAtNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.TnpointAtNpoint(temp, np)); + + public static IntPtr TnpointAtNpointset(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TnpointAtNpointset(temp, s)); + + public static IntPtr TnpointAtStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TnpointAtStbox(temp, box, border_inc)); + + public static IntPtr TnpointMinusGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TnpointMinusGeom(temp, gs)); + + public static IntPtr TnpointMinusNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.TnpointMinusNpoint(temp, np)); + + public static IntPtr TnpointMinusNpointset(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TnpointMinusNpointset(temp, s)); + + public static IntPtr TnpointMinusStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TnpointMinusStbox(temp, box, border_inc)); + + public static IntPtr TdistanceTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.TdistanceTnpointNpoint(temp, np)); + + public static IntPtr TdistanceTnpointGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TdistanceTnpointGeo(temp, gs)); + + public static IntPtr TdistanceTnpointTnpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdistanceTnpointTnpoint(temp1, temp2)); + + public static double NadTnpointGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NadTnpointGeo(temp, gs)); + + public static double NadTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.NadTnpointNpoint(temp, np)); + + public static double NadTnpointStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTnpointStbox(temp, box)); + + public static double NadTnpointTnpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTnpointTnpoint(temp1, temp2)); + + public static IntPtr NaiTnpointGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NaiTnpointGeo(temp, gs)); + + public static IntPtr NaiTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.NaiTnpointNpoint(temp, np)); + + public static IntPtr NaiTnpointTnpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NaiTnpointTnpoint(temp1, temp2)); + + public static IntPtr ShortestlineTnpointGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.ShortestlineTnpointGeo(temp, gs)); + + public static IntPtr ShortestlineTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.ShortestlineTnpointNpoint(temp, np)); + + public static IntPtr ShortestlineTnpointTnpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ShortestlineTnpointTnpoint(temp1, temp2)); + + public static IntPtr TnpointTcentroidTransfn(IntPtr state, IntPtr temp) + => SafeExecution(() => Native.TnpointTcentroidTransfn(state, temp)); + + public static int AlwaysEqNpointTnpoint(IntPtr np, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqNpointTnpoint(np, temp)); + + public static int AlwaysEqTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.AlwaysEqTnpointNpoint(temp, np)); + + public static int AlwaysEqTnpointTnpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTnpointTnpoint(temp1, temp2)); + + public static int AlwaysNeNpointTnpoint(IntPtr np, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeNpointTnpoint(np, temp)); + + public static int AlwaysNeTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.AlwaysNeTnpointNpoint(temp, np)); + + public static int AlwaysNeTnpointTnpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTnpointTnpoint(temp1, temp2)); + + public static int EverEqNpointTnpoint(IntPtr np, IntPtr temp) + => SafeExecution(() => Native.EverEqNpointTnpoint(np, temp)); + + public static int EverEqTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.EverEqTnpointNpoint(temp, np)); + + public static int EverEqTnpointTnpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTnpointTnpoint(temp1, temp2)); + + public static int EverNeNpointTnpoint(IntPtr np, IntPtr temp) + => SafeExecution(() => Native.EverNeNpointTnpoint(np, temp)); + + public static int EverNeTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.EverNeTnpointNpoint(temp, np)); + + public static int EverNeTnpointTnpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTnpointTnpoint(temp1, temp2)); + + public static IntPtr TeqTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.TeqTnpointNpoint(temp, np)); + + public static IntPtr TneTnpointNpoint(IntPtr temp, IntPtr np) + => SafeExecution(() => Native.TneTnpointNpoint(temp, np)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_pointcloud.g.cs b/MEOS.NET/Functions/Meos.meos_pointcloud.g.cs new file mode 100644 index 0000000..31019d2 --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_pointcloud.g.cs @@ -0,0 +1,702 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_pointcloud.h declares. + public static partial class Meos + { + public static IntPtr PcpointHexIn(string str) + => SafeExecution(() => Native.PcpointHexIn(str)); + + public static string PcpointHexOut(IntPtr pt, int maxdd) + => SafeExecution(() => Native.PcpointHexOut(pt, maxdd)); + + public static IntPtr PcpointFromHexwkb(string hexwkb) + => SafeExecution(() => Native.PcpointFromHexwkb(hexwkb)); + + public static string PcpointAsHexwkb(IntPtr pt) + => SafeExecution(() => Native.PcpointAsHexwkb(pt)); + + public static IntPtr PcpointMake(uint pcid, IntPtr values, int count) + => SafeExecution(() => Native.PcpointMake(pcid, values, count)); + + public static IntPtr PcpointCopy(IntPtr pt) + => SafeExecution(() => Native.PcpointCopy(pt)); + + public static uint PcpointGetPcid(IntPtr pt) + => SafeExecution(() => Native.PcpointGetPcid(pt)); + + public static uint PcpointHash(IntPtr pt) + => SafeExecution(() => Native.PcpointHash(pt)); + + public static ulong PcpointHashExtended(IntPtr pt, ulong seed) + => SafeExecution(() => Native.PcpointHashExtended(pt, seed)); + + public static bool PcpointGetX(IntPtr pt, IntPtr schema, IntPtr @out) + => SafeExecution(() => Native.PcpointGetX(pt, schema, @out)); + + public static bool PcpointGetY(IntPtr pt, IntPtr schema, IntPtr @out) + => SafeExecution(() => Native.PcpointGetY(pt, schema, @out)); + + public static bool PcpointGetZ(IntPtr pt, IntPtr schema, IntPtr @out) + => SafeExecution(() => Native.PcpointGetZ(pt, schema, @out)); + + public static bool PcpointGetDim(IntPtr pt, IntPtr schema, string name, IntPtr @out) + => SafeExecution(() => Native.PcpointGetDim(pt, schema, name, @out)); + + public static IntPtr PcpointToTpcbox(IntPtr pt, IntPtr schema) + => SafeExecution(() => Native.PcpointToTpcbox(pt, schema)); + + public static IntPtr MeosPcSchema(uint pcid) + => SafeExecution(() => Native.MeosPcSchema(pcid)); + + public static void MeosPcSchemaRegister(uint pcid, IntPtr schema) + => SafeExecution(() => Native.MeosPcSchemaRegister(pcid, schema)); + + public static IntPtr MeosPcSchemaFromDims(uint pcid, int srid, string compression, IntPtr dims, int ndims) + => SafeExecution(() => Native.MeosPcSchemaFromDims(pcid, srid, compression, dims, ndims)); + + public static bool MeosPcSchemaRegisterDims(uint pcid, int srid, string compression, IntPtr dims, int ndims) + => SafeExecution(() => Native.MeosPcSchemaRegisterDims(pcid, srid, compression, dims, ndims)); + + public static void MeosPcSchemaRegisterXml(uint pcid, IntPtr schema, string xml_text) + => SafeExecution(() => Native.MeosPcSchemaRegisterXml(pcid, schema, xml_text)); + + public static string? MeosPcSchemaXml(uint pcid) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.MeosPcSchemaXml(pcid))); + + public static void MeosPcSchemaClear() + => SafeExecution(() => Native.MeosPcSchemaClear()); + + public static int MeosPcSchemaSrid(uint pcid) + => SafeExecution(() => Native.MeosPcSchemaSrid(pcid)); + + public static string? MeosPcSchemaCompression(uint pcid) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.MeosPcSchemaCompression(pcid))); + + public static int MeosPcSchemaNdims(uint pcid) + => SafeExecution(() => Native.MeosPcSchemaNdims(pcid)); + + public static void MeosSetPointcloudSchemasXml(string path) + => SafeExecution(() => Native.MeosSetPointcloudSchemasXml(path)); + + public static int PcpointCmp(IntPtr pt1, IntPtr pt2) + => SafeExecution(() => Native.PcpointCmp(pt1, pt2)); + + public static bool PcpointEq(IntPtr pt1, IntPtr pt2) + => SafeExecution(() => Native.PcpointEq(pt1, pt2)); + + public static bool PcpointNe(IntPtr pt1, IntPtr pt2) + => SafeExecution(() => Native.PcpointNe(pt1, pt2)); + + public static bool PcpointLt(IntPtr pt1, IntPtr pt2) + => SafeExecution(() => Native.PcpointLt(pt1, pt2)); + + public static bool PcpointLe(IntPtr pt1, IntPtr pt2) + => SafeExecution(() => Native.PcpointLe(pt1, pt2)); + + public static bool PcpointGt(IntPtr pt1, IntPtr pt2) + => SafeExecution(() => Native.PcpointGt(pt1, pt2)); + + public static bool PcpointGe(IntPtr pt1, IntPtr pt2) + => SafeExecution(() => Native.PcpointGe(pt1, pt2)); + + public static IntPtr PcpatchHexIn(string str) + => SafeExecution(() => Native.PcpatchHexIn(str)); + + public static string PcpatchHexOut(IntPtr pa, int maxdd) + => SafeExecution(() => Native.PcpatchHexOut(pa, maxdd)); + + public static IntPtr PcpatchFromHexwkb(string hexwkb) + => SafeExecution(() => Native.PcpatchFromHexwkb(hexwkb)); + + public static string PcpatchAsHexwkb(IntPtr pa) + => SafeExecution(() => Native.PcpatchAsHexwkb(pa)); + + public static IntPtr PcpatchMake(IntPtr points, int count) + => SafeExecution(() => Native.PcpatchMake(points, count)); + + public static IntPtr PcpatchMakeCoords(uint pcid, IntPtr values, int count) + => SafeExecution(() => Native.PcpatchMakeCoords(pcid, values, count)); + + public static IntPtr PcpatchCopy(IntPtr pa) + => SafeExecution(() => Native.PcpatchCopy(pa)); + + public static uint PcpatchGetPcid(IntPtr pa) + => SafeExecution(() => Native.PcpatchGetPcid(pa)); + + public static uint PcpatchNpoints(IntPtr pa) + => SafeExecution(() => Native.PcpatchNpoints(pa)); + + public static uint PcpatchHash(IntPtr pa) + => SafeExecution(() => Native.PcpatchHash(pa)); + + public static ulong PcpatchHashExtended(IntPtr pa, ulong seed) + => SafeExecution(() => Native.PcpatchHashExtended(pa, seed)); + + public static IntPtr PcpatchToGeom(IntPtr pa) + => SafeExecution(() => Native.PcpatchToGeom(pa)); + + public static int PcpatchCmp(IntPtr pa1, IntPtr pa2) + => SafeExecution(() => Native.PcpatchCmp(pa1, pa2)); + + public static bool PcpatchEq(IntPtr pa1, IntPtr pa2) + => SafeExecution(() => Native.PcpatchEq(pa1, pa2)); + + public static bool PcpatchNe(IntPtr pa1, IntPtr pa2) + => SafeExecution(() => Native.PcpatchNe(pa1, pa2)); + + public static bool PcpatchLt(IntPtr pa1, IntPtr pa2) + => SafeExecution(() => Native.PcpatchLt(pa1, pa2)); + + public static bool PcpatchLe(IntPtr pa1, IntPtr pa2) + => SafeExecution(() => Native.PcpatchLe(pa1, pa2)); + + public static bool PcpatchGt(IntPtr pa1, IntPtr pa2) + => SafeExecution(() => Native.PcpatchGt(pa1, pa2)); + + public static bool PcpatchGe(IntPtr pa1, IntPtr pa2) + => SafeExecution(() => Native.PcpatchGe(pa1, pa2)); + + public static IntPtr PcpointsetIn(string str) + => SafeExecution(() => Native.PcpointsetIn(str)); + + public static string PcpointsetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.PcpointsetOut(s, maxdd)); + + public static IntPtr PcpointsetMake(IntPtr values, int count) + => SafeExecution(() => Native.PcpointsetMake(values, count)); + + public static IntPtr PcpointToSet(IntPtr pt) + => SafeExecution(() => Native.PcpointToSet(pt)); + + public static IntPtr PcpointsetStartValue(IntPtr s) + => SafeExecution(() => Native.PcpointsetStartValue(s)); + + public static IntPtr PcpointsetEndValue(IntPtr s) + => SafeExecution(() => Native.PcpointsetEndValue(s)); + + public static bool PcpointsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.PcpointsetValueN(s, n, result)); + + public static IntPtr[] PcpointsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PcpointsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool ContainsSetPcpoint(IntPtr s, IntPtr pt) + => SafeExecution(() => Native.ContainsSetPcpoint(s, pt)); + + public static bool ContainedPcpointSet(IntPtr pt, IntPtr s) + => SafeExecution(() => Native.ContainedPcpointSet(pt, s)); + + public static IntPtr IntersectionPcpointSet(IntPtr pt, IntPtr s) + => SafeExecution(() => Native.IntersectionPcpointSet(pt, s)); + + public static IntPtr IntersectionSetPcpoint(IntPtr s, IntPtr pt) + => SafeExecution(() => Native.IntersectionSetPcpoint(s, pt)); + + public static IntPtr MinusPcpointSet(IntPtr pt, IntPtr s) + => SafeExecution(() => Native.MinusPcpointSet(pt, s)); + + public static IntPtr MinusSetPcpoint(IntPtr s, IntPtr pt) + => SafeExecution(() => Native.MinusSetPcpoint(s, pt)); + + public static IntPtr UnionPcpointSet(IntPtr pt, IntPtr s) + => SafeExecution(() => Native.UnionPcpointSet(pt, s)); + + public static IntPtr UnionSetPcpoint(IntPtr s, IntPtr pt) + => SafeExecution(() => Native.UnionSetPcpoint(s, pt)); + + public static IntPtr PcpointUnionTransfn(IntPtr state, IntPtr pt) + => SafeExecution(() => Native.PcpointUnionTransfn(state, pt)); + + public static IntPtr PcpatchsetIn(string str) + => SafeExecution(() => Native.PcpatchsetIn(str)); + + public static string PcpatchsetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.PcpatchsetOut(s, maxdd)); + + public static IntPtr PcpatchsetMake(IntPtr values, int count) + => SafeExecution(() => Native.PcpatchsetMake(values, count)); + + public static IntPtr PcpatchToSet(IntPtr pa) + => SafeExecution(() => Native.PcpatchToSet(pa)); + + public static IntPtr PcpatchsetStartValue(IntPtr s) + => SafeExecution(() => Native.PcpatchsetStartValue(s)); + + public static IntPtr PcpatchsetEndValue(IntPtr s) + => SafeExecution(() => Native.PcpatchsetEndValue(s)); + + public static bool PcpatchsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.PcpatchsetValueN(s, n, result)); + + public static IntPtr[] PcpatchsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PcpatchsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool ContainsSetPcpatch(IntPtr s, IntPtr pa) + => SafeExecution(() => Native.ContainsSetPcpatch(s, pa)); + + public static bool ContainedPcpatchSet(IntPtr pa, IntPtr s) + => SafeExecution(() => Native.ContainedPcpatchSet(pa, s)); + + public static IntPtr IntersectionPcpatchSet(IntPtr pa, IntPtr s) + => SafeExecution(() => Native.IntersectionPcpatchSet(pa, s)); + + public static IntPtr IntersectionSetPcpatch(IntPtr s, IntPtr pa) + => SafeExecution(() => Native.IntersectionSetPcpatch(s, pa)); + + public static IntPtr MinusPcpatchSet(IntPtr pa, IntPtr s) + => SafeExecution(() => Native.MinusPcpatchSet(pa, s)); + + public static IntPtr MinusSetPcpatch(IntPtr s, IntPtr pa) + => SafeExecution(() => Native.MinusSetPcpatch(s, pa)); + + public static IntPtr UnionPcpatchSet(IntPtr pa, IntPtr s) + => SafeExecution(() => Native.UnionPcpatchSet(pa, s)); + + public static IntPtr UnionSetPcpatch(IntPtr s, IntPtr pa) + => SafeExecution(() => Native.UnionSetPcpatch(s, pa)); + + public static IntPtr PcpatchUnionTransfn(IntPtr state, IntPtr pa) + => SafeExecution(() => Native.PcpatchUnionTransfn(state, pa)); + + public static IntPtr TpcboxIn(string str) + => SafeExecution(() => Native.TpcboxIn(str)); + + public static string TpcboxOut(IntPtr box, int maxdd) + => SafeExecution(() => Native.TpcboxOut(box, maxdd)); + + public static IntPtr TpcboxMake(bool hasx, bool hasz, bool hast, bool geodetic, int srid, uint pcid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr period) + => SafeExecution(() => Native.TpcboxMake(hasx, hasz, hast, geodetic, srid, pcid, xmin, xmax, ymin, ymax, zmin, zmax, period)); + + public static IntPtr TpcboxCopy(IntPtr box) + => SafeExecution(() => Native.TpcboxCopy(box)); + + public static IntPtr PcpatchToTpcbox(IntPtr pa, int srid) + => SafeExecution(() => Native.PcpatchToTpcbox(pa, srid)); + + public static bool TpcboxHasx(IntPtr box) + => SafeExecution(() => Native.TpcboxHasx(box)); + + public static bool TpcboxHasz(IntPtr box) + => SafeExecution(() => Native.TpcboxHasz(box)); + + public static bool TpcboxHast(IntPtr box) + => SafeExecution(() => Native.TpcboxHast(box)); + + public static bool TpcboxGeodetic(IntPtr box) + => SafeExecution(() => Native.TpcboxGeodetic(box)); + + public static bool TpcboxXmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxXmin(box, result)); + + public static bool TpcboxXmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxXmax(box, result)); + + public static bool TpcboxYmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxYmin(box, result)); + + public static bool TpcboxYmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxYmax(box, result)); + + public static bool TpcboxZmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxZmin(box, result)); + + public static bool TpcboxZmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxZmax(box, result)); + + public static bool TpcboxTmin(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxTmin(box, result)); + + public static bool TpcboxTminInc(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxTminInc(box, result)); + + public static bool TpcboxTmax(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxTmax(box, result)); + + public static bool TpcboxTmaxInc(IntPtr box, IntPtr result) + => SafeExecution(() => Native.TpcboxTmaxInc(box, result)); + + public static int TpcboxSrid(IntPtr box) + => SafeExecution(() => Native.TpcboxSrid(box)); + + public static uint TpcboxPcid(IntPtr box) + => SafeExecution(() => Native.TpcboxPcid(box)); + + public static IntPtr TpcboxToStbox(IntPtr box) + => SafeExecution(() => Native.TpcboxToStbox(box)); + + public static IntPtr TpcboxRound(IntPtr box, int maxdd) + => SafeExecution(() => Native.TpcboxRound(box, maxdd)); + + public static IntPtr TpcboxSetSrid(IntPtr box, int srid) + => SafeExecution(() => Native.TpcboxSetSrid(box, srid)); + + public static IntPtr UnionTpcboxTpcbox(IntPtr box1, IntPtr box2, bool strict) + => SafeExecution(() => Native.UnionTpcboxTpcbox(box1, box2, strict)); + + public static bool InterTpcboxTpcbox(IntPtr box1, IntPtr box2, IntPtr result) + => SafeExecution(() => Native.InterTpcboxTpcbox(box1, box2, result)); + + public static IntPtr IntersectionTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.IntersectionTpcboxTpcbox(box1, box2)); + + public static bool ContainsTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.ContainsTpcboxTpcbox(box1, box2)); + + public static bool ContainedTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.ContainedTpcboxTpcbox(box1, box2)); + + public static bool OverlapsTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverlapsTpcboxTpcbox(box1, box2)); + + public static bool SameTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.SameTpcboxTpcbox(box1, box2)); + + public static bool AdjacentTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.AdjacentTpcboxTpcbox(box1, box2)); + + public static int TpcboxCmp(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TpcboxCmp(box1, box2)); + + public static bool TpcboxEq(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TpcboxEq(box1, box2)); + + public static bool TpcboxNe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TpcboxNe(box1, box2)); + + public static bool TpcboxLt(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TpcboxLt(box1, box2)); + + public static bool TpcboxLe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TpcboxLe(box1, box2)); + + public static bool TpcboxGt(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TpcboxGt(box1, box2)); + + public static bool TpcboxGe(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.TpcboxGe(box1, box2)); + + public static bool LeftTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.LeftTpcboxTpcbox(box1, box2)); + + public static bool OverleftTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverleftTpcboxTpcbox(box1, box2)); + + public static bool RightTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.RightTpcboxTpcbox(box1, box2)); + + public static bool OverrightTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverrightTpcboxTpcbox(box1, box2)); + + public static bool BelowTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.BelowTpcboxTpcbox(box1, box2)); + + public static bool OverbelowTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverbelowTpcboxTpcbox(box1, box2)); + + public static bool AboveTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.AboveTpcboxTpcbox(box1, box2)); + + public static bool OveraboveTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OveraboveTpcboxTpcbox(box1, box2)); + + public static bool FrontTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.FrontTpcboxTpcbox(box1, box2)); + + public static bool OverfrontTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverfrontTpcboxTpcbox(box1, box2)); + + public static bool BackTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.BackTpcboxTpcbox(box1, box2)); + + public static bool OverbackTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverbackTpcboxTpcbox(box1, box2)); + + public static bool BeforeTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.BeforeTpcboxTpcbox(box1, box2)); + + public static bool OverbeforeTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverbeforeTpcboxTpcbox(box1, box2)); + + public static bool AfterTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.AfterTpcboxTpcbox(box1, box2)); + + public static bool OverafterTpcboxTpcbox(IntPtr box1, IntPtr box2) + => SafeExecution(() => Native.OverafterTpcboxTpcbox(box1, box2)); + + public static IntPtr TpointcloudToTgeompoint(IntPtr temp) + => SafeExecution(() => Native.TpointcloudToTgeompoint(temp)); + + public static IntPtr TpcpatchToTgeometry(IntPtr temp) + => SafeExecution(() => Native.TpcpatchToTgeometry(temp)); + + public static IntPtr TpcpointinstMake(IntPtr pt, long t) + => SafeExecution(() => Native.TpcpointinstMake(pt, t)); + + public static IntPtr TpcpointseqFromBaseTstzset(IntPtr pt, IntPtr s) + => SafeExecution(() => Native.TpcpointseqFromBaseTstzset(pt, s)); + + public static IntPtr TpcpointseqFromBaseTstzspan(IntPtr pt, IntPtr sp) + => SafeExecution(() => Native.TpcpointseqFromBaseTstzspan(pt, sp)); + + public static IntPtr TpcpointseqsetFromBaseTstzspanset(IntPtr pt, IntPtr ss) + => SafeExecution(() => Native.TpcpointseqsetFromBaseTstzspanset(pt, ss)); + + public static IntPtr TpcpointFromBaseTemp(IntPtr pt, IntPtr temp) + => SafeExecution(() => Native.TpcpointFromBaseTemp(pt, temp)); + + public static IntPtr TpcpointStartValue(IntPtr temp) + => SafeExecution(() => Native.TpcpointStartValue(temp)); + + public static IntPtr TpcpointEndValue(IntPtr temp) + => SafeExecution(() => Native.TpcpointEndValue(temp)); + + public static bool TpcpointValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TpcpointValueN(temp, n, result)); + + public static IntPtr[] TpcpointValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TpcpointValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool TpcpointValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TpcpointValueAtTimestamptz(temp, t, strict, value)); + + public static IntPtr TpcpointAtValue(IntPtr temp, IntPtr pt) + => SafeExecution(() => Native.TpcpointAtValue(temp, pt)); + + public static IntPtr TpcpointMinusValue(IntPtr temp, IntPtr pt) + => SafeExecution(() => Native.TpcpointMinusValue(temp, pt)); + + public static IntPtr TpcpatchinstMake(IntPtr pa, long t) + => SafeExecution(() => Native.TpcpatchinstMake(pa, t)); + + public static IntPtr TpcpatchseqFromBaseTstzset(IntPtr pa, IntPtr s) + => SafeExecution(() => Native.TpcpatchseqFromBaseTstzset(pa, s)); + + public static IntPtr TpcpatchseqFromBaseTstzspan(IntPtr pa, IntPtr sp) + => SafeExecution(() => Native.TpcpatchseqFromBaseTstzspan(pa, sp)); + + public static IntPtr TpcpatchseqsetFromBaseTstzspanset(IntPtr pa, IntPtr ss) + => SafeExecution(() => Native.TpcpatchseqsetFromBaseTstzspanset(pa, ss)); + + public static IntPtr TpcpatchFromBaseTemp(IntPtr pa, IntPtr temp) + => SafeExecution(() => Native.TpcpatchFromBaseTemp(pa, temp)); + + public static IntPtr TpcpatchStartValue(IntPtr temp) + => SafeExecution(() => Native.TpcpatchStartValue(temp)); + + public static IntPtr TpcpatchEndValue(IntPtr temp) + => SafeExecution(() => Native.TpcpatchEndValue(temp)); + + public static bool TpcpatchValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TpcpatchValueN(temp, n, result)); + + public static IntPtr[] TpcpatchValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TpcpatchValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool TpcpatchValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr value) + => SafeExecution(() => Native.TpcpatchValueAtTimestamptz(temp, t, strict, value)); + + public static IntPtr TpcpatchAtValue(IntPtr temp, IntPtr pa) + => SafeExecution(() => Native.TpcpatchAtValue(temp, pa)); + + public static IntPtr TpcpatchMinusValue(IntPtr temp, IntPtr pa) + => SafeExecution(() => Native.TpcpatchMinusValue(temp, pa)); + + public static int EverEqPcpointTpcpoint(IntPtr pt, IntPtr temp) + => SafeExecution(() => Native.EverEqPcpointTpcpoint(pt, temp)); + + public static int EverEqTpcpointPcpoint(IntPtr temp, IntPtr pt) + => SafeExecution(() => Native.EverEqTpcpointPcpoint(temp, pt)); + + public static int EverEqTpcpointTpcpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTpcpointTpcpoint(temp1, temp2)); + + public static int EverNePcpointTpcpoint(IntPtr pt, IntPtr temp) + => SafeExecution(() => Native.EverNePcpointTpcpoint(pt, temp)); + + public static int EverNeTpcpointPcpoint(IntPtr temp, IntPtr pt) + => SafeExecution(() => Native.EverNeTpcpointPcpoint(temp, pt)); + + public static int EverNeTpcpointTpcpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTpcpointTpcpoint(temp1, temp2)); + + public static int AlwaysEqPcpointTpcpoint(IntPtr pt, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqPcpointTpcpoint(pt, temp)); + + public static int AlwaysEqTpcpointPcpoint(IntPtr temp, IntPtr pt) + => SafeExecution(() => Native.AlwaysEqTpcpointPcpoint(temp, pt)); + + public static int AlwaysEqTpcpointTpcpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTpcpointTpcpoint(temp1, temp2)); + + public static int AlwaysNePcpointTpcpoint(IntPtr pt, IntPtr temp) + => SafeExecution(() => Native.AlwaysNePcpointTpcpoint(pt, temp)); + + public static int AlwaysNeTpcpointPcpoint(IntPtr temp, IntPtr pt) + => SafeExecution(() => Native.AlwaysNeTpcpointPcpoint(temp, pt)); + + public static int AlwaysNeTpcpointTpcpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTpcpointTpcpoint(temp1, temp2)); + + public static int EverEqPcpatchTpcpatch(IntPtr pa, IntPtr temp) + => SafeExecution(() => Native.EverEqPcpatchTpcpatch(pa, temp)); + + public static int EverEqTpcpatchPcpatch(IntPtr temp, IntPtr pa) + => SafeExecution(() => Native.EverEqTpcpatchPcpatch(temp, pa)); + + public static int EverEqTpcpatchTpcpatch(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTpcpatchTpcpatch(temp1, temp2)); + + public static int EverNePcpatchTpcpatch(IntPtr pa, IntPtr temp) + => SafeExecution(() => Native.EverNePcpatchTpcpatch(pa, temp)); + + public static int EverNeTpcpatchPcpatch(IntPtr temp, IntPtr pa) + => SafeExecution(() => Native.EverNeTpcpatchPcpatch(temp, pa)); + + public static int EverNeTpcpatchTpcpatch(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTpcpatchTpcpatch(temp1, temp2)); + + public static int AlwaysEqPcpatchTpcpatch(IntPtr pa, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqPcpatchTpcpatch(pa, temp)); + + public static int AlwaysEqTpcpatchPcpatch(IntPtr temp, IntPtr pa) + => SafeExecution(() => Native.AlwaysEqTpcpatchPcpatch(temp, pa)); + + public static int AlwaysEqTpcpatchTpcpatch(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTpcpatchTpcpatch(temp1, temp2)); + + public static int AlwaysNePcpatchTpcpatch(IntPtr pa, IntPtr temp) + => SafeExecution(() => Native.AlwaysNePcpatchTpcpatch(pa, temp)); + + public static int AlwaysNeTpcpatchPcpatch(IntPtr temp, IntPtr pa) + => SafeExecution(() => Native.AlwaysNeTpcpatchPcpatch(temp, pa)); + + public static int AlwaysNeTpcpatchTpcpatch(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTpcpatchTpcpatch(temp1, temp2)); + + public static IntPtr TeqPcpointTpcpoint(IntPtr pt, IntPtr temp) + => SafeExecution(() => Native.TeqPcpointTpcpoint(pt, temp)); + + public static IntPtr TeqTpcpointPcpoint(IntPtr temp, IntPtr pt) + => SafeExecution(() => Native.TeqTpcpointPcpoint(temp, pt)); + + public static IntPtr TnePcpointTpcpoint(IntPtr pt, IntPtr temp) + => SafeExecution(() => Native.TnePcpointTpcpoint(pt, temp)); + + public static IntPtr TneTpcpointPcpoint(IntPtr temp, IntPtr pt) + => SafeExecution(() => Native.TneTpcpointPcpoint(temp, pt)); + + public static IntPtr TeqPcpatchTpcpatch(IntPtr pa, IntPtr temp) + => SafeExecution(() => Native.TeqPcpatchTpcpatch(pa, temp)); + + public static IntPtr TeqTpcpatchPcpatch(IntPtr temp, IntPtr pa) + => SafeExecution(() => Native.TeqTpcpatchPcpatch(temp, pa)); + + public static IntPtr TnePcpatchTpcpatch(IntPtr pa, IntPtr temp) + => SafeExecution(() => Native.TnePcpatchTpcpatch(pa, temp)); + + public static IntPtr TneTpcpatchPcpatch(IntPtr temp, IntPtr pa) + => SafeExecution(() => Native.TneTpcpatchPcpatch(temp, pa)); + + public static bool AdjacentTpcboxTpointcloud(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.AdjacentTpcboxTpointcloud(box, temp)); + + public static bool AdjacentTpointcloudTpcbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.AdjacentTpointcloudTpcbox(temp, box)); + + public static bool AdjacentTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AdjacentTpointcloudTpointcloud(temp1, temp2)); + + public static bool ContainedTpcboxTpointcloud(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.ContainedTpcboxTpointcloud(box, temp)); + + public static bool ContainedTpointcloudTpcbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.ContainedTpointcloudTpcbox(temp, box)); + + public static bool ContainedTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainedTpointcloudTpointcloud(temp1, temp2)); + + public static bool ContainsTpcboxTpointcloud(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.ContainsTpcboxTpointcloud(box, temp)); + + public static bool ContainsTpointcloudTpcbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.ContainsTpointcloudTpcbox(temp, box)); + + public static bool ContainsTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ContainsTpointcloudTpointcloud(temp1, temp2)); + + public static bool OverlapsTpcboxTpointcloud(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.OverlapsTpcboxTpointcloud(box, temp)); + + public static bool OverlapsTpointcloudTpcbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.OverlapsTpointcloudTpcbox(temp, box)); + + public static bool OverlapsTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.OverlapsTpointcloudTpointcloud(temp1, temp2)); + + public static bool SameTpcboxTpointcloud(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.SameTpcboxTpointcloud(box, temp)); + + public static bool SameTpointcloudTpcbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.SameTpointcloudTpcbox(temp, box)); + + public static bool SameTpointcloudTpointcloud(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.SameTpointcloudTpointcloud(temp1, temp2)); + + public static bool EintersectsTpcpointGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EintersectsTpcpointGeo(temp, gs)); + + public static double NadTpcpointGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NadTpcpointGeo(temp, gs)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_pose.g.cs b/MEOS.NET/Functions/Meos.meos_pose.g.cs new file mode 100644 index 0000000..83e012f --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_pose.g.cs @@ -0,0 +1,742 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_pose.h declares. + public static partial class Meos + { + public static string PoseAsEwkt(IntPtr pose, int maxdd) + => SafeExecution(() => Native.PoseAsEwkt(pose, maxdd)); + + public static string PoseAsHexwkb(IntPtr pose, byte variant, IntPtr size_out) + => SafeExecution(() => Native.PoseAsHexwkb(pose, variant, size_out)); + + public static string PoseAsText(IntPtr pose, int maxdd) + => SafeExecution(() => Native.PoseAsText(pose, maxdd)); + + public static IntPtr PoseAsWkb(IntPtr pose, byte variant, IntPtr size_out) + => SafeExecution(() => Native.PoseAsWkb(pose, variant, size_out)); + + public static IntPtr PoseFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.PoseFromWkb(wkb, size)); + + public static IntPtr PoseFromHexwkb(string hexwkb) + => SafeExecution(() => Native.PoseFromHexwkb(hexwkb)); + + public static IntPtr PoseIn(string str) + => SafeExecution(() => Native.PoseIn(str)); + + public static string PoseOut(IntPtr pose, int maxdd) + => SafeExecution(() => Native.PoseOut(pose, maxdd)); + + public static IntPtr PoseFromGeopose(string json) + => SafeExecution(() => Native.PoseFromGeopose(json)); + + public static string PoseAsGeopose(IntPtr pose, int conformance, int precision) + => SafeExecution(() => Native.PoseAsGeopose(pose, conformance, precision)); + + public static IntPtr TposeFromGeopose(string json) + => SafeExecution(() => Native.TposeFromGeopose(json)); + + public static string TposeAsGeopose(IntPtr temp, int conformance, int precision) + => SafeExecution(() => Native.TposeAsGeopose(temp, conformance, precision)); + + public static string TposeAsGeoposeStreamHeader(IntPtr temp, int precision) + => SafeExecution(() => Native.TposeAsGeoposeStreamHeader(temp, precision)); + + public static string TposeAsGeoposeStreamElement(IntPtr temp, IntPtr inst, int precision) + => SafeExecution(() => Native.TposeAsGeoposeStreamElement(temp, inst, precision)); + + public static string TposeAsGeoposeStream(IntPtr temp, int precision) + => SafeExecution(() => Native.TposeAsGeoposeStream(temp, precision)); + + public static IntPtr[] GeoposeFrames() + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.GeoposeFrames(_cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 48); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr GeoposeFrame(int frame_id) + => SafeExecution(() => Native.GeoposeFrame(frame_id)); + + public static IntPtr PoseApplyGeo(IntPtr pose, IntPtr body) + => SafeExecution(() => Native.PoseApplyGeo(pose, body)); + + public static IntPtr TposeApplyGeo(IntPtr temp, IntPtr body) + => SafeExecution(() => Native.TposeApplyGeo(temp, body)); + + public static IntPtr TposeComposePose(IntPtr body, IntPtr frame) + => SafeExecution(() => Native.TposeComposePose(body, frame)); + + public static IntPtr PoseComposeTpose(IntPtr body, IntPtr frame) + => SafeExecution(() => Native.PoseComposeTpose(body, frame)); + + public static IntPtr TposeComposeTpose(IntPtr body, IntPtr frame) + => SafeExecution(() => Native.TposeComposeTpose(body, frame)); + + public static IntPtr TposeInverse(IntPtr temp) + => SafeExecution(() => Native.TposeInverse(temp)); + + public static IntPtr PoseCopy(IntPtr pose) + => SafeExecution(() => Native.PoseCopy(pose)); + + public static IntPtr PoseMake2d(double x, double y, double theta, bool geodetic, int srid) + => SafeExecution(() => Native.PoseMake2d(x, y, theta, geodetic, srid)); + + public static IntPtr PoseMake3d(double x, double y, double z, double W, double X, double Y, double Z, bool geodetic, int srid) + => SafeExecution(() => Native.PoseMake3d(x, y, z, W, X, Y, Z, geodetic, srid)); + + public static IntPtr PoseMakePoint2d(IntPtr gs, double theta) + => SafeExecution(() => Native.PoseMakePoint2d(gs, theta)); + + public static IntPtr PoseMakePoint3d(IntPtr gs, double W, double X, double Y, double Z) + => SafeExecution(() => Native.PoseMakePoint3d(gs, W, X, Y, Z)); + + public static IntPtr PoseMakePoint3dYpr(IntPtr gs, double yaw, double pitch, double roll) + => SafeExecution(() => Native.PoseMakePoint3dYpr(gs, yaw, pitch, roll)); + + public static IntPtr PoseToPoint(IntPtr pose) + => SafeExecution(() => Native.PoseToPoint(pose)); + + public static IntPtr PoseToStbox(IntPtr pose) + => SafeExecution(() => Native.PoseToStbox(pose)); + + public static uint PoseHash(IntPtr pose) + => SafeExecution(() => Native.PoseHash(pose)); + + public static ulong PoseHashExtended(IntPtr pose, ulong seed) + => SafeExecution(() => Native.PoseHashExtended(pose, seed)); + + public static double[] PoseQuaternion(IntPtr pose) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PoseQuaternion(pose, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + double[] _out = new double[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double[] PoseYpr(IntPtr pose) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PoseYpr(pose, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + double[] _out = new double[_n]; + Marshal.Copy(_p, _out, 0, _n); + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double PoseYaw(IntPtr pose) + => SafeExecution(() => Native.PoseYaw(pose)); + + public static double PosePitch(IntPtr pose) + => SafeExecution(() => Native.PosePitch(pose)); + + public static double PoseRoll(IntPtr pose) + => SafeExecution(() => Native.PoseRoll(pose)); + + public static double PoseAngularDistance(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseAngularDistance(pose1, pose2)); + + public static IntPtr PoseCompose(IntPtr body, IntPtr frame) + => SafeExecution(() => Native.PoseCompose(body, frame)); + + public static IntPtr PoseInverse(IntPtr pose) + => SafeExecution(() => Native.PoseInverse(pose)); + + public static IntPtr PoseNormalize(IntPtr pose) + => SafeExecution(() => Native.PoseNormalize(pose)); + + public static IntPtr PoseRound(IntPtr pose, int maxdd) + => SafeExecution(() => Native.PoseRound(pose, maxdd)); + + public static IntPtr PosearrRound(IntPtr posearr, int count, int maxdd) + => SafeExecution(() => Native.PosearrRound(posearr, count, maxdd)); + + public static IntPtr PoseSetSrid(IntPtr pose, int srid) + => SafeExecution(() => Native.PoseSetSrid(pose, srid)); + + public static int PoseSrid(IntPtr pose) + => SafeExecution(() => Native.PoseSrid(pose)); + + public static IntPtr PoseTransform(IntPtr pose, int srid) + => SafeExecution(() => Native.PoseTransform(pose, srid)); + + public static IntPtr PoseTransformPipeline(IntPtr pose, string pipelinestr, int srid, bool is_forward) + => SafeExecution(() => Native.PoseTransformPipeline(pose, pipelinestr, srid, is_forward)); + + public static IntPtr PoseTstzspanToStbox(IntPtr pose, IntPtr s) + => SafeExecution(() => Native.PoseTstzspanToStbox(pose, s)); + + public static IntPtr PoseTimestamptzToStbox(IntPtr pose, long t) + => SafeExecution(() => Native.PoseTimestamptzToStbox(pose, t)); + + public static double DistancePoseGeo(IntPtr pose, IntPtr gs) + => SafeExecution(() => Native.DistancePoseGeo(pose, gs)); + + public static double DistancePosePose(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.DistancePosePose(pose1, pose2)); + + public static double DistancePoseStbox(IntPtr pose, IntPtr box) + => SafeExecution(() => Native.DistancePoseStbox(pose, box)); + + public static int PoseCmp(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseCmp(pose1, pose2)); + + public static bool PoseEq(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseEq(pose1, pose2)); + + public static bool PoseGe(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseGe(pose1, pose2)); + + public static bool PoseGt(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseGt(pose1, pose2)); + + public static bool PoseLe(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseLe(pose1, pose2)); + + public static bool PoseLt(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseLt(pose1, pose2)); + + public static bool PoseNe(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseNe(pose1, pose2)); + + public static bool PoseNsame(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseNsame(pose1, pose2)); + + public static bool PoseSame(IntPtr pose1, IntPtr pose2) + => SafeExecution(() => Native.PoseSame(pose1, pose2)); + + public static IntPtr PosesetIn(string str) + => SafeExecution(() => Native.PosesetIn(str)); + + public static string PosesetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.PosesetOut(s, maxdd)); + + public static IntPtr PosesetMake(IntPtr values, int count) + => SafeExecution(() => Native.PosesetMake(values, count)); + + public static IntPtr PoseToSet(IntPtr pose) + => SafeExecution(() => Native.PoseToSet(pose)); + + public static IntPtr PosesetEndValue(IntPtr s) + => SafeExecution(() => Native.PosesetEndValue(s)); + + public static IntPtr PosesetStartValue(IntPtr s) + => SafeExecution(() => Native.PosesetStartValue(s)); + + public static bool PosesetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.PosesetValueN(s, n, result)); + + public static IntPtr[] PosesetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PosesetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool ContainedPoseSet(IntPtr pose, IntPtr s) + => SafeExecution(() => Native.ContainedPoseSet(pose, s)); + + public static bool ContainsSetPose(IntPtr s, IntPtr pose) + => SafeExecution(() => Native.ContainsSetPose(s, pose)); + + public static IntPtr IntersectionPoseSet(IntPtr pose, IntPtr s) + => SafeExecution(() => Native.IntersectionPoseSet(pose, s)); + + public static IntPtr IntersectionSetPose(IntPtr s, IntPtr pose) + => SafeExecution(() => Native.IntersectionSetPose(s, pose)); + + public static IntPtr MinusPoseSet(IntPtr pose, IntPtr s) + => SafeExecution(() => Native.MinusPoseSet(pose, s)); + + public static IntPtr MinusSetPose(IntPtr s, IntPtr pose) + => SafeExecution(() => Native.MinusSetPose(s, pose)); + + public static IntPtr PoseUnionTransfn(IntPtr state, IntPtr pose) + => SafeExecution(() => Native.PoseUnionTransfn(state, pose)); + + public static IntPtr UnionPoseSet(IntPtr pose, IntPtr s) + => SafeExecution(() => Native.UnionPoseSet(pose, s)); + + public static IntPtr UnionSetPose(IntPtr s, IntPtr pose) + => SafeExecution(() => Native.UnionSetPose(s, pose)); + + public static IntPtr TposeFromMfjson(string str) + => SafeExecution(() => Native.TposeFromMfjson(str)); + + public static IntPtr TposeIn(string str) + => SafeExecution(() => Native.TposeIn(str)); + + public static IntPtr TposeinstMake(IntPtr pose, long t) + => SafeExecution(() => Native.TposeinstMake(pose, t)); + + public static IntPtr TposeFromBaseTemp(IntPtr pose, IntPtr temp) + => SafeExecution(() => Native.TposeFromBaseTemp(pose, temp)); + + public static IntPtr TposeseqFromBaseTstzset(IntPtr pose, IntPtr s) + => SafeExecution(() => Native.TposeseqFromBaseTstzset(pose, s)); + + public static IntPtr TposeseqFromBaseTstzspan(IntPtr pose, IntPtr s, int interp) + => SafeExecution(() => Native.TposeseqFromBaseTstzspan(pose, s, interp)); + + public static IntPtr TposeseqsetFromBaseTstzspanset(IntPtr pose, IntPtr ss, int interp) + => SafeExecution(() => Native.TposeseqsetFromBaseTstzspanset(pose, ss, interp)); + + public static IntPtr TposeMake(IntPtr tpoint, IntPtr ttheta) + => SafeExecution(() => Native.TposeMake(tpoint, ttheta)); + + public static IntPtr TposeToTpoint(IntPtr temp) + => SafeExecution(() => Native.TposeToTpoint(temp)); + + public static IntPtr TposeEndValue(IntPtr temp) + => SafeExecution(() => Native.TposeEndValue(temp)); + + public static IntPtr TposePoints(IntPtr temp) + => SafeExecution(() => Native.TposePoints(temp)); + + public static IntPtr TposeYaw(IntPtr temp) + => SafeExecution(() => Native.TposeYaw(temp)); + + public static IntPtr TposePitch(IntPtr temp) + => SafeExecution(() => Native.TposePitch(temp)); + + public static IntPtr TposeRoll(IntPtr temp) + => SafeExecution(() => Native.TposeRoll(temp)); + + public static IntPtr TposeSpeed(IntPtr temp) + => SafeExecution(() => Native.TposeSpeed(temp)); + + public static IntPtr TposeAngularSpeed(IntPtr temp) + => SafeExecution(() => Native.TposeAngularSpeed(temp)); + + public static IntPtr TposeStartValue(IntPtr temp) + => SafeExecution(() => Native.TposeStartValue(temp)); + + public static IntPtr TposeTrajectory(IntPtr temp) + => SafeExecution(() => Native.TposeTrajectory(temp)); + + public static bool TposeValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr result) + => SafeExecution(() => Native.TposeValueAtTimestamptz(temp, t, strict, result)); + + public static bool TposeValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TposeValueN(temp, n, result)); + + public static IntPtr[] TposeValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TposeValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TposeAtElevation(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TposeAtElevation(temp, s)); + + public static IntPtr TposeAtGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TposeAtGeom(temp, gs)); + + public static IntPtr TposeAtStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TposeAtStbox(temp, box, border_inc)); + + public static IntPtr TposeAtPose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.TposeAtPose(temp, pose)); + + public static IntPtr TposeMinusElevation(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TposeMinusElevation(temp, s)); + + public static IntPtr TposeMinusGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TposeMinusGeom(temp, gs)); + + public static IntPtr TposeMinusPose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.TposeMinusPose(temp, pose)); + + public static IntPtr TposeMinusStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TposeMinusStbox(temp, box, border_inc)); + + public static IntPtr TdistanceTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.TdistanceTposePose(temp, pose)); + + public static IntPtr TdistanceTposeGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TdistanceTposeGeo(temp, gs)); + + public static IntPtr TdistanceTposeTpose(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdistanceTposeTpose(temp1, temp2)); + + public static double NadTposeGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NadTposeGeo(temp, gs)); + + public static double NadTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.NadTposePose(temp, pose)); + + public static double NadTposeStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTposeStbox(temp, box)); + + public static double NadTposeTpose(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTposeTpose(temp1, temp2)); + + public static IntPtr NaiTposeGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NaiTposeGeo(temp, gs)); + + public static IntPtr NaiTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.NaiTposePose(temp, pose)); + + public static IntPtr NaiTposeTpose(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NaiTposeTpose(temp1, temp2)); + + public static IntPtr ShortestlineTposeGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.ShortestlineTposeGeo(temp, gs)); + + public static IntPtr ShortestlineTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.ShortestlineTposePose(temp, pose)); + + public static IntPtr ShortestlineTposeTpose(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ShortestlineTposeTpose(temp1, temp2)); + + public static int AlwaysEqPoseTpose(IntPtr pose, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqPoseTpose(pose, temp)); + + public static int AlwaysEqTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.AlwaysEqTposePose(temp, pose)); + + public static int AlwaysEqTposeTpose(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTposeTpose(temp1, temp2)); + + public static int AlwaysNePoseTpose(IntPtr pose, IntPtr temp) + => SafeExecution(() => Native.AlwaysNePoseTpose(pose, temp)); + + public static int AlwaysNeTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.AlwaysNeTposePose(temp, pose)); + + public static int AlwaysNeTposeTpose(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTposeTpose(temp1, temp2)); + + public static int EverEqPoseTpose(IntPtr pose, IntPtr temp) + => SafeExecution(() => Native.EverEqPoseTpose(pose, temp)); + + public static int EverEqTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.EverEqTposePose(temp, pose)); + + public static int EverEqTposeTpose(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTposeTpose(temp1, temp2)); + + public static int EverNePoseTpose(IntPtr pose, IntPtr temp) + => SafeExecution(() => Native.EverNePoseTpose(pose, temp)); + + public static int EverNeTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.EverNeTposePose(temp, pose)); + + public static int EverNeTposeTpose(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTposeTpose(temp1, temp2)); + + public static IntPtr TeqPoseTpose(IntPtr pose, IntPtr temp) + => SafeExecution(() => Native.TeqPoseTpose(pose, temp)); + + public static IntPtr TeqTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.TeqTposePose(temp, pose)); + + public static IntPtr TnePoseTpose(IntPtr pose, IntPtr temp) + => SafeExecution(() => Native.TnePoseTpose(pose, temp)); + + public static IntPtr TneTposePose(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.TneTposePose(temp, pose)); + + public static IntPtr PosechainIn(string str) + => SafeExecution(() => Native.PosechainIn(str)); + + public static string PosechainOut(IntPtr pc, int maxdd) + => SafeExecution(() => Native.PosechainOut(pc, maxdd)); + + public static string PosechainAsText(IntPtr pc, int maxdd) + => SafeExecution(() => Native.PosechainAsText(pc, maxdd)); + + public static string PosechainAsEwkt(IntPtr pc, int maxdd) + => SafeExecution(() => Native.PosechainAsEwkt(pc, maxdd)); + + public static IntPtr PosechainAsWkb(IntPtr pc, byte variant, IntPtr size_out) + => SafeExecution(() => Native.PosechainAsWkb(pc, variant, size_out)); + + public static string PosechainAsHexwkb(IntPtr pc, byte variant, IntPtr size_out) + => SafeExecution(() => Native.PosechainAsHexwkb(pc, variant, size_out)); + + public static IntPtr PosechainFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.PosechainFromWkb(wkb, size)); + + public static IntPtr PosechainFromHexwkb(string hexwkb) + => SafeExecution(() => Native.PosechainFromHexwkb(hexwkb)); + + public static IntPtr PosechainMake(IntPtr poses, int count) + => SafeExecution(() => Native.PosechainMake(poses, count)); + + public static IntPtr PosechainCopy(IntPtr pc) + => SafeExecution(() => Native.PosechainCopy(pc)); + + public static IntPtr PosechainAppend(IntPtr pc, IntPtr pose) + => SafeExecution(() => Native.PosechainAppend(pc, pose)); + + public static IntPtr PoseToPosechain(IntPtr pose) + => SafeExecution(() => Native.PoseToPosechain(pose)); + + public static IntPtr PosechainToPose(IntPtr pc) + => SafeExecution(() => Native.PosechainToPose(pc)); + + public static IntPtr PosechainPrefixPose(IntPtr pc, int n) + => SafeExecution(() => Native.PosechainPrefixPose(pc, n)); + + public static IntPtr PosechainToPoint(IntPtr pc) + => SafeExecution(() => Native.PosechainToPoint(pc)); + + public static IntPtr PosechainToStbox(IntPtr pc) + => SafeExecution(() => Native.PosechainToStbox(pc)); + + public static IntPtr PosechainTimestamptzToStbox(IntPtr pc, long t) + => SafeExecution(() => Native.PosechainTimestamptzToStbox(pc, t)); + + public static IntPtr PosechainTstzspanToStbox(IntPtr pc, IntPtr s) + => SafeExecution(() => Native.PosechainTstzspanToStbox(pc, s)); + + public static int PosechainNumPoses(IntPtr pc) + => SafeExecution(() => Native.PosechainNumPoses(pc)); + + public static IntPtr PosechainStartPose(IntPtr pc) + => SafeExecution(() => Native.PosechainStartPose(pc)); + + public static IntPtr PosechainEndPose(IntPtr pc) + => SafeExecution(() => Native.PosechainEndPose(pc)); + + public static IntPtr PosechainPoseN(IntPtr pc, int n) + => SafeExecution(() => Native.PosechainPoseN(pc, n)); + + public static IntPtr[] PosechainPoses(IntPtr pc) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PosechainPoses(pc, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static uint PosechainHash(IntPtr pc) + => SafeExecution(() => Native.PosechainHash(pc)); + + public static ulong PosechainHashExtended(IntPtr pc, ulong seed) + => SafeExecution(() => Native.PosechainHashExtended(pc, seed)); + + public static IntPtr PosechainRound(IntPtr pc, int maxdd) + => SafeExecution(() => Native.PosechainRound(pc, maxdd)); + + public static int PosechainSrid(IntPtr pc) + => SafeExecution(() => Native.PosechainSrid(pc)); + + public static IntPtr PosechainSetSrid(IntPtr pc, int srid) + => SafeExecution(() => Native.PosechainSetSrid(pc, srid)); + + public static IntPtr PosechainTransform(IntPtr pc, int srid_to) + => SafeExecution(() => Native.PosechainTransform(pc, srid_to)); + + public static IntPtr PosechainTransformPipeline(IntPtr pc, string pipeline, int srid_to, bool is_forward) + => SafeExecution(() => Native.PosechainTransformPipeline(pc, pipeline, srid_to, is_forward)); + + public static IntPtr TposechainFromGeopose(string json) + => SafeExecution(() => Native.TposechainFromGeopose(json)); + + public static string TposechainAsGeopose(IntPtr temp, int precision) + => SafeExecution(() => Native.TposechainAsGeopose(temp, precision)); + + public static string TposechainarrAsGeopose(IntPtr temparr, int count, int precision) + => SafeExecution(() => Native.TposechainarrAsGeopose(temparr, count, precision)); + + public static bool PosechainEq(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainEq(pc1, pc2)); + + public static bool PosechainNe(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainNe(pc1, pc2)); + + public static bool PosechainSame(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainSame(pc1, pc2)); + + public static bool PosechainNsame(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainNsame(pc1, pc2)); + + public static int PosechainCmp(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainCmp(pc1, pc2)); + + public static bool PosechainLt(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainLt(pc1, pc2)); + + public static bool PosechainLe(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainLe(pc1, pc2)); + + public static bool PosechainGt(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainGt(pc1, pc2)); + + public static bool PosechainGe(IntPtr pc1, IntPtr pc2) + => SafeExecution(() => Native.PosechainGe(pc1, pc2)); + + public static IntPtr PosechainsetIn(string str) + => SafeExecution(() => Native.PosechainsetIn(str)); + + public static string PosechainsetOut(IntPtr s, int maxdd) + => SafeExecution(() => Native.PosechainsetOut(s, maxdd)); + + public static IntPtr PosechainsetMake(IntPtr values, int count) + => SafeExecution(() => Native.PosechainsetMake(values, count)); + + public static IntPtr PosechainToSet(IntPtr pc) + => SafeExecution(() => Native.PosechainToSet(pc)); + + public static IntPtr PosechainsetEndValue(IntPtr s) + => SafeExecution(() => Native.PosechainsetEndValue(s)); + + public static IntPtr PosechainsetStartValue(IntPtr s) + => SafeExecution(() => Native.PosechainsetStartValue(s)); + + public static bool PosechainsetValueN(IntPtr s, int n, IntPtr result) + => SafeExecution(() => Native.PosechainsetValueN(s, n, result)); + + public static IntPtr[] PosechainsetValues(IntPtr s) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PosechainsetValues(s, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool ContainedPosechainSet(IntPtr pc, IntPtr s) + => SafeExecution(() => Native.ContainedPosechainSet(pc, s)); + + public static bool ContainsSetPosechain(IntPtr s, IntPtr pc) + => SafeExecution(() => Native.ContainsSetPosechain(s, pc)); + + public static IntPtr IntersectionPosechainSet(IntPtr pc, IntPtr s) + => SafeExecution(() => Native.IntersectionPosechainSet(pc, s)); + + public static IntPtr IntersectionSetPosechain(IntPtr s, IntPtr pc) + => SafeExecution(() => Native.IntersectionSetPosechain(s, pc)); + + public static IntPtr MinusPosechainSet(IntPtr pc, IntPtr s) + => SafeExecution(() => Native.MinusPosechainSet(pc, s)); + + public static IntPtr MinusSetPosechain(IntPtr s, IntPtr pc) + => SafeExecution(() => Native.MinusSetPosechain(s, pc)); + + public static IntPtr PosechainUnionTransfn(IntPtr state, IntPtr pc) + => SafeExecution(() => Native.PosechainUnionTransfn(state, pc)); + + public static IntPtr UnionPosechainSet(IntPtr pc, IntPtr s) + => SafeExecution(() => Native.UnionPosechainSet(pc, s)); + + public static IntPtr UnionSetPosechain(IntPtr s, IntPtr pc) + => SafeExecution(() => Native.UnionSetPosechain(s, pc)); + + public static IntPtr TposechainIn(string str) + => SafeExecution(() => Native.TposechainIn(str)); + + public static IntPtr TposechainFromMfjson(string mfjson) + => SafeExecution(() => Native.TposechainFromMfjson(mfjson)); + + public static IntPtr TposechainFromBaseTemp(IntPtr pc, IntPtr temp) + => SafeExecution(() => Native.TposechainFromBaseTemp(pc, temp)); + + public static IntPtr TposechainToTpose(IntPtr temp) + => SafeExecution(() => Native.TposechainToTpose(temp)); + + public static int TposechainNumPoses(IntPtr temp) + => SafeExecution(() => Native.TposechainNumPoses(temp)); + + public static int AlwaysEqPosechainTposechain(IntPtr posechain, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqPosechainTposechain(posechain, temp)); + + public static int AlwaysEqTposechainPosechain(IntPtr temp, IntPtr posechain) + => SafeExecution(() => Native.AlwaysEqTposechainPosechain(temp, posechain)); + + public static int AlwaysEqTposechainTposechain(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTposechainTposechain(temp1, temp2)); + + public static int AlwaysNePosechainTposechain(IntPtr posechain, IntPtr temp) + => SafeExecution(() => Native.AlwaysNePosechainTposechain(posechain, temp)); + + public static int AlwaysNeTposechainPosechain(IntPtr temp, IntPtr posechain) + => SafeExecution(() => Native.AlwaysNeTposechainPosechain(temp, posechain)); + + public static int AlwaysNeTposechainTposechain(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTposechainTposechain(temp1, temp2)); + + public static int EverEqPosechainTposechain(IntPtr posechain, IntPtr temp) + => SafeExecution(() => Native.EverEqPosechainTposechain(posechain, temp)); + + public static int EverEqTposechainPosechain(IntPtr temp, IntPtr posechain) + => SafeExecution(() => Native.EverEqTposechainPosechain(temp, posechain)); + + public static int EverEqTposechainTposechain(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTposechainTposechain(temp1, temp2)); + + public static int EverNePosechainTposechain(IntPtr posechain, IntPtr temp) + => SafeExecution(() => Native.EverNePosechainTposechain(posechain, temp)); + + public static int EverNeTposechainPosechain(IntPtr temp, IntPtr posechain) + => SafeExecution(() => Native.EverNeTposechainPosechain(temp, posechain)); + + public static int EverNeTposechainTposechain(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTposechainTposechain(temp1, temp2)); + + public static IntPtr TeqPosechainTposechain(IntPtr posechain, IntPtr temp) + => SafeExecution(() => Native.TeqPosechainTposechain(posechain, temp)); + + public static IntPtr TeqTposechainPosechain(IntPtr temp, IntPtr posechain) + => SafeExecution(() => Native.TeqTposechainPosechain(temp, posechain)); + + public static IntPtr TnePosechainTposechain(IntPtr posechain, IntPtr temp) + => SafeExecution(() => Native.TnePosechainTposechain(posechain, temp)); + + public static IntPtr TneTposechainPosechain(IntPtr temp, IntPtr posechain) + => SafeExecution(() => Native.TneTposechainPosechain(temp, posechain)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_quadbin.g.cs b/MEOS.NET/Functions/Meos.meos_quadbin.g.cs new file mode 100644 index 0000000..5f3d81e --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_quadbin.g.cs @@ -0,0 +1,246 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_quadbin.h declares. + public static partial class Meos + { + public static ulong QuadbinIn(string str) + => SafeExecution(() => Native.QuadbinIn(str)); + + public static bool QuadbinEq(ulong a, ulong b) + => SafeExecution(() => Native.QuadbinEq(a, b)); + + public static bool QuadbinNe(ulong a, ulong b) + => SafeExecution(() => Native.QuadbinNe(a, b)); + + public static bool QuadbinLt(ulong a, ulong b) + => SafeExecution(() => Native.QuadbinLt(a, b)); + + public static bool QuadbinLe(ulong a, ulong b) + => SafeExecution(() => Native.QuadbinLe(a, b)); + + public static bool QuadbinGt(ulong a, ulong b) + => SafeExecution(() => Native.QuadbinGt(a, b)); + + public static bool QuadbinGe(ulong a, ulong b) + => SafeExecution(() => Native.QuadbinGe(a, b)); + + public static int QuadbinCmp(ulong a, ulong b) + => SafeExecution(() => Native.QuadbinCmp(a, b)); + + public static uint QuadbinHash(ulong cell) + => SafeExecution(() => Native.QuadbinHash(cell)); + + public static ulong QuadbinHashExtended(ulong cell, ulong seed) + => SafeExecution(() => Native.QuadbinHashExtended(cell, seed)); + + public static bool QuadbinIsValidIndex(ulong index) + => SafeExecution(() => Native.QuadbinIsValidIndex(index)); + + public static bool QuadbinIsValidCell(ulong cell) + => SafeExecution(() => Native.QuadbinIsValidCell(cell)); + + public static ulong QuadbinTileToCell(uint x, uint y, uint z) + => SafeExecution(() => Native.QuadbinTileToCell(x, y, z)); + + public static bool QuadbinCellToTile(ulong cell, IntPtr x, IntPtr y, IntPtr z) + => SafeExecution(() => Native.QuadbinCellToTile(cell, x, y, z)); + + public static uint QuadbinGetResolution(ulong cell) + => SafeExecution(() => Native.QuadbinGetResolution(cell)); + + public static ulong QuadbinCellToParent(ulong cell, uint parent_resolution) + => SafeExecution(() => Native.QuadbinCellToParent(cell, parent_resolution)); + + public static IntPtr[] QuadbinCellToChildren(ulong cell, uint children_resolution) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.QuadbinCellToChildren(cell, children_resolution, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static ulong QuadbinCellSibling(ulong cell, string direction) + => SafeExecution(() => Native.QuadbinCellSibling(cell, direction)); + + public static IntPtr[] QuadbinKRing(ulong cell, int k) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.QuadbinKRing(cell, k, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static ulong QuadbinPointToCell(double longitude, double latitude, uint resolution) + => SafeExecution(() => Native.QuadbinPointToCell(longitude, latitude, resolution)); + + public static ulong GeoToQuadbinCell(IntPtr point, int resolution) + => SafeExecution(() => Native.GeoToQuadbinCell(point, resolution)); + + public static IntPtr QuadbinCellToGeompoint(ulong cell) + => SafeExecution(() => Native.QuadbinCellToGeompoint(cell)); + + public static IntPtr QuadbinCellToGeom(ulong cell) + => SafeExecution(() => Native.QuadbinCellToGeom(cell)); + + public static IntPtr QuadbinToStbox(ulong cell) + => SafeExecution(() => Native.QuadbinToStbox(cell)); + + public static IntPtr QuadbinTimestamptzToStbox(ulong cell, long t) + => SafeExecution(() => Native.QuadbinTimestamptzToStbox(cell, t)); + + public static IntPtr QuadbinTstzspanToStbox(ulong cell, IntPtr s) + => SafeExecution(() => Native.QuadbinTstzspanToStbox(cell, s)); + + public static double QuadbinCellArea(ulong cell) + => SafeExecution(() => Native.QuadbinCellArea(cell)); + + public static string QuadbinIndexToString(ulong index) + => SafeExecution(() => Native.QuadbinIndexToString(index)); + + public static ulong QuadbinStringToIndex(string str) + => SafeExecution(() => Native.QuadbinStringToIndex(str)); + + public static string QuadbinCellToQuadkey(ulong cell) + => SafeExecution(() => Native.QuadbinCellToQuadkey(cell)); + + public static IntPtr QuadbinGridDisk(ulong origin, int k) + => SafeExecution(() => Native.QuadbinGridDisk(origin, k)); + + public static IntPtr QuadbinCellToChildrenSet(ulong origin, int children_resolution) + => SafeExecution(() => Native.QuadbinCellToChildrenSet(origin, children_resolution)); + + public static IntPtr TquadbinIn(string str) + => SafeExecution(() => Native.TquadbinIn(str)); + + public static IntPtr TquadbininstIn(string str) + => SafeExecution(() => Native.TquadbininstIn(str)); + + public static IntPtr TquadbinseqIn(string str, int interp) + => SafeExecution(() => Native.TquadbinseqIn(str, interp)); + + public static IntPtr TquadbinseqsetIn(string str) + => SafeExecution(() => Native.TquadbinseqsetIn(str)); + + public static IntPtr TquadbinMake(ulong value, long t) + => SafeExecution(() => Native.TquadbinMake(value, t)); + + public static IntPtr TquadbininstMake(ulong value, long t) + => SafeExecution(() => Native.TquadbininstMake(value, t)); + + public static IntPtr TquadbinseqMake(IntPtr values, IntPtr times, int count, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.TquadbinseqMake(values, times, count, lower_inc, upper_inc)); + + public static IntPtr TquadbinseqsetMake(IntPtr sequences, int count) + => SafeExecution(() => Native.TquadbinseqsetMake(sequences, count)); + + public static ulong TquadbinStartValue(IntPtr temp) + => SafeExecution(() => Native.TquadbinStartValue(temp)); + + public static ulong TquadbinEndValue(IntPtr temp) + => SafeExecution(() => Native.TquadbinEndValue(temp)); + + public static bool TquadbinValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TquadbinValueN(temp, n, result)); + + public static IntPtr[] TquadbinValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TquadbinValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool TquadbinValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr result) + => SafeExecution(() => Native.TquadbinValueAtTimestamptz(temp, t, strict, result)); + + public static IntPtr QuadbinToSet(ulong cell) + => SafeExecution(() => Native.QuadbinToSet(cell)); + + public static IntPtr TbigintToTquadbin(IntPtr temp) + => SafeExecution(() => Native.TbigintToTquadbin(temp)); + + public static IntPtr TquadbinToTbigint(IntPtr temp) + => SafeExecution(() => Native.TquadbinToTbigint(temp)); + + public static int EverEqQuadbinTquadbin(ulong cell, IntPtr temp) + => SafeExecution(() => Native.EverEqQuadbinTquadbin(cell, temp)); + + public static int EverEqTquadbinQuadbin(IntPtr temp, ulong cell) + => SafeExecution(() => Native.EverEqTquadbinQuadbin(temp, cell)); + + public static int EverNeQuadbinTquadbin(ulong cell, IntPtr temp) + => SafeExecution(() => Native.EverNeQuadbinTquadbin(cell, temp)); + + public static int EverNeTquadbinQuadbin(IntPtr temp, ulong cell) + => SafeExecution(() => Native.EverNeTquadbinQuadbin(temp, cell)); + + public static int AlwaysEqQuadbinTquadbin(ulong cell, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqQuadbinTquadbin(cell, temp)); + + public static int AlwaysEqTquadbinQuadbin(IntPtr temp, ulong cell) + => SafeExecution(() => Native.AlwaysEqTquadbinQuadbin(temp, cell)); + + public static int AlwaysNeQuadbinTquadbin(ulong cell, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeQuadbinTquadbin(cell, temp)); + + public static int AlwaysNeTquadbinQuadbin(IntPtr temp, ulong cell) + => SafeExecution(() => Native.AlwaysNeTquadbinQuadbin(temp, cell)); + + public static int EverEqTquadbinTquadbin(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTquadbinTquadbin(temp1, temp2)); + + public static int EverNeTquadbinTquadbin(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTquadbinTquadbin(temp1, temp2)); + + public static int AlwaysEqTquadbinTquadbin(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTquadbinTquadbin(temp1, temp2)); + + public static int AlwaysNeTquadbinTquadbin(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTquadbinTquadbin(temp1, temp2)); + + public static IntPtr TeqQuadbinTquadbin(ulong cell, IntPtr temp) + => SafeExecution(() => Native.TeqQuadbinTquadbin(cell, temp)); + + public static IntPtr TeqTquadbinQuadbin(IntPtr temp, ulong cell) + => SafeExecution(() => Native.TeqTquadbinQuadbin(temp, cell)); + + public static IntPtr TeqTquadbinTquadbin(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TeqTquadbinTquadbin(temp1, temp2)); + + public static IntPtr TneQuadbinTquadbin(ulong cell, IntPtr temp) + => SafeExecution(() => Native.TneQuadbinTquadbin(cell, temp)); + + public static IntPtr TneTquadbinQuadbin(IntPtr temp, ulong cell) + => SafeExecution(() => Native.TneTquadbinQuadbin(temp, cell)); + + public static IntPtr TneTquadbinTquadbin(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TneTquadbinTquadbin(temp1, temp2)); + + public static IntPtr TquadbinCellToQuadkey(IntPtr temp) + => SafeExecution(() => Native.TquadbinCellToQuadkey(temp)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_raster.g.cs b/MEOS.NET/Functions/Meos.meos_raster.g.cs new file mode 100644 index 0000000..d046b5d --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_raster.g.cs @@ -0,0 +1,162 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_raster.h declares. + public static partial class Meos + { + public static ulong RaquetPixtypeSize(int pixtype) + => SafeExecution(() => Native.RaquetPixtypeSize(pixtype)); + + public static int RaquetPixtypeFromString(string str) + => SafeExecution(() => Native.RaquetPixtypeFromString(str)); + + public static IntPtr RaquetIn(string str) + => SafeExecution(() => Native.RaquetIn(str)); + + public static string RaquetOut(IntPtr rq) + => SafeExecution(() => Native.RaquetOut(rq)); + + public static IntPtr RaquetFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.RaquetFromWkb(wkb, size)); + + public static IntPtr RaquetFromHexwkb(string hexwkb) + => SafeExecution(() => Native.RaquetFromHexwkb(hexwkb)); + + public static IntPtr RaquetAsWkb(IntPtr rq, byte variant, IntPtr size_out) + => SafeExecution(() => Native.RaquetAsWkb(rq, variant, size_out)); + + public static string RaquetAsHexwkb(IntPtr rq, byte variant, IntPtr size_out) + => SafeExecution(() => Native.RaquetAsHexwkb(rq, variant, size_out)); + + public static IntPtr RaquetMake(ulong quadbin, int width, int height, int pixtype, double nodata, bool has_nodata, IntPtr pixels, ulong pixels_size) + => SafeExecution(() => Native.RaquetMake(quadbin, width, height, pixtype, nodata, has_nodata, pixels, pixels_size)); + + public static IntPtr RaquetCopy(IntPtr rq) + => SafeExecution(() => Native.RaquetCopy(rq)); + + public static IntPtr RaquetRead(string path, ulong quadbin) + => SafeExecution(() => Native.RaquetRead(path, quadbin)); + + public static IntPtr RaquetReadBytes(IntPtr data, ulong size, ulong quadbin) + => SafeExecution(() => Native.RaquetReadBytes(data, size, quadbin)); + + public static ulong RaquetQuadbin(IntPtr rq) + => SafeExecution(() => Native.RaquetQuadbin(rq)); + + public static int RaquetWidth(IntPtr rq) + => SafeExecution(() => Native.RaquetWidth(rq)); + + public static int RaquetHeight(IntPtr rq) + => SafeExecution(() => Native.RaquetHeight(rq)); + + public static double RaquetNodata(IntPtr rq) + => SafeExecution(() => Native.RaquetNodata(rq)); + + public static string RaquetPixtype(IntPtr rq) + => SafeExecution(() => Native.RaquetPixtype(rq)); + + public static IntPtr RaquetPixels(IntPtr rq, IntPtr size_out) + => SafeExecution(() => Native.RaquetPixels(rq, size_out)); + + public static uint RaquetHash(IntPtr rq) + => SafeExecution(() => Native.RaquetHash(rq)); + + public static ulong RaquetHashExtended(IntPtr rq, ulong seed) + => SafeExecution(() => Native.RaquetHashExtended(rq, seed)); + + public static IntPtr RasterFromWkb(IntPtr wkb, ulong size) + => SafeExecution(() => Native.RasterFromWkb(wkb, size)); + + public static IntPtr RasterFromHexwkb(string hexwkb) + => SafeExecution(() => Native.RasterFromHexwkb(hexwkb)); + + public static IntPtr RasterAsWkb(IntPtr rast, IntPtr size_out) + => SafeExecution(() => Native.RasterAsWkb(rast, size_out)); + + public static string RasterAsHexwkb(IntPtr rast, IntPtr size_out) + => SafeExecution(() => Native.RasterAsHexwkb(rast, size_out)); + + public static int RasterNumBands(IntPtr rast) + => SafeExecution(() => Native.RasterNumBands(rast)); + + public static IntPtr RaquetToStbox(IntPtr rq) + => SafeExecution(() => Native.RaquetToStbox(rq)); + + public static int RaquetCmp(IntPtr rq1, IntPtr rq2) + => SafeExecution(() => Native.RaquetCmp(rq1, rq2)); + + public static bool RaquetEq(IntPtr rq1, IntPtr rq2) + => SafeExecution(() => Native.RaquetEq(rq1, rq2)); + + public static bool RaquetNe(IntPtr rq1, IntPtr rq2) + => SafeExecution(() => Native.RaquetNe(rq1, rq2)); + + public static bool RaquetLt(IntPtr rq1, IntPtr rq2) + => SafeExecution(() => Native.RaquetLt(rq1, rq2)); + + public static bool RaquetLe(IntPtr rq1, IntPtr rq2) + => SafeExecution(() => Native.RaquetLe(rq1, rq2)); + + public static bool RaquetGe(IntPtr rq1, IntPtr rq2) + => SafeExecution(() => Native.RaquetGe(rq1, rq2)); + + public static bool RaquetGt(IntPtr rq1, IntPtr rq2) + => SafeExecution(() => Native.RaquetGt(rq1, rq2)); + + public static IntPtr RasterValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx) + => SafeExecution(() => Native.RasterValue(traj, box, sample, ctx)); + + public static IntPtr RasterAtValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx, IntPtr vspan) + => SafeExecution(() => Native.RasterAtValue(traj, box, sample, ctx, vspan)); + + public static IntPtr RasterMinusValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx, IntPtr vspan) + => SafeExecution(() => Native.RasterMinusValue(traj, box, sample, ctx, vspan)); + + public static int ErasterValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx, IntPtr vspan) + => SafeExecution(() => Native.ErasterValue(traj, box, sample, ctx, vspan)); + + public static int ArasterValue(IntPtr traj, IntPtr box, IntPtr sample, IntPtr ctx, IntPtr vspan) + => SafeExecution(() => Native.ArasterValue(traj, box, sample, ctx, vspan)); + + public static IntPtr RasterValueGdal(IntPtr traj, string path, int band) + => SafeExecution(() => Native.RasterValueGdal(traj, path, band)); + + public static IntPtr RasterAtValueGdal(IntPtr traj, string path, int band, IntPtr vspan) + => SafeExecution(() => Native.RasterAtValueGdal(traj, path, band, vspan)); + + public static IntPtr RasterMinusValueGdal(IntPtr traj, string path, int band, IntPtr vspan) + => SafeExecution(() => Native.RasterMinusValueGdal(traj, path, band, vspan)); + + public static int ErasterValueGdal(IntPtr traj, string path, int band, IntPtr vspan) + => SafeExecution(() => Native.ErasterValueGdal(traj, path, band, vspan)); + + public static int ArasterValueGdal(IntPtr traj, string path, int band, IntPtr vspan) + => SafeExecution(() => Native.ArasterValueGdal(traj, path, band, vspan)); + + public static IntPtr RasterTileValueQuadbin(IntPtr traj, IntPtr pixels, ulong pixels_size, int width, int height, ulong quadbin, int pixtype, double nodata, bool has_nodata) + => SafeExecution(() => Native.RasterTileValueQuadbin(traj, pixels, pixels_size, width, height, quadbin, pixtype, nodata, has_nodata)); + + public static IntPtr RasterTileValue(IntPtr traj, IntPtr rq) + => SafeExecution(() => Native.RasterTileValue(traj, rq)); + + public static IntPtr RasterTileValueArray(IntPtr traj, IntPtr rqarr, int count) + => SafeExecution(() => Native.RasterTileValueArray(traj, rqarr, count)); + + public static IntPtr[] TrajectoryQuadbins(IntPtr traj, uint zoom) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrajectoryQuadbins(traj, zoom, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_rgeo.g.cs b/MEOS.NET/Functions/Meos.meos_rgeo.g.cs new file mode 100644 index 0000000..27bed41 --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_rgeo.g.cs @@ -0,0 +1,540 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_rgeo.h declares. + public static partial class Meos + { + public static IntPtr TrgeometryIn(string str) + => SafeExecution(() => Native.TrgeometryIn(str)); + + public static IntPtr TrgeometryFromMfjson(string mfjson) + => SafeExecution(() => Native.TrgeometryFromMfjson(mfjson)); + + public static string TrgeometryOut(IntPtr temp) + => SafeExecution(() => Native.TrgeometryOut(temp)); + + public static string TrgeometryAsText(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TrgeometryAsText(temp, maxdd)); + + public static string TrgeometryAsEwkt(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TrgeometryAsEwkt(temp, maxdd)); + + public static IntPtr TrgeometryinstMake(IntPtr geom, IntPtr pose, long t) + => SafeExecution(() => Native.TrgeometryinstMake(geom, pose, t)); + + public static IntPtr TrgeometryseqMake(IntPtr geom, IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, bool normalize) + => SafeExecution(() => Native.TrgeometryseqMake(geom, instants, count, lower_inc, upper_inc, interp, normalize)); + + public static IntPtr TrgeometryseqsetMake(IntPtr geom, IntPtr sequences, int count, bool normalize) + => SafeExecution(() => Native.TrgeometryseqsetMake(geom, sequences, count, normalize)); + + public static IntPtr TrgeometryseqsetMakeGaps(IntPtr geom, IntPtr instants, int count, int interp, IntPtr maxt, double maxdist) + => SafeExecution(() => Native.TrgeometryseqsetMakeGaps(geom, instants, count, interp, maxt, maxdist)); + + public static IntPtr GeometryTposeToTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.GeometryTposeToTrgeometry(gs, temp)); + + public static IntPtr TrgeometryToTpose(IntPtr temp) + => SafeExecution(() => Native.TrgeometryToTpose(temp)); + + public static IntPtr TrgeometryToTgeompoint(IntPtr temp) + => SafeExecution(() => Native.TrgeometryToTgeompoint(temp)); + + public static IntPtr TrgeometryToTgeometry(IntPtr temp) + => SafeExecution(() => Native.TrgeometryToTgeometry(temp)); + + public static IntPtr TrgeometryEndInstant(IntPtr temp) + => SafeExecution(() => Native.TrgeometryEndInstant(temp)); + + public static IntPtr TrgeometryEndSequence(IntPtr temp) + => SafeExecution(() => Native.TrgeometryEndSequence(temp)); + + public static IntPtr TrgeometryEndValue(IntPtr temp) + => SafeExecution(() => Native.TrgeometryEndValue(temp)); + + public static IntPtr TrgeometryGeom(IntPtr temp) + => SafeExecution(() => Native.TrgeometryGeom(temp)); + + public static IntPtr TrgeometryInstantN(IntPtr temp, int n) + => SafeExecution(() => Native.TrgeometryInstantN(temp, n)); + + public static IntPtr[] TrgeometryInstants(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometryInstants(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TrgeometryPoints(IntPtr temp) + => SafeExecution(() => Native.TrgeometryPoints(temp)); + + public static IntPtr TrgeometryYaw(IntPtr temp) + => SafeExecution(() => Native.TrgeometryYaw(temp)); + + public static IntPtr TrgeometryPitch(IntPtr temp) + => SafeExecution(() => Native.TrgeometryPitch(temp)); + + public static IntPtr TrgeometryRoll(IntPtr temp) + => SafeExecution(() => Native.TrgeometryRoll(temp)); + + public static IntPtr[] TrgeometrySegments(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometrySegments(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TrgeometrySequenceN(IntPtr temp, int i) + => SafeExecution(() => Native.TrgeometrySequenceN(temp, i)); + + public static IntPtr[] TrgeometrySequences(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometrySequences(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr TrgeometryStartInstant(IntPtr temp) + => SafeExecution(() => Native.TrgeometryStartInstant(temp)); + + public static IntPtr TrgeometryStartSequence(IntPtr temp) + => SafeExecution(() => Native.TrgeometryStartSequence(temp)); + + public static IntPtr TrgeometryStartValue(IntPtr temp) + => SafeExecution(() => Native.TrgeometryStartValue(temp)); + + public static bool TrgeometryValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.TrgeometryValueN(temp, n, result)); + + public static IntPtr TrgeometryTraversedArea(IntPtr temp, bool unary_union) + => SafeExecution(() => Native.TrgeometryTraversedArea(temp, unary_union)); + + public static IntPtr TrgeometryCentroid(IntPtr temp) + => SafeExecution(() => Native.TrgeometryCentroid(temp)); + + public static IntPtr TrgeometryConvexHull(IntPtr temp) + => SafeExecution(() => Native.TrgeometryConvexHull(temp)); + + public static IntPtr TrgeometryBodyPointTrajectory(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TrgeometryBodyPointTrajectory(temp, gs)); + + public static IntPtr[] TrgeometrySpaceBoxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, bool bitmatrix, bool border_inc) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometrySpaceBoxes(temp, xsize, ysize, zsize, sorigin, bitmatrix, border_inc, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TrgeometrySpaceTimeBoxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool bitmatrix, bool border_inc) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometrySpaceTimeBoxes(temp, xsize, ysize, zsize, duration, sorigin, torigin, bitmatrix, border_inc, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TrgeometryStboxes(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometryStboxes(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TrgeometrySplitNStboxes(IntPtr temp, int box_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometrySplitNStboxes(temp, box_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TrgeometrySplitEachNStboxes(IntPtr temp, int elem_count) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometrySplitEachNStboxes(temp, elem_count, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 80); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double TrgeometryHausdorffDistance(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TrgeometryHausdorffDistance(temp1, temp2)); + + public static double TrgeometryFrechetDistance(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TrgeometryFrechetDistance(temp1, temp2)); + + public static double TrgeometryDyntimewarpDistance(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TrgeometryDyntimewarpDistance(temp1, temp2)); + + public static IntPtr[] TrgeometryFrechetPath(IntPtr temp1, IntPtr temp2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometryFrechetPath(temp1, temp2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 8); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] TrgeometryDyntimewarpPath(IntPtr temp1, IntPtr temp2) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.TrgeometryDyntimewarpPath(temp1, temp2, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = IntPtr.Add(_p, _i * 8); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static double TrgeometryLength(IntPtr temp) + => SafeExecution(() => Native.TrgeometryLength(temp)); + + public static IntPtr TrgeometryCumulativeLength(IntPtr temp) + => SafeExecution(() => Native.TrgeometryCumulativeLength(temp)); + + public static IntPtr TrgeometryAngularSpeed(IntPtr temp) + => SafeExecution(() => Native.TrgeometryAngularSpeed(temp)); + + public static IntPtr TrgeometrySpeed(IntPtr temp) + => SafeExecution(() => Native.TrgeometrySpeed(temp)); + + public static IntPtr TrgeometryTwcentroid(IntPtr temp) + => SafeExecution(() => Native.TrgeometryTwcentroid(temp)); + + public static IntPtr TrgeometryAppendTinstant(IntPtr temp, IntPtr inst, int interp, double maxdist, IntPtr maxt, bool expand) + => SafeExecution(() => Native.TrgeometryAppendTinstant(temp, inst, interp, maxdist, maxt, expand)); + + public static IntPtr TrgeometryAppendTsequence(IntPtr temp, IntPtr seq, bool expand) + => SafeExecution(() => Native.TrgeometryAppendTsequence(temp, seq, expand)); + + public static IntPtr TrgeometryDeleteTimestamptz(IntPtr temp, long t, bool connect) + => SafeExecution(() => Native.TrgeometryDeleteTimestamptz(temp, t, connect)); + + public static IntPtr TrgeometryDeleteTstzset(IntPtr temp, IntPtr s, bool connect) + => SafeExecution(() => Native.TrgeometryDeleteTstzset(temp, s, connect)); + + public static IntPtr TrgeometryDeleteTstzspan(IntPtr temp, IntPtr s, bool connect) + => SafeExecution(() => Native.TrgeometryDeleteTstzspan(temp, s, connect)); + + public static IntPtr TrgeometryDeleteTstzspanset(IntPtr temp, IntPtr ss, bool connect) + => SafeExecution(() => Native.TrgeometryDeleteTstzspanset(temp, ss, connect)); + + public static IntPtr TrgeometryMerge(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TrgeometryMerge(temp1, temp2)); + + public static IntPtr TrgeometryMergeArray(IntPtr temparr, int count) + => SafeExecution(() => Native.TrgeometryMergeArray(temparr, count)); + + public static IntPtr TrgeometryRound(IntPtr temp, int maxdd) + => SafeExecution(() => Native.TrgeometryRound(temp, maxdd)); + + public static IntPtr TrgeometrySetInterp(IntPtr temp, int interp) + => SafeExecution(() => Native.TrgeometrySetInterp(temp, interp)); + + public static IntPtr TrgeometryAsTinstant(IntPtr temp) + => SafeExecution(() => Native.TrgeometryAsTinstant(temp)); + + public static IntPtr TrgeometryAsTsequence(IntPtr temp, string interp_str) + => SafeExecution(() => Native.TrgeometryAsTsequence(temp, interp_str)); + + public static IntPtr TrgeometryAsTsequenceset(IntPtr temp, string interp_str) + => SafeExecution(() => Native.TrgeometryAsTsequenceset(temp, interp_str)); + + public static IntPtr TrgeometryAfterTimestamptz(IntPtr temp, long t, bool strict) + => SafeExecution(() => Native.TrgeometryAfterTimestamptz(temp, t, strict)); + + public static IntPtr TrgeometryBeforeTimestamptz(IntPtr temp, long t, bool strict) + => SafeExecution(() => Native.TrgeometryBeforeTimestamptz(temp, t, strict)); + + public static IntPtr TrgeometryRestrictValues(IntPtr temp, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TrgeometryRestrictValues(temp, s, atfunc)); + + public static IntPtr TrgeometryRestrictTimestamptz(IntPtr temp, long t, bool atfunc) + => SafeExecution(() => Native.TrgeometryRestrictTimestamptz(temp, t, atfunc)); + + public static IntPtr TrgeometryRestrictTstzset(IntPtr temp, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TrgeometryRestrictTstzset(temp, s, atfunc)); + + public static IntPtr TrgeometryRestrictTstzspan(IntPtr temp, IntPtr s, bool atfunc) + => SafeExecution(() => Native.TrgeometryRestrictTstzspan(temp, s, atfunc)); + + public static IntPtr TrgeometryRestrictTstzspanset(IntPtr temp, IntPtr ss, bool atfunc) + => SafeExecution(() => Native.TrgeometryRestrictTstzspanset(temp, ss, atfunc)); + + public static IntPtr TrgeometryAtGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TrgeometryAtGeom(temp, gs)); + + public static IntPtr TrgeometryMinusGeom(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TrgeometryMinusGeom(temp, gs)); + + public static IntPtr TrgeometryAtStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TrgeometryAtStbox(temp, box, border_inc)); + + public static IntPtr TrgeometryMinusStbox(IntPtr temp, IntPtr box, bool border_inc) + => SafeExecution(() => Native.TrgeometryMinusStbox(temp, box, border_inc)); + + public static IntPtr TrgeometryAtValue(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.TrgeometryAtValue(temp, pose)); + + public static IntPtr TrgeometryMinusValue(IntPtr temp, IntPtr pose) + => SafeExecution(() => Native.TrgeometryMinusValue(temp, pose)); + + public static IntPtr TrgeometryAtValues(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TrgeometryAtValues(temp, s)); + + public static IntPtr TrgeometryMinusValues(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TrgeometryMinusValues(temp, s)); + + public static IntPtr TrgeometryAtTimestamptz(IntPtr temp, long t) + => SafeExecution(() => Native.TrgeometryAtTimestamptz(temp, t)); + + public static IntPtr TrgeometryMinusTimestamptz(IntPtr temp, long t) + => SafeExecution(() => Native.TrgeometryMinusTimestamptz(temp, t)); + + public static IntPtr TrgeometryAtTstzset(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TrgeometryAtTstzset(temp, s)); + + public static IntPtr TrgeometryMinusTstzset(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TrgeometryMinusTstzset(temp, s)); + + public static IntPtr TrgeometryAtTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TrgeometryAtTstzspan(temp, s)); + + public static IntPtr TrgeometryMinusTstzspan(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TrgeometryMinusTstzspan(temp, s)); + + public static IntPtr TrgeometryAtTstzspanset(IntPtr temp, IntPtr ss) + => SafeExecution(() => Native.TrgeometryAtTstzspanset(temp, ss)); + + public static IntPtr TrgeometryMinusTstzspanset(IntPtr temp, IntPtr ss) + => SafeExecution(() => Native.TrgeometryMinusTstzspanset(temp, ss)); + + public static IntPtr TrgeometryAtElevation(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TrgeometryAtElevation(temp, s)); + + public static IntPtr TrgeometryMinusElevation(IntPtr temp, IntPtr s) + => SafeExecution(() => Native.TrgeometryMinusElevation(temp, s)); + + public static IntPtr TdistanceTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TdistanceTrgeometryGeo(temp, gs)); + + public static IntPtr TdistanceTrgeometryTpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdistanceTrgeometryTpoint(temp1, temp2)); + + public static IntPtr TdistanceTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TdistanceTrgeometryTrgeometry(temp1, temp2)); + + public static double NadStboxTrgeometry(IntPtr box, IntPtr temp) + => SafeExecution(() => Native.NadStboxTrgeometry(box, temp)); + + public static double NadTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NadTrgeometryGeo(temp, gs)); + + public static double NadTrgeometryStbox(IntPtr temp, IntPtr box) + => SafeExecution(() => Native.NadTrgeometryStbox(temp, box)); + + public static double NadTrgeometryTpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTrgeometryTpoint(temp1, temp2)); + + public static double NadTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NadTrgeometryTrgeometry(temp1, temp2)); + + public static IntPtr NaiTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.NaiTrgeometryGeo(temp, gs)); + + public static IntPtr NaiTrgeometryTpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NaiTrgeometryTpoint(temp1, temp2)); + + public static IntPtr NaiTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.NaiTrgeometryTrgeometry(temp1, temp2)); + + public static IntPtr ShortestlineTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.ShortestlineTrgeometryGeo(temp, gs)); + + public static IntPtr ShortestlineTrgeometryTpoint(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ShortestlineTrgeometryTpoint(temp1, temp2)); + + public static IntPtr ShortestlineTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.ShortestlineTrgeometryTrgeometry(temp1, temp2)); + + public static int AlwaysEqGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqGeoTrgeometry(gs, temp)); + + public static int AlwaysEqTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AlwaysEqTrgeometryGeo(temp, gs)); + + public static int AlwaysEqTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTrgeometryTrgeometry(temp1, temp2)); + + public static int AlwaysNeGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeGeoTrgeometry(gs, temp)); + + public static int AlwaysNeTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AlwaysNeTrgeometryGeo(temp, gs)); + + public static int AlwaysNeTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTrgeometryTrgeometry(temp1, temp2)); + + public static int EverEqGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EverEqGeoTrgeometry(gs, temp)); + + public static int EverEqTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EverEqTrgeometryGeo(temp, gs)); + + public static int EverEqTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTrgeometryTrgeometry(temp1, temp2)); + + public static int EverNeGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EverNeGeoTrgeometry(gs, temp)); + + public static int EverNeTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EverNeTrgeometryGeo(temp, gs)); + + public static int EverNeTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTrgeometryTrgeometry(temp1, temp2)); + + public static IntPtr TeqGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TeqGeoTrgeometry(gs, temp)); + + public static IntPtr TeqTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TeqTrgeometryGeo(temp, gs)); + + public static IntPtr TneGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.TneGeoTrgeometry(gs, temp)); + + public static IntPtr TneTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.TneTrgeometryGeo(temp, gs)); + + public static int EcontainsGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EcontainsGeoTrgeometry(gs, temp)); + + public static int AcontainsGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AcontainsGeoTrgeometry(gs, temp)); + + public static int EcoversGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.EcoversGeoTrgeometry(gs, temp)); + + public static int AcoversGeoTrgeometry(IntPtr gs, IntPtr temp) + => SafeExecution(() => Native.AcoversGeoTrgeometry(gs, temp)); + + public static int EcoversTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EcoversTrgeometryGeo(temp, gs)); + + public static int AcoversTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AcoversTrgeometryGeo(temp, gs)); + + public static int EdisjointTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EdisjointTrgeometryGeo(temp, gs)); + + public static int AdisjointTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AdisjointTrgeometryGeo(temp, gs)); + + public static int EintersectsTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EintersectsTrgeometryGeo(temp, gs)); + + public static int AintersectsTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AintersectsTrgeometryGeo(temp, gs)); + + public static int EtouchesTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.EtouchesTrgeometryGeo(temp, gs)); + + public static int AtouchesTrgeometryGeo(IntPtr temp, IntPtr gs) + => SafeExecution(() => Native.AtouchesTrgeometryGeo(temp, gs)); + + public static int EdwithinTrgeometryGeo(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.EdwithinTrgeometryGeo(temp, gs, dist)); + + public static int AdwithinTrgeometryGeo(IntPtr temp, IntPtr gs, double dist) + => SafeExecution(() => Native.AdwithinTrgeometryGeo(temp, gs, dist)); + + public static int EdisjointTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EdisjointTrgeometryTrgeometry(temp1, temp2)); + + public static int AdisjointTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AdisjointTrgeometryTrgeometry(temp1, temp2)); + + public static int EintersectsTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EintersectsTrgeometryTrgeometry(temp1, temp2)); + + public static int AintersectsTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AintersectsTrgeometryTrgeometry(temp1, temp2)); + + public static int EdwithinTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2, double dist) + => SafeExecution(() => Native.EdwithinTrgeometryTrgeometry(temp1, temp2, dist)); + + public static int AdwithinTrgeometryTrgeometry(IntPtr temp1, IntPtr temp2, double dist) + => SafeExecution(() => Native.AdwithinTrgeometryTrgeometry(temp1, temp2, dist)); + + } +} diff --git a/MEOS.NET/Functions/Meos.meos_s2cell.g.cs b/MEOS.NET/Functions/Meos.meos_s2cell.g.cs new file mode 100644 index 0000000..c972d3f --- /dev/null +++ b/MEOS.NET/Functions/Meos.meos_s2cell.g.cs @@ -0,0 +1,255 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions meos_s2cell.h declares. + public static partial class Meos + { + public static ulong S2cellIn(string str) + => SafeExecution(() => Native.S2cellIn(str)); + + public static string S2cellOut(ulong cell) + => SafeExecution(() => Native.S2cellOut(cell)); + + public static bool S2cellEq(ulong a, ulong b) + => SafeExecution(() => Native.S2cellEq(a, b)); + + public static bool S2cellNe(ulong a, ulong b) + => SafeExecution(() => Native.S2cellNe(a, b)); + + public static bool S2cellLt(ulong a, ulong b) + => SafeExecution(() => Native.S2cellLt(a, b)); + + public static bool S2cellLe(ulong a, ulong b) + => SafeExecution(() => Native.S2cellLe(a, b)); + + public static bool S2cellGt(ulong a, ulong b) + => SafeExecution(() => Native.S2cellGt(a, b)); + + public static bool S2cellGe(ulong a, ulong b) + => SafeExecution(() => Native.S2cellGe(a, b)); + + public static int S2cellCmp(ulong a, ulong b) + => SafeExecution(() => Native.S2cellCmp(a, b)); + + public static uint S2cellHash(ulong cell) + => SafeExecution(() => Native.S2cellHash(cell)); + + public static ulong S2cellHashExtended(ulong cell, ulong seed) + => SafeExecution(() => Native.S2cellHashExtended(cell, seed)); + + public static bool S2cellIsValidCell(ulong cell) + => SafeExecution(() => Native.S2cellIsValidCell(cell)); + + public static string S2cellCellToToken(ulong cell) + => SafeExecution(() => Native.S2cellCellToToken(cell)); + + public static ulong S2cellTokenToCell(string token) + => SafeExecution(() => Native.S2cellTokenToCell(token)); + + public static uint S2cellGetResolution(ulong cell) + => SafeExecution(() => Native.S2cellGetResolution(cell)); + + public static uint S2cellGetFace(ulong cell) + => SafeExecution(() => Native.S2cellGetFace(cell)); + + public static ulong S2cellCellToParent(ulong cell, uint level) + => SafeExecution(() => Native.S2cellCellToParent(cell, level)); + + public static ulong S2cellCellToChild(ulong cell, uint level, uint position) + => SafeExecution(() => Native.S2cellCellToChild(cell, level, position)); + + public static IntPtr[] S2cellCellToChildren(ulong cell, uint level) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.S2cellCellToChildren(cell, level, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool S2cellCellContains(ulong cell, ulong other) + => SafeExecution(() => Native.S2cellCellContains(cell, other)); + + public static int S2cellCommonAncestorLevel(ulong a, ulong b) + => SafeExecution(() => Native.S2cellCommonAncestorLevel(a, b)); + + public static ulong S2cellRangeMin(ulong cell) + => SafeExecution(() => Native.S2cellRangeMin(cell)); + + public static ulong S2cellRangeMax(ulong cell) + => SafeExecution(() => Native.S2cellRangeMax(cell)); + + public static IntPtr[] S2cellEdgeNeighbors(ulong cell) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.S2cellEdgeNeighbors(cell, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static ulong S2cellPointToCell(double longitude, double latitude, uint level) + => SafeExecution(() => Native.S2cellPointToCell(longitude, latitude, level)); + + public static double S2cellCellArea(ulong cell) + => SafeExecution(() => Native.S2cellCellArea(cell)); + + public static double S2cellEdgeLength(ulong cell, uint edge) + => SafeExecution(() => Native.S2cellEdgeLength(cell, edge)); + + public static ulong GeoToS2cellCell(IntPtr point, int level) + => SafeExecution(() => Native.GeoToS2cellCell(point, level)); + + public static IntPtr S2cellCellToGeogpoint(ulong cell) + => SafeExecution(() => Native.S2cellCellToGeogpoint(cell)); + + public static IntPtr S2cellCellToGeog(ulong cell) + => SafeExecution(() => Native.S2cellCellToGeog(cell)); + + public static IntPtr S2cellToStbox(ulong cell) + => SafeExecution(() => Native.S2cellToStbox(cell)); + + public static IntPtr S2cellTimestamptzToStbox(ulong cell, long t) + => SafeExecution(() => Native.S2cellTimestamptzToStbox(cell, t)); + + public static IntPtr S2cellTstzspanToStbox(ulong cell, IntPtr s) + => SafeExecution(() => Native.S2cellTstzspanToStbox(cell, s)); + + public static IntPtr S2cellEdgeNeighborsSet(ulong cell) + => SafeExecution(() => Native.S2cellEdgeNeighborsSet(cell)); + + public static IntPtr S2cellCellToChildrenSet(ulong cell, int children_level) + => SafeExecution(() => Native.S2cellCellToChildrenSet(cell, children_level)); + + public static IntPtr Ts2cellIn(string str) + => SafeExecution(() => Native.Ts2cellIn(str)); + + public static IntPtr Ts2cellinstIn(string str) + => SafeExecution(() => Native.Ts2cellinstIn(str)); + + public static IntPtr Ts2cellseqIn(string str, int interp) + => SafeExecution(() => Native.Ts2cellseqIn(str, interp)); + + public static IntPtr Ts2cellseqsetIn(string str) + => SafeExecution(() => Native.Ts2cellseqsetIn(str)); + + public static IntPtr Ts2cellMake(ulong value, long t) + => SafeExecution(() => Native.Ts2cellMake(value, t)); + + public static IntPtr Ts2cellinstMake(ulong value, long t) + => SafeExecution(() => Native.Ts2cellinstMake(value, t)); + + public static IntPtr Ts2cellseqMake(IntPtr values, IntPtr times, int count, bool lower_inc, bool upper_inc) + => SafeExecution(() => Native.Ts2cellseqMake(values, times, count, lower_inc, upper_inc)); + + public static IntPtr Ts2cellseqsetMake(IntPtr sequences, int count) + => SafeExecution(() => Native.Ts2cellseqsetMake(sequences, count)); + + public static ulong Ts2cellStartValue(IntPtr temp) + => SafeExecution(() => Native.Ts2cellStartValue(temp)); + + public static ulong Ts2cellEndValue(IntPtr temp) + => SafeExecution(() => Native.Ts2cellEndValue(temp)); + + public static bool Ts2cellValueN(IntPtr temp, int n, IntPtr result) + => SafeExecution(() => Native.Ts2cellValueN(temp, n, result)); + + public static IntPtr[] Ts2cellValues(IntPtr temp) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.Ts2cellValues(temp, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static bool Ts2cellValueAtTimestamptz(IntPtr temp, long t, bool strict, IntPtr result) + => SafeExecution(() => Native.Ts2cellValueAtTimestamptz(temp, t, strict, result)); + + public static IntPtr S2cellToSet(ulong cell) + => SafeExecution(() => Native.S2cellToSet(cell)); + + public static IntPtr TbigintToTs2cell(IntPtr temp) + => SafeExecution(() => Native.TbigintToTs2cell(temp)); + + public static IntPtr Ts2cellToTbigint(IntPtr temp) + => SafeExecution(() => Native.Ts2cellToTbigint(temp)); + + public static int EverEqS2cellTs2cell(ulong cell, IntPtr temp) + => SafeExecution(() => Native.EverEqS2cellTs2cell(cell, temp)); + + public static int EverEqTs2cellS2cell(IntPtr temp, ulong cell) + => SafeExecution(() => Native.EverEqTs2cellS2cell(temp, cell)); + + public static int EverNeS2cellTs2cell(ulong cell, IntPtr temp) + => SafeExecution(() => Native.EverNeS2cellTs2cell(cell, temp)); + + public static int EverNeTs2cellS2cell(IntPtr temp, ulong cell) + => SafeExecution(() => Native.EverNeTs2cellS2cell(temp, cell)); + + public static int AlwaysEqS2cellTs2cell(ulong cell, IntPtr temp) + => SafeExecution(() => Native.AlwaysEqS2cellTs2cell(cell, temp)); + + public static int AlwaysEqTs2cellS2cell(IntPtr temp, ulong cell) + => SafeExecution(() => Native.AlwaysEqTs2cellS2cell(temp, cell)); + + public static int AlwaysNeS2cellTs2cell(ulong cell, IntPtr temp) + => SafeExecution(() => Native.AlwaysNeS2cellTs2cell(cell, temp)); + + public static int AlwaysNeTs2cellS2cell(IntPtr temp, ulong cell) + => SafeExecution(() => Native.AlwaysNeTs2cellS2cell(temp, cell)); + + public static int EverEqTs2cellTs2cell(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverEqTs2cellTs2cell(temp1, temp2)); + + public static int EverNeTs2cellTs2cell(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.EverNeTs2cellTs2cell(temp1, temp2)); + + public static int AlwaysEqTs2cellTs2cell(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysEqTs2cellTs2cell(temp1, temp2)); + + public static int AlwaysNeTs2cellTs2cell(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.AlwaysNeTs2cellTs2cell(temp1, temp2)); + + public static IntPtr TeqS2cellTs2cell(ulong cell, IntPtr temp) + => SafeExecution(() => Native.TeqS2cellTs2cell(cell, temp)); + + public static IntPtr TeqTs2cellS2cell(IntPtr temp, ulong cell) + => SafeExecution(() => Native.TeqTs2cellS2cell(temp, cell)); + + public static IntPtr TeqTs2cellTs2cell(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TeqTs2cellTs2cell(temp1, temp2)); + + public static IntPtr TneS2cellTs2cell(ulong cell, IntPtr temp) + => SafeExecution(() => Native.TneS2cellTs2cell(cell, temp)); + + public static IntPtr TneTs2cellS2cell(IntPtr temp, ulong cell) + => SafeExecution(() => Native.TneTs2cellS2cell(temp, cell)); + + public static IntPtr TneTs2cellTs2cell(IntPtr temp1, IntPtr temp2) + => SafeExecution(() => Native.TneTs2cellTs2cell(temp1, temp2)); + + public static IntPtr Ts2cellCellToToken(IntPtr temp) + => SafeExecution(() => Native.Ts2cellCellToToken(temp)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pc_api.g.cs b/MEOS.NET/Functions/Meos.pc_api.g.cs new file mode 100644 index 0000000..12f557a --- /dev/null +++ b/MEOS.NET/Functions/Meos.pc_api.g.cs @@ -0,0 +1,270 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pc_api.h declares. + public static partial class Meos + { + public static IntPtr Pcalloc(ulong size) + => SafeExecution(() => Native.Pcalloc(size)); + + public static IntPtr Pcrealloc(IntPtr mem, ulong size) + => SafeExecution(() => Native.Pcrealloc(mem, size)); + + public static void Pcfree(IntPtr mem) + => SafeExecution(() => Native.Pcfree(mem)); + + public static void Pcerror(string fmt) + => SafeExecution(() => Native.Pcerror(fmt)); + + public static void Pcinfo(string fmt) + => SafeExecution(() => Native.Pcinfo(fmt)); + + public static void Pcwarn(string fmt) + => SafeExecution(() => Native.Pcwarn(fmt)); + + public static void PcSetHandlers(IntPtr allocator, IntPtr reallocator, IntPtr deallocator, IntPtr error_handler, IntPtr info_handler, IntPtr warning_handler) + => SafeExecution(() => Native.PcSetHandlers(allocator, reallocator, deallocator, error_handler, info_handler, warning_handler)); + + public static void PcInstallDefaultHandlers() + => SafeExecution(() => Native.PcInstallDefaultHandlers()); + + public static IntPtr PcBytesFromHexbytes(string hexbuf, ulong hexsize) + => SafeExecution(() => Native.PcBytesFromHexbytes(hexbuf, hexsize)); + + public static string PcHexbytesFromBytes(IntPtr bytebuf, ulong bytesize) + => SafeExecution(() => Native.PcHexbytesFromBytes(bytebuf, bytesize)); + + public static uint PcWkbGetPcid(IntPtr wkb) + => SafeExecution(() => Native.PcWkbGetPcid(wkb)); + + public static IntPtr PcDimstatsMake(IntPtr schema) + => SafeExecution(() => Native.PcDimstatsMake(schema)); + + public static string? PcCompressionName(int num) + => Marshal.PtrToStringUTF8(SafeExecution(() => Native.PcCompressionName(num))); + + public static void PcSchemaFree(IntPtr pcs) + => SafeExecution(() => Native.PcSchemaFree(pcs)); + + public static IntPtr PcSchemaNew(uint ndims) + => SafeExecution(() => Native.PcSchemaNew(ndims)); + + public static int PcInterpretationNumber(string str) + => SafeExecution(() => Native.PcInterpretationNumber(str)); + + public static int PcCompressionNumber(string str) + => SafeExecution(() => Native.PcCompressionNumber(str)); + + public static IntPtr PcSchemaFromXml(string xmlstr) + => SafeExecution(() => Native.PcSchemaFromXml(xmlstr)); + + public static string PcSchemaToJson(IntPtr pcs) + => SafeExecution(() => Native.PcSchemaToJson(pcs)); + + public static IntPtr PcSchemaGetDimension(IntPtr s, uint dim) + => SafeExecution(() => Native.PcSchemaGetDimension(s, dim)); + + public static IntPtr PcSchemaGetDimensionByName(IntPtr s, string name) + => SafeExecution(() => Native.PcSchemaGetDimensionByName(s, name)); + + public static uint PcSchemaIsValid(IntPtr s) + => SafeExecution(() => Native.PcSchemaIsValid(s)); + + public static IntPtr PcSchemaClone(IntPtr s) + => SafeExecution(() => Native.PcSchemaClone(s)); + + public static void PcSchemaSetDimension(IntPtr s, IntPtr d) + => SafeExecution(() => Native.PcSchemaSetDimension(s, d)); + + public static void PcSchemaCheckXyzm(IntPtr s) + => SafeExecution(() => Native.PcSchemaCheckXyzm(s)); + + public static ulong PcSchemaGetSize(IntPtr s) + => SafeExecution(() => Native.PcSchemaGetSize(s)); + + public static uint PcSchemaSameDimensions(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.PcSchemaSameDimensions(s1, s2)); + + public static uint PcSchemaSameInterpretations(IntPtr s1, IntPtr s2) + => SafeExecution(() => Native.PcSchemaSameInterpretations(s1, s2)); + + public static IntPtr PcPointlistMake(uint npoints) + => SafeExecution(() => Native.PcPointlistMake(npoints)); + + public static void PcPointlistFree(IntPtr pl) + => SafeExecution(() => Native.PcPointlistFree(pl)); + + public static void PcPointlistAddPoint(IntPtr pl, IntPtr pt) + => SafeExecution(() => Native.PcPointlistAddPoint(pl, pt)); + + public static IntPtr PcPointlistGetPoint(IntPtr pl, int i) + => SafeExecution(() => Native.PcPointlistGetPoint(pl, i)); + + public static IntPtr PcPointMake(IntPtr s) + => SafeExecution(() => Native.PcPointMake(s)); + + public static IntPtr PcPointFromData(IntPtr s, IntPtr data) + => SafeExecution(() => Native.PcPointFromData(s, data)); + + public static IntPtr PcPointFromDoubleArray(IntPtr s, IntPtr array, uint offset, uint stride) + => SafeExecution(() => Native.PcPointFromDoubleArray(s, array, offset, stride)); + + public static IntPtr PcPointToDoubleArray(IntPtr pt) + => SafeExecution(() => Native.PcPointToDoubleArray(pt)); + + public static void PcPointFree(IntPtr pt) + => SafeExecution(() => Native.PcPointFree(pt)); + + public static int PcPointGetDoubleByName(IntPtr pt, string name, IntPtr val) + => SafeExecution(() => Native.PcPointGetDoubleByName(pt, name, val)); + + public static int PcPointGetDoubleByIndex(IntPtr pt, uint idx, IntPtr val) + => SafeExecution(() => Native.PcPointGetDoubleByIndex(pt, idx, val)); + + public static int PcPointGetDouble(IntPtr pt, IntPtr dim, IntPtr val) + => SafeExecution(() => Native.PcPointGetDouble(pt, dim, val)); + + public static int PcPointSetDoubleByName(IntPtr pt, string name, double val) + => SafeExecution(() => Native.PcPointSetDoubleByName(pt, name, val)); + + public static int PcPointSetDoubleByIndex(IntPtr pt, uint idx, double val) + => SafeExecution(() => Native.PcPointSetDoubleByIndex(pt, idx, val)); + + public static int PcPointSetDouble(IntPtr pt, IntPtr dim, double val) + => SafeExecution(() => Native.PcPointSetDouble(pt, dim, val)); + + public static int PcPointGetX(IntPtr pt, IntPtr val) + => SafeExecution(() => Native.PcPointGetX(pt, val)); + + public static int PcPointGetY(IntPtr pt, IntPtr val) + => SafeExecution(() => Native.PcPointGetY(pt, val)); + + public static int PcPointGetZ(IntPtr pt, IntPtr val) + => SafeExecution(() => Native.PcPointGetZ(pt, val)); + + public static int PcPointGetM(IntPtr pt, IntPtr val) + => SafeExecution(() => Native.PcPointGetM(pt, val)); + + public static int PcPointSetX(IntPtr pt, double val) + => SafeExecution(() => Native.PcPointSetX(pt, val)); + + public static int PcPointSetY(IntPtr pt, double val) + => SafeExecution(() => Native.PcPointSetY(pt, val)); + + public static int PcPointSetZ(IntPtr pt, double val) + => SafeExecution(() => Native.PcPointSetZ(pt, val)); + + public static int PcPointSetM(IntPtr pt, double val) + => SafeExecution(() => Native.PcPointSetM(pt, val)); + + public static IntPtr PcPointFromWkb(IntPtr s, IntPtr wkb, ulong wkbsize) + => SafeExecution(() => Native.PcPointFromWkb(s, wkb, wkbsize)); + + public static IntPtr PcPointToWkb(IntPtr pt, IntPtr wkbsize) + => SafeExecution(() => Native.PcPointToWkb(pt, wkbsize)); + + public static string PcPointToString(IntPtr pt) + => SafeExecution(() => Native.PcPointToString(pt)); + + public static IntPtr PcPointToGeometryWkb(IntPtr pt, IntPtr wkbsize) + => SafeExecution(() => Native.PcPointToGeometryWkb(pt, wkbsize)); + + public static IntPtr PcPatchFromPointlist(IntPtr ptl) + => SafeExecution(() => Native.PcPatchFromPointlist(ptl)); + + public static IntPtr PcPointlistFromPatch(IntPtr patch) + => SafeExecution(() => Native.PcPointlistFromPatch(patch)); + + public static IntPtr PcPatchFromPatchlist(IntPtr palist, int numpatches) + => SafeExecution(() => Native.PcPatchFromPatchlist(palist, numpatches)); + + public static void PcPatchFree(IntPtr patch) + => SafeExecution(() => Native.PcPatchFree(patch)); + + public static IntPtr PcPatchCompress(IntPtr patch, IntPtr userdata) + => SafeExecution(() => Native.PcPatchCompress(patch, userdata)); + + public static IntPtr PcPatchUncompress(IntPtr patch) + => SafeExecution(() => Native.PcPatchUncompress(patch)); + + public static IntPtr PcPatchFromWkb(IntPtr s, IntPtr wkb, ulong wkbsize) + => SafeExecution(() => Native.PcPatchFromWkb(s, wkb, wkbsize)); + + public static IntPtr PcPatchToWkb(IntPtr patch, IntPtr wkbsize) + => SafeExecution(() => Native.PcPatchToWkb(patch, wkbsize)); + + public static string PcPatchToString(IntPtr patch) + => SafeExecution(() => Native.PcPatchToString(patch)); + + public static ulong PcPatchDimensionalSerializedSize(IntPtr patch) + => SafeExecution(() => Native.PcPatchDimensionalSerializedSize(patch)); + + public static ulong PcBytesSerializedSize(IntPtr pcb) + => SafeExecution(() => Native.PcBytesSerializedSize(pcb)); + + public static int PcBytesSerialize(IntPtr pcb, IntPtr buf, IntPtr size) + => SafeExecution(() => Native.PcBytesSerialize(pcb, buf, size)); + + public static int PcBytesDeserialize(IntPtr buf, IntPtr dim, IntPtr pcb, int @readonly, int flip_endian) + => SafeExecution(() => Native.PcBytesDeserialize(buf, dim, pcb, @readonly, flip_endian)); + + public static IntPtr PcStatsNewFromData(IntPtr schema, IntPtr mindata, IntPtr maxdata, IntPtr avgdata) + => SafeExecution(() => Native.PcStatsNewFromData(schema, mindata, maxdata, avgdata)); + + public static IntPtr PcStatsNew(IntPtr schema) + => SafeExecution(() => Native.PcStatsNew(schema)); + + public static void PcStatsFree(IntPtr stats) + => SafeExecution(() => Native.PcStatsFree(stats)); + + public static ulong PcStatsSize(IntPtr schema) + => SafeExecution(() => Native.PcStatsSize(schema)); + + public static int PcPatchComputeStats(IntPtr patch) + => SafeExecution(() => Native.PcPatchComputeStats(patch)); + + public static int PcPatchComputeExtent(IntPtr patch) + => SafeExecution(() => Native.PcPatchComputeExtent(patch)); + + public static int PcBoundsIntersects(IntPtr b1, IntPtr b2) + => SafeExecution(() => Native.PcBoundsIntersects(b1, b2)); + + public static IntPtr PcBoundingDiagonalWkbFromBounds(IntPtr bounds, IntPtr schema, IntPtr wkbsize) + => SafeExecution(() => Native.PcBoundingDiagonalWkbFromBounds(bounds, schema, wkbsize)); + + public static IntPtr PcBoundingDiagonalWkbFromStats(IntPtr stats, IntPtr wkbsize) + => SafeExecution(() => Native.PcBoundingDiagonalWkbFromStats(stats, wkbsize)); + + public static IntPtr PcPatchFilterLtByName(IntPtr pa, string name, double val) + => SafeExecution(() => Native.PcPatchFilterLtByName(pa, name, val)); + + public static IntPtr PcPatchFilterGtByName(IntPtr pa, string name, double val) + => SafeExecution(() => Native.PcPatchFilterGtByName(pa, name, val)); + + public static IntPtr PcPatchFilterEqualByName(IntPtr pa, string name, double val) + => SafeExecution(() => Native.PcPatchFilterEqualByName(pa, name, val)); + + public static IntPtr PcPatchFilterBetweenByName(IntPtr pa, string name, double val1, double val2) + => SafeExecution(() => Native.PcPatchFilterBetweenByName(pa, name, val1, val2)); + + public static IntPtr PcPatchPointn(IntPtr patch, int n) + => SafeExecution(() => Native.PcPatchPointn(patch, n)); + + public static IntPtr PcPatchSort(IntPtr pa, IntPtr name, int ndims) + => SafeExecution(() => Native.PcPatchSort(pa, name, ndims)); + + public static uint PcPatchIsSorted(IntPtr pa, IntPtr name, int ndims, byte strict) + => SafeExecution(() => Native.PcPatchIsSorted(pa, name, ndims, strict)); + + public static IntPtr PcPatchRange(IntPtr pa, int first, int count) + => SafeExecution(() => Native.PcPatchRange(pa, first, count)); + + public static IntPtr PcPatchSetSchema(IntPtr patch, IntPtr schema, double def) + => SafeExecution(() => Native.PcPatchSetSchema(patch, schema, def)); + + public static IntPtr PcPatchTransform(IntPtr patch, IntPtr schema, double def) + => SafeExecution(() => Native.PcPatchTransform(patch, schema, def)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_bool.g.cs b/MEOS.NET/Functions/Meos.pg_bool.g.cs new file mode 100644 index 0000000..1c84d8e --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_bool.g.cs @@ -0,0 +1,36 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_bool.h declares. + public static partial class Meos + { + public static bool BoolEq(bool arg1, bool arg2) + => SafeExecution(() => Native.BoolEq(arg1, arg2)); + + public static bool BoolGe(bool arg1, bool arg2) + => SafeExecution(() => Native.BoolGe(arg1, arg2)); + + public static bool BoolGt(bool arg1, bool arg2) + => SafeExecution(() => Native.BoolGt(arg1, arg2)); + + public static uint BoolHash(bool arg) + => SafeExecution(() => Native.BoolHash(arg)); + + public static ulong BoolHashExtended(bool arg, long seed) + => SafeExecution(() => Native.BoolHashExtended(arg, seed)); + + public static bool BoolLe(bool arg1, bool arg2) + => SafeExecution(() => Native.BoolLe(arg1, arg2)); + + public static bool BoolLt(bool arg1, bool arg2) + => SafeExecution(() => Native.BoolLt(arg1, arg2)); + + public static bool BoolNe(bool arg1, bool arg2) + => SafeExecution(() => Native.BoolNe(arg1, arg2)); + + public static IntPtr BoolToText(bool b) + => SafeExecution(() => Native.BoolToText(b)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_date.g.cs b/MEOS.NET/Functions/Meos.pg_date.g.cs new file mode 100644 index 0000000..98355e3 --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_date.g.cs @@ -0,0 +1,165 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_date.h declares. + public static partial class Meos + { + public static int AddDateInt(int date, int days) + => SafeExecution(() => Native.AddDateInt(date, days)); + + public static int AddDateInterval(int date, IntPtr interv) + => SafeExecution(() => Native.AddDateInterval(date, interv)); + + public static int CmpDateTimestamp(int date, long ts) + => SafeExecution(() => Native.CmpDateTimestamp(date, ts)); + + public static int CmpDateDate(int date1, int date2) + => SafeExecution(() => Native.CmpDateDate(date1, date2)); + + public static int CmpDateTimestamptz(int date, long tstz) + => SafeExecution(() => Native.CmpDateTimestamptz(date, tstz)); + + public static int CmpTimestampDate(long ts, int date) + => SafeExecution(() => Native.CmpTimestampDate(ts, date)); + + public static int CmpTimestamptzDate(long tstz, int date) + => SafeExecution(() => Native.CmpTimestamptzDate(tstz, date)); + + public static IntPtr DateExtract(int date, IntPtr units) + => SafeExecution(() => Native.DateExtract(date, units)); + + public static uint DateHash(int date) + => SafeExecution(() => Native.DateHash(date)); + + public static ulong DateHashExtended(int date, long seed) + => SafeExecution(() => Native.DateHashExtended(date, seed)); + + public static bool DateIsFinite(int date) + => SafeExecution(() => Native.DateIsFinite(date)); + + public static int DateLarger(int date1, int date2) + => SafeExecution(() => Native.DateLarger(date1, date2)); + + public static int DateMake(int year, int mon, int mday) + => SafeExecution(() => Native.DateMake(year, mon, mday)); + + public static int DateSmaller(int date1, int date2) + => SafeExecution(() => Native.DateSmaller(date1, date2)); + + public static long DateTimeToTimestamp(int date, long time) + => SafeExecution(() => Native.DateTimeToTimestamp(date, time)); + + public static long DateToTimestamp(int date) + => SafeExecution(() => Native.DateToTimestamp(date)); + + public static long DateToTimestamptz(int date) + => SafeExecution(() => Native.DateToTimestamptz(date)); + + public static bool EqDateDate(int date1, int date2) + => SafeExecution(() => Native.EqDateDate(date1, date2)); + + public static bool EqDateTimestamp(int date, long ts) + => SafeExecution(() => Native.EqDateTimestamp(date, ts)); + + public static bool EqDateTimestamptz(int date, long tstz) + => SafeExecution(() => Native.EqDateTimestamptz(date, tstz)); + + public static bool EqTimestampDate(long ts, int date) + => SafeExecution(() => Native.EqTimestampDate(ts, date)); + + public static bool EqTimestamptzDate(long tstz, int date) + => SafeExecution(() => Native.EqTimestamptzDate(tstz, date)); + + public static bool GeDateDate(int date1, int date2) + => SafeExecution(() => Native.GeDateDate(date1, date2)); + + public static bool GeDateTimestamp(int date, long ts) + => SafeExecution(() => Native.GeDateTimestamp(date, ts)); + + public static bool GeDateTimestamptz(int date, long tstz) + => SafeExecution(() => Native.GeDateTimestamptz(date, tstz)); + + public static bool GeTimestampDate(long ts, int date) + => SafeExecution(() => Native.GeTimestampDate(ts, date)); + + public static bool GeTimestamptzDate(long tstz, int date) + => SafeExecution(() => Native.GeTimestamptzDate(tstz, date)); + + public static bool GtDateDate(int date1, int date2) + => SafeExecution(() => Native.GtDateDate(date1, date2)); + + public static bool GtDateTimestamp(int date, long ts) + => SafeExecution(() => Native.GtDateTimestamp(date, ts)); + + public static bool GtDateTimestamptz(int date, long tstz) + => SafeExecution(() => Native.GtDateTimestamptz(date, tstz)); + + public static bool GtTimestampDate(long ts, int date) + => SafeExecution(() => Native.GtTimestampDate(ts, date)); + + public static bool GtTimestamptzDate(long tstz, int date) + => SafeExecution(() => Native.GtTimestamptzDate(tstz, date)); + + public static bool LeDateDate(int date1, int date2) + => SafeExecution(() => Native.LeDateDate(date1, date2)); + + public static bool LeDateTimestamp(int date, long ts) + => SafeExecution(() => Native.LeDateTimestamp(date, ts)); + + public static bool LeDateTimestamptz(int date, long tstz) + => SafeExecution(() => Native.LeDateTimestamptz(date, tstz)); + + public static bool LeTimestampDate(long ts, int date) + => SafeExecution(() => Native.LeTimestampDate(ts, date)); + + public static bool LeTimestamptzDate(long tstz, int date) + => SafeExecution(() => Native.LeTimestamptzDate(tstz, date)); + + public static bool LtDateDate(int date1, int date2) + => SafeExecution(() => Native.LtDateDate(date1, date2)); + + public static bool LtDateTimestamp(int date, long ts) + => SafeExecution(() => Native.LtDateTimestamp(date, ts)); + + public static bool LtDateTimestamptz(int date, long tstz) + => SafeExecution(() => Native.LtDateTimestamptz(date, tstz)); + + public static bool LtTimestampDate(long ts, int date) + => SafeExecution(() => Native.LtTimestampDate(ts, date)); + + public static bool LtTimestamptzDate(long tstz, int date) + => SafeExecution(() => Native.LtTimestamptzDate(tstz, date)); + + public static int MinusDateDate(int date1, int date2) + => SafeExecution(() => Native.MinusDateDate(date1, date2)); + + public static int MinusDateInt(int date, int days) + => SafeExecution(() => Native.MinusDateInt(date, days)); + + public static int MinusDateInterval(int date, IntPtr span) + => SafeExecution(() => Native.MinusDateInterval(date, span)); + + public static bool NeDateDate(int date1, int date2) + => SafeExecution(() => Native.NeDateDate(date1, date2)); + + public static bool NeDateTimestamp(int date, long ts) + => SafeExecution(() => Native.NeDateTimestamp(date, ts)); + + public static bool NeDateTimestamptz(int date, long tstz) + => SafeExecution(() => Native.NeDateTimestamptz(date, tstz)); + + public static bool NeTimestampDate(long ts, int date) + => SafeExecution(() => Native.NeTimestampDate(ts, date)); + + public static bool NeTimestamptzDate(long tstz, int date) + => SafeExecution(() => Native.NeTimestamptzDate(tstz, date)); + + public static int TimestampToDate(long ts) + => SafeExecution(() => Native.TimestampToDate(ts)); + + public static int TimestamptzToDate(long tstz) + => SafeExecution(() => Native.TimestamptzToDate(tstz)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_float.g.cs b/MEOS.NET/Functions/Meos.pg_float.g.cs new file mode 100644 index 0000000..248435e --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_float.g.cs @@ -0,0 +1,336 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_float.h declares. + public static partial class Meos + { + public static float AddFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.AddFloat4Float4(num1, num2)); + + public static double AddFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.AddFloat4Float8(num1, num2)); + + public static double AddFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.AddFloat8Float4(num1, num2)); + + public static double AddFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.AddFloat8Float8(num1, num2)); + + public static float DivFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.DivFloat4Float4(num1, num2)); + + public static double DivFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.DivFloat4Float8(num1, num2)); + + public static double DivFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.DivFloat8Float4(num1, num2)); + + public static double DivFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.DivFloat8Float8(num1, num2)); + + public static bool EqFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.EqFloat4Float4(num1, num2)); + + public static bool EqFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.EqFloat4Float8(num1, num2)); + + public static bool EqFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.EqFloat8Float4(num1, num2)); + + public static bool EqFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.EqFloat8Float8(num1, num2)); + + public static float Float4Abs(float num) + => SafeExecution(() => Native.Float4Abs(num)); + + public static int Float4Cmp(float num1, float num2) + => SafeExecution(() => Native.Float4Cmp(num1, num2)); + + public static uint Float4Hash(float num) + => SafeExecution(() => Native.Float4Hash(num)); + + public static ulong Float4HashExtended(float num, ulong seed) + => SafeExecution(() => Native.Float4HashExtended(num, seed)); + + public static float Float4In(string num) + => SafeExecution(() => Native.Float4In(num)); + + public static float Float4Larger(float num1, float num2) + => SafeExecution(() => Native.Float4Larger(num1, num2)); + + public static string Float4Out(float num) + => SafeExecution(() => Native.Float4Out(num)); + + public static float Float4Smaller(float num1, float num2) + => SafeExecution(() => Native.Float4Smaller(num1, num2)); + + public static double Float4ToFloat8(float num) + => SafeExecution(() => Native.Float4ToFloat8(num)); + + public static short Float4ToInt16(float num) + => SafeExecution(() => Native.Float4ToInt16(num)); + + public static int Float4ToInt32(float num) + => SafeExecution(() => Native.Float4ToInt32(num)); + + public static float Float4Um(float num) + => SafeExecution(() => Native.Float4Um(num)); + + public static float Float4Up(float num) + => SafeExecution(() => Native.Float4Up(num)); + + public static double Float8Abs(double num) + => SafeExecution(() => Native.Float8Abs(num)); + + public static double Float8Acos(double num) + => SafeExecution(() => Native.Float8Acos(num)); + + public static double Float8Acosd(double num) + => SafeExecution(() => Native.Float8Acosd(num)); + + public static double Float8Acosh(double num) + => SafeExecution(() => Native.Float8Acosh(num)); + + public static double Float8Asin(double num) + => SafeExecution(() => Native.Float8Asin(num)); + + public static double Float8Asind(double num) + => SafeExecution(() => Native.Float8Asind(num)); + + public static double Float8Asinh(double num) + => SafeExecution(() => Native.Float8Asinh(num)); + + public static double Float8Atan(double num) + => SafeExecution(() => Native.Float8Atan(num)); + + public static double Float8Atan2(double num1, double num2) + => SafeExecution(() => Native.Float8Atan2(num1, num2)); + + public static double Float8Atan2d(double num1, double num2) + => SafeExecution(() => Native.Float8Atan2d(num1, num2)); + + public static double Float8Atand(double num) + => SafeExecution(() => Native.Float8Atand(num)); + + public static double Float8Atanh(double num) + => SafeExecution(() => Native.Float8Atanh(num)); + + public static double Float8Cbrt(double num) + => SafeExecution(() => Native.Float8Cbrt(num)); + + public static double Float8Ceil(double num) + => SafeExecution(() => Native.Float8Ceil(num)); + + public static int Float8Cmp(double num1, double num2) + => SafeExecution(() => Native.Float8Cmp(num1, num2)); + + public static double Float8Cos(double num) + => SafeExecution(() => Native.Float8Cos(num)); + + public static double Float8Cosd(double num) + => SafeExecution(() => Native.Float8Cosd(num)); + + public static double Float8Cosh(double num) + => SafeExecution(() => Native.Float8Cosh(num)); + + public static double Float8Cot(double num) + => SafeExecution(() => Native.Float8Cot(num)); + + public static double Float8Cotd(double num) + => SafeExecution(() => Native.Float8Cotd(num)); + + public static double Float8Degrees(double num) + => SafeExecution(() => Native.Float8Degrees(num)); + + public static double Float8Exp(double num) + => SafeExecution(() => Native.Float8Exp(num)); + + public static double Float8Floor(double num) + => SafeExecution(() => Native.Float8Floor(num)); + + public static double Float8Gamma(double num) + => SafeExecution(() => Native.Float8Gamma(num)); + + public static uint Float8Hash(double num) + => SafeExecution(() => Native.Float8Hash(num)); + + public static ulong Float8HashExtended(double num, ulong seed) + => SafeExecution(() => Native.Float8HashExtended(num, seed)); + + public static double Float8In(string str) + => SafeExecution(() => Native.Float8In(str)); + + public static double Float8Larger(double num1, double num2) + => SafeExecution(() => Native.Float8Larger(num1, num2)); + + public static double Float8Lgamma(double num) + => SafeExecution(() => Native.Float8Lgamma(num)); + + public static double Float8Ln(double num) + => SafeExecution(() => Native.Float8Ln(num)); + + public static double Float8Log10(double num) + => SafeExecution(() => Native.Float8Log10(num)); + + public static double Float8Pi() + => SafeExecution(() => Native.Float8Pi()); + + public static double Float8Pow(double num1, double num2) + => SafeExecution(() => Native.Float8Pow(num1, num2)); + + public static double Float8Radians(double num) + => SafeExecution(() => Native.Float8Radians(num)); + + public static double Float8Rint(double num) + => SafeExecution(() => Native.Float8Rint(num)); + + public static double Float8Round(double num, int maxdd) + => SafeExecution(() => Native.Float8Round(num, maxdd)); + + public static double Float8Sign(double num) + => SafeExecution(() => Native.Float8Sign(num)); + + public static double Float8Sin(double num) + => SafeExecution(() => Native.Float8Sin(num)); + + public static double Float8Sind(double num) + => SafeExecution(() => Native.Float8Sind(num)); + + public static double Float8Sinh(double num) + => SafeExecution(() => Native.Float8Sinh(num)); + + public static double Float8Smaller(double num1, double num2) + => SafeExecution(() => Native.Float8Smaller(num1, num2)); + + public static double Float8Sqrt(double num) + => SafeExecution(() => Native.Float8Sqrt(num)); + + public static double Float8Tan(double num) + => SafeExecution(() => Native.Float8Tan(num)); + + public static double Float8Tand(double num) + => SafeExecution(() => Native.Float8Tand(num)); + + public static double Float8Tanh(double num) + => SafeExecution(() => Native.Float8Tanh(num)); + + public static float Float8ToFloat4(double num) + => SafeExecution(() => Native.Float8ToFloat4(num)); + + public static short Float8ToInt16(double num) + => SafeExecution(() => Native.Float8ToInt16(num)); + + public static int Float8ToInt32(double num) + => SafeExecution(() => Native.Float8ToInt32(num)); + + public static double Float8Trunc(double num) + => SafeExecution(() => Native.Float8Trunc(num)); + + public static double Float8Um(double num) + => SafeExecution(() => Native.Float8Um(num)); + + public static double Float8Up(double num) + => SafeExecution(() => Native.Float8Up(num)); + + public static int Float8WidthBucket(double num, double bound1, double bound2, int count) + => SafeExecution(() => Native.Float8WidthBucket(num, bound1, bound2, count)); + + public static bool GeFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.GeFloat4Float4(num1, num2)); + + public static bool GeFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.GeFloat4Float8(num1, num2)); + + public static bool GeFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.GeFloat8Float4(num1, num2)); + + public static bool GeFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.GeFloat8Float8(num1, num2)); + + public static bool GtFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.GtFloat4Float4(num1, num2)); + + public static bool GtFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.GtFloat4Float8(num1, num2)); + + public static bool GtFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.GtFloat8Float4(num1, num2)); + + public static bool GtFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.GtFloat8Float8(num1, num2)); + + public static float Int16ToFloat4(short num) + => SafeExecution(() => Native.Int16ToFloat4(num)); + + public static double Int16ToFloat8(short num) + => SafeExecution(() => Native.Int16ToFloat8(num)); + + public static float Int32ToFloat4(int num) + => SafeExecution(() => Native.Int32ToFloat4(num)); + + public static double Int32ToFloat8(int num) + => SafeExecution(() => Native.Int32ToFloat8(num)); + + public static bool LeFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.LeFloat4Float4(num1, num2)); + + public static bool LeFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.LeFloat4Float8(num1, num2)); + + public static bool LeFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.LeFloat8Float4(num1, num2)); + + public static bool LeFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.LeFloat8Float8(num1, num2)); + + public static bool LtFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.LtFloat4Float4(num1, num2)); + + public static bool LtFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.LtFloat4Float8(num1, num2)); + + public static bool LtFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.LtFloat8Float4(num1, num2)); + + public static bool LtFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.LtFloat8Float8(num1, num2)); + + public static float MinusFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.MinusFloat4Float4(num1, num2)); + + public static double MinusFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.MinusFloat4Float8(num1, num2)); + + public static double MinusFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.MinusFloat8Float4(num1, num2)); + + public static double MinusFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.MinusFloat8Float8(num1, num2)); + + public static float MulFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.MulFloat4Float4(num1, num2)); + + public static double MulFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.MulFloat4Float8(num1, num2)); + + public static double MulFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.MulFloat8Float4(num1, num2)); + + public static double MulFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.MulFloat8Float8(num1, num2)); + + public static bool NeFloat4Float4(float num1, float num2) + => SafeExecution(() => Native.NeFloat4Float4(num1, num2)); + + public static bool NeFloat4Float8(float num1, double num2) + => SafeExecution(() => Native.NeFloat4Float8(num1, num2)); + + public static bool NeFloat8Float4(double num1, float num2) + => SafeExecution(() => Native.NeFloat8Float4(num1, num2)); + + public static bool NeFloat8Float8(double num1, double num2) + => SafeExecution(() => Native.NeFloat8Float8(num1, num2)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_int.g.cs b/MEOS.NET/Functions/Meos.pg_int.g.cs new file mode 100644 index 0000000..e03b097 --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_int.g.cs @@ -0,0 +1,486 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_int.h declares. + public static partial class Meos + { + public static short AddInt16Int16(short num1, short num2) + => SafeExecution(() => Native.AddInt16Int16(num1, num2)); + + public static int AddInt16Int32(short num1, int num2) + => SafeExecution(() => Native.AddInt16Int32(num1, num2)); + + public static long AddInt16Int64(short num1, long num2) + => SafeExecution(() => Native.AddInt16Int64(num1, num2)); + + public static int AddInt32Int16(int num1, short num2) + => SafeExecution(() => Native.AddInt32Int16(num1, num2)); + + public static int AddInt32Int32(int num1, int num2) + => SafeExecution(() => Native.AddInt32Int32(num1, num2)); + + public static long AddInt32Int64(int num1, long num2) + => SafeExecution(() => Native.AddInt32Int64(num1, num2)); + + public static long AddInt64Int16(long num1, short num2) + => SafeExecution(() => Native.AddInt64Int16(num1, num2)); + + public static long AddInt64Int32(long num1, int num2) + => SafeExecution(() => Native.AddInt64Int32(num1, num2)); + + public static long AddInt64Int64(long num1, long num2) + => SafeExecution(() => Native.AddInt64Int64(num1, num2)); + + public static int BoolToInt32(bool b) + => SafeExecution(() => Native.BoolToInt32(b)); + + public static short DivInt16Int16(short num1, short num2) + => SafeExecution(() => Native.DivInt16Int16(num1, num2)); + + public static int DivInt16Int32(short num1, int num2) + => SafeExecution(() => Native.DivInt16Int32(num1, num2)); + + public static long DivInt16Int64(short num1, long num2) + => SafeExecution(() => Native.DivInt16Int64(num1, num2)); + + public static int DivInt32Int16(int num1, short num2) + => SafeExecution(() => Native.DivInt32Int16(num1, num2)); + + public static int DivInt32Int32(int num1, int num2) + => SafeExecution(() => Native.DivInt32Int32(num1, num2)); + + public static long DivInt32Int64(int num1, long num2) + => SafeExecution(() => Native.DivInt32Int64(num1, num2)); + + public static long DivInt64Int16(long num1, short num2) + => SafeExecution(() => Native.DivInt64Int16(num1, num2)); + + public static long DivInt64Int32(long num1, int num2) + => SafeExecution(() => Native.DivInt64Int32(num1, num2)); + + public static long DivInt64Int64(long num1, long num2) + => SafeExecution(() => Native.DivInt64Int64(num1, num2)); + + public static bool EqInt16Int16(short num1, short num2) + => SafeExecution(() => Native.EqInt16Int16(num1, num2)); + + public static bool EqInt16Int32(short num1, int num2) + => SafeExecution(() => Native.EqInt16Int32(num1, num2)); + + public static bool EqInt16Int64(short num1, long num2) + => SafeExecution(() => Native.EqInt16Int64(num1, num2)); + + public static bool EqInt32Int16(int num1, short num2) + => SafeExecution(() => Native.EqInt32Int16(num1, num2)); + + public static bool EqInt32Int32(int num1, int num2) + => SafeExecution(() => Native.EqInt32Int32(num1, num2)); + + public static bool EqInt32Int64(int num1, long num2) + => SafeExecution(() => Native.EqInt32Int64(num1, num2)); + + public static bool EqInt64Int16(long num1, short num2) + => SafeExecution(() => Native.EqInt64Int16(num1, num2)); + + public static bool EqInt64Int32(long num1, int num2) + => SafeExecution(() => Native.EqInt64Int32(num1, num2)); + + public static bool EqInt64Int64(long num1, long num2) + => SafeExecution(() => Native.EqInt64Int64(num1, num2)); + + public static long Float4ToInt64(float num) + => SafeExecution(() => Native.Float4ToInt64(num)); + + public static long Float8ToInt64(double num) + => SafeExecution(() => Native.Float8ToInt64(num)); + + public static bool GeInt16Int16(short num1, short num2) + => SafeExecution(() => Native.GeInt16Int16(num1, num2)); + + public static bool GeInt16Int32(short num1, int num2) + => SafeExecution(() => Native.GeInt16Int32(num1, num2)); + + public static bool GeInt16Int64(short num1, long num2) + => SafeExecution(() => Native.GeInt16Int64(num1, num2)); + + public static bool GeInt32Int16(int num1, short num2) + => SafeExecution(() => Native.GeInt32Int16(num1, num2)); + + public static bool GeInt32Int32(int num1, int num2) + => SafeExecution(() => Native.GeInt32Int32(num1, num2)); + + public static bool GeInt32Int64(int num1, long num2) + => SafeExecution(() => Native.GeInt32Int64(num1, num2)); + + public static bool GeInt64Int16(long num1, short num2) + => SafeExecution(() => Native.GeInt64Int16(num1, num2)); + + public static bool GeInt64Int32(long num1, int num2) + => SafeExecution(() => Native.GeInt64Int32(num1, num2)); + + public static bool GeInt64Int64(long num1, long num2) + => SafeExecution(() => Native.GeInt64Int64(num1, num2)); + + public static bool GtInt16Int16(short num1, short num2) + => SafeExecution(() => Native.GtInt16Int16(num1, num2)); + + public static bool GtInt16Int32(short num1, int num2) + => SafeExecution(() => Native.GtInt16Int32(num1, num2)); + + public static bool GtInt16Int64(short num1, long num2) + => SafeExecution(() => Native.GtInt16Int64(num1, num2)); + + public static bool GtInt32Int16(int num1, short num2) + => SafeExecution(() => Native.GtInt32Int16(num1, num2)); + + public static bool GtInt32Int32(int num1, int num2) + => SafeExecution(() => Native.GtInt32Int32(num1, num2)); + + public static bool GtInt32Int64(int num1, long num2) + => SafeExecution(() => Native.GtInt32Int64(num1, num2)); + + public static bool GtInt64Int16(long num1, short num2) + => SafeExecution(() => Native.GtInt64Int16(num1, num2)); + + public static bool GtInt64Int32(long num1, int num2) + => SafeExecution(() => Native.GtInt64Int32(num1, num2)); + + public static bool GtInt64Int64(long num1, long num2) + => SafeExecution(() => Native.GtInt64Int64(num1, num2)); + + public static short Int16Abs(short num) + => SafeExecution(() => Native.Int16Abs(num)); + + public static short Int16And(short num1, short num2) + => SafeExecution(() => Native.Int16And(num1, num2)); + + public static uint Int16Hash(short val) + => SafeExecution(() => Native.Int16Hash(val)); + + public static ulong Int16HashExtended(short val, ulong seed) + => SafeExecution(() => Native.Int16HashExtended(val, seed)); + + public static short Int16In(string str) + => SafeExecution(() => Native.Int16In(str)); + + public static short Int16Larger(short num1, short num2) + => SafeExecution(() => Native.Int16Larger(num1, num2)); + + public static short Int16Mod(short num1, short num2) + => SafeExecution(() => Native.Int16Mod(num1, num2)); + + public static short Int16Not(short num) + => SafeExecution(() => Native.Int16Not(num)); + + public static short Int16Or(short num1, short num2) + => SafeExecution(() => Native.Int16Or(num1, num2)); + + public static string Int16Out(short num) + => SafeExecution(() => Native.Int16Out(num)); + + public static short Int16Shl(short num1, int num2) + => SafeExecution(() => Native.Int16Shl(num1, num2)); + + public static short Int16Shr(short num1, int num2) + => SafeExecution(() => Native.Int16Shr(num1, num2)); + + public static short Int16Smaller(short num1, short num2) + => SafeExecution(() => Native.Int16Smaller(num1, num2)); + + public static int Int16ToInt32(short num) + => SafeExecution(() => Native.Int16ToInt32(num)); + + public static long Int16ToInt64(short num) + => SafeExecution(() => Native.Int16ToInt64(num)); + + public static short Int16Uminus(short num) + => SafeExecution(() => Native.Int16Uminus(num)); + + public static short Int16Uplus(short num) + => SafeExecution(() => Native.Int16Uplus(num)); + + public static short Int16Xor(short num1, short num2) + => SafeExecution(() => Native.Int16Xor(num1, num2)); + + public static int Int32Abs(int num) + => SafeExecution(() => Native.Int32Abs(num)); + + public static int Int32And(int num1, int num2) + => SafeExecution(() => Native.Int32And(num1, num2)); + + public static int Int32Cmp(int l, int r) + => SafeExecution(() => Native.Int32Cmp(l, r)); + + public static int Int32Gcd(int num1, int num2) + => SafeExecution(() => Native.Int32Gcd(num1, num2)); + + public static uint Int32Hash(int val) + => SafeExecution(() => Native.Int32Hash(val)); + + public static ulong Int32HashExtended(int val, ulong seed) + => SafeExecution(() => Native.Int32HashExtended(val, seed)); + + public static int Int32In(string str) + => SafeExecution(() => Native.Int32In(str)); + + public static int Int32Inc(int num) + => SafeExecution(() => Native.Int32Inc(num)); + + public static int Int32Larger(int num1, int num2) + => SafeExecution(() => Native.Int32Larger(num1, num2)); + + public static int Int32Lcm(int num1, int num2) + => SafeExecution(() => Native.Int32Lcm(num1, num2)); + + public static int Int32Mod(int num1, int num2) + => SafeExecution(() => Native.Int32Mod(num1, num2)); + + public static int Int32Not(int num) + => SafeExecution(() => Native.Int32Not(num)); + + public static int Int32Or(int num1, int num2) + => SafeExecution(() => Native.Int32Or(num1, num2)); + + public static string Int32Out(int num) + => SafeExecution(() => Native.Int32Out(num)); + + public static int Int32Shl(int num1, int num2) + => SafeExecution(() => Native.Int32Shl(num1, num2)); + + public static int Int32Shr(int num1, int num2) + => SafeExecution(() => Native.Int32Shr(num1, num2)); + + public static int Int32Smaller(int num1, int num2) + => SafeExecution(() => Native.Int32Smaller(num1, num2)); + + public static bool Int32ToBool(int num) + => SafeExecution(() => Native.Int32ToBool(num)); + + public static short Int32ToInt16(int num) + => SafeExecution(() => Native.Int32ToInt16(num)); + + public static long Int32ToInt64(int num) + => SafeExecution(() => Native.Int32ToInt64(num)); + + public static int Int32Uminus(int num) + => SafeExecution(() => Native.Int32Uminus(num)); + + public static int Int32Uplus(int num) + => SafeExecution(() => Native.Int32Uplus(num)); + + public static int Int32Xor(int num1, int num2) + => SafeExecution(() => Native.Int32Xor(num1, num2)); + + public static long Int64Abs(long num) + => SafeExecution(() => Native.Int64Abs(num)); + + public static long Int64And(long num1, long num2) + => SafeExecution(() => Native.Int64And(num1, num2)); + + public static int Int64Cmp(long l, long r) + => SafeExecution(() => Native.Int64Cmp(l, r)); + + public static long Int64Dec(long num) + => SafeExecution(() => Native.Int64Dec(num)); + + public static long Int64Gcd(long num1, long num2) + => SafeExecution(() => Native.Int64Gcd(num1, num2)); + + public static uint Int64Hash(long num) + => SafeExecution(() => Native.Int64Hash(num)); + + public static ulong Int64HashExtended(long num, ulong seed) + => SafeExecution(() => Native.Int64HashExtended(num, seed)); + + public static long Int64In(string str) + => SafeExecution(() => Native.Int64In(str)); + + public static long Int64Inc(long num) + => SafeExecution(() => Native.Int64Inc(num)); + + public static long Int64Larger(long num1, long num2) + => SafeExecution(() => Native.Int64Larger(num1, num2)); + + public static long Int64Lcm(long num1, long num2) + => SafeExecution(() => Native.Int64Lcm(num1, num2)); + + public static long Int64Mod(long num1, long num2) + => SafeExecution(() => Native.Int64Mod(num1, num2)); + + public static long Int64Not(long num) + => SafeExecution(() => Native.Int64Not(num)); + + public static long Int64Or(long num1, long num2) + => SafeExecution(() => Native.Int64Or(num1, num2)); + + public static string Int64Out(long num) + => SafeExecution(() => Native.Int64Out(num)); + + public static long Int64Shl(long num1, int num2) + => SafeExecution(() => Native.Int64Shl(num1, num2)); + + public static long Int64Shr(long num1, int num2) + => SafeExecution(() => Native.Int64Shr(num1, num2)); + + public static long Int64Smaller(long num1, long num2) + => SafeExecution(() => Native.Int64Smaller(num1, num2)); + + public static float Int64ToFloat4(long num) + => SafeExecution(() => Native.Int64ToFloat4(num)); + + public static double Int64ToFloat8(long num) + => SafeExecution(() => Native.Int64ToFloat8(num)); + + public static short Int64ToInt16(long num) + => SafeExecution(() => Native.Int64ToInt16(num)); + + public static int Int64ToInt32(long num) + => SafeExecution(() => Native.Int64ToInt32(num)); + + public static long Int64Uminus(long num) + => SafeExecution(() => Native.Int64Uminus(num)); + + public static long Int64Uplus(long num) + => SafeExecution(() => Native.Int64Uplus(num)); + + public static long Int64Xor(long num1, long num2) + => SafeExecution(() => Native.Int64Xor(num1, num2)); + + public static bool LeInt16Int16(short num1, short num2) + => SafeExecution(() => Native.LeInt16Int16(num1, num2)); + + public static bool LeInt16Int32(short num1, int num2) + => SafeExecution(() => Native.LeInt16Int32(num1, num2)); + + public static bool LeInt16Int64(short num1, long num2) + => SafeExecution(() => Native.LeInt16Int64(num1, num2)); + + public static bool LeInt32Int16(int num1, short num2) + => SafeExecution(() => Native.LeInt32Int16(num1, num2)); + + public static bool LeInt32Int32(int num1, int num2) + => SafeExecution(() => Native.LeInt32Int32(num1, num2)); + + public static bool LeInt32Int64(int num1, long num2) + => SafeExecution(() => Native.LeInt32Int64(num1, num2)); + + public static bool LeInt64Int16(long num1, short num2) + => SafeExecution(() => Native.LeInt64Int16(num1, num2)); + + public static bool LeInt64Int32(long num1, int num2) + => SafeExecution(() => Native.LeInt64Int32(num1, num2)); + + public static bool LeInt64Int64(long num1, long num2) + => SafeExecution(() => Native.LeInt64Int64(num1, num2)); + + public static bool LtInt16Int16(short num1, short num2) + => SafeExecution(() => Native.LtInt16Int16(num1, num2)); + + public static bool LtInt16Int32(short num1, int num2) + => SafeExecution(() => Native.LtInt16Int32(num1, num2)); + + public static bool LtInt16Int64(short num1, long num2) + => SafeExecution(() => Native.LtInt16Int64(num1, num2)); + + public static bool LtInt32Int16(int num1, short num2) + => SafeExecution(() => Native.LtInt32Int16(num1, num2)); + + public static bool LtInt32Int32(int num1, int num2) + => SafeExecution(() => Native.LtInt32Int32(num1, num2)); + + public static bool LtInt32Int64(int num1, long num2) + => SafeExecution(() => Native.LtInt32Int64(num1, num2)); + + public static bool LtInt64Int16(long num1, short num2) + => SafeExecution(() => Native.LtInt64Int16(num1, num2)); + + public static bool LtInt64Int32(long num1, int num2) + => SafeExecution(() => Native.LtInt64Int32(num1, num2)); + + public static bool LtInt64Int64(long num1, long num2) + => SafeExecution(() => Native.LtInt64Int64(num1, num2)); + + public static short MinusInt16Int16(short num1, short num2) + => SafeExecution(() => Native.MinusInt16Int16(num1, num2)); + + public static int MinusInt16Int32(short num1, int num2) + => SafeExecution(() => Native.MinusInt16Int32(num1, num2)); + + public static long MinusInt16Int64(short num1, long num2) + => SafeExecution(() => Native.MinusInt16Int64(num1, num2)); + + public static int MinusInt32Int16(int num1, short num2) + => SafeExecution(() => Native.MinusInt32Int16(num1, num2)); + + public static int MinusInt32Int32(int num1, int num2) + => SafeExecution(() => Native.MinusInt32Int32(num1, num2)); + + public static long MinusInt32Int64(int num1, long num2) + => SafeExecution(() => Native.MinusInt32Int64(num1, num2)); + + public static long MinusInt64Int16(long num1, short num2) + => SafeExecution(() => Native.MinusInt64Int16(num1, num2)); + + public static long MinusInt64Int32(long num1, int num2) + => SafeExecution(() => Native.MinusInt64Int32(num1, num2)); + + public static long MinusInt64Int64(long num1, long num2) + => SafeExecution(() => Native.MinusInt64Int64(num1, num2)); + + public static short MulInt16Int16(short num1, short num2) + => SafeExecution(() => Native.MulInt16Int16(num1, num2)); + + public static int MulInt16Int32(short num1, int num2) + => SafeExecution(() => Native.MulInt16Int32(num1, num2)); + + public static long MulInt16Int64(short num1, long num2) + => SafeExecution(() => Native.MulInt16Int64(num1, num2)); + + public static int MulInt32Int16(int num1, short num2) + => SafeExecution(() => Native.MulInt32Int16(num1, num2)); + + public static int MulInt32Int32(int num1, int num2) + => SafeExecution(() => Native.MulInt32Int32(num1, num2)); + + public static long MulInt32Int64(int num1, long num2) + => SafeExecution(() => Native.MulInt32Int64(num1, num2)); + + public static long MulInt64Int16(long num1, short num2) + => SafeExecution(() => Native.MulInt64Int16(num1, num2)); + + public static long MulInt64Int32(long num1, int num2) + => SafeExecution(() => Native.MulInt64Int32(num1, num2)); + + public static long MulInt64Int64(long num1, long num2) + => SafeExecution(() => Native.MulInt64Int64(num1, num2)); + + public static bool NeInt16Int16(short num1, short num2) + => SafeExecution(() => Native.NeInt16Int16(num1, num2)); + + public static bool NeInt16Int32(short num1, int num2) + => SafeExecution(() => Native.NeInt16Int32(num1, num2)); + + public static bool NeInt16Int64(short num1, long num2) + => SafeExecution(() => Native.NeInt16Int64(num1, num2)); + + public static bool NeInt32Int16(int num1, short num2) + => SafeExecution(() => Native.NeInt32Int16(num1, num2)); + + public static bool NeInt32Int32(int num1, int num2) + => SafeExecution(() => Native.NeInt32Int32(num1, num2)); + + public static bool NeInt32Int64(int num1, long num2) + => SafeExecution(() => Native.NeInt32Int64(num1, num2)); + + public static bool NeInt64Int16(long num1, short num2) + => SafeExecution(() => Native.NeInt64Int16(num1, num2)); + + public static bool NeInt64Int32(long num1, int num2) + => SafeExecution(() => Native.NeInt64Int32(num1, num2)); + + public static bool NeInt64Int64(long num1, long num2) + => SafeExecution(() => Native.NeInt64Int64(num1, num2)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_interval.g.cs b/MEOS.NET/Functions/Meos.pg_interval.g.cs new file mode 100644 index 0000000..c7fe2ed --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_interval.g.cs @@ -0,0 +1,87 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_interval.h declares. + public static partial class Meos + { + public static IntPtr AddIntervalInterval(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.AddIntervalInterval(interv1, interv2)); + + public static IntPtr DivIntervalFloat8(IntPtr interv, double factor) + => SafeExecution(() => Native.DivIntervalFloat8(interv, factor)); + + public static IntPtr IntervalCopy(IntPtr interv) + => SafeExecution(() => Native.IntervalCopy(interv)); + + public static bool IntervalEq(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalEq(interv1, interv2)); + + public static IntPtr IntervalExtract(IntPtr interv, IntPtr units) + => SafeExecution(() => Native.IntervalExtract(interv, units)); + + public static bool IntervalGe(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalGe(interv1, interv2)); + + public static bool IntervalGt(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalGt(interv1, interv2)); + + public static uint IntervalHash(IntPtr interv) + => SafeExecution(() => Native.IntervalHash(interv)); + + public static ulong IntervalHashExtended(IntPtr interv, ulong seed) + => SafeExecution(() => Native.IntervalHashExtended(interv, seed)); + + public static bool IntervalIsFinite(IntPtr interv) + => SafeExecution(() => Native.IntervalIsFinite(interv)); + + public static IntPtr IntervalJustifyDays(IntPtr interv) + => SafeExecution(() => Native.IntervalJustifyDays(interv)); + + public static IntPtr IntervalJustifyHours(IntPtr interv) + => SafeExecution(() => Native.IntervalJustifyHours(interv)); + + public static IntPtr IntervalJustifyInterval(IntPtr interv) + => SafeExecution(() => Native.IntervalJustifyInterval(interv)); + + public static IntPtr IntervalLarger(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalLarger(interv1, interv2)); + + public static bool IntervalLe(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalLe(interv1, interv2)); + + public static bool IntervalLt(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalLt(interv1, interv2)); + + public static IntPtr IntervalMake(int years, int months, int weeks, int days, int hours, int mins, double secs) + => SafeExecution(() => Native.IntervalMake(years, months, weeks, days, hours, mins, secs)); + + public static bool IntervalNe(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalNe(interv1, interv2)); + + public static IntPtr IntervalNegate(IntPtr interv) + => SafeExecution(() => Native.IntervalNegate(interv)); + + public static double IntervalPart(IntPtr interv, IntPtr units) + => SafeExecution(() => Native.IntervalPart(interv, units)); + + public static IntPtr IntervalScale(IntPtr interv, int typmod) + => SafeExecution(() => Native.IntervalScale(interv, typmod)); + + public static IntPtr IntervalSmaller(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.IntervalSmaller(interv1, interv2)); + + public static IntPtr IntervalTrunc(IntPtr interv, IntPtr units) + => SafeExecution(() => Native.IntervalTrunc(interv, units)); + + public static IntPtr MinusIntervalInterval(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.MinusIntervalInterval(interv1, interv2)); + + public static IntPtr MulFloat8Interval(double factor, IntPtr interv) + => SafeExecution(() => Native.MulFloat8Interval(factor, interv)); + + public static IntPtr MulIntervalFloat8(IntPtr interv, double factor) + => SafeExecution(() => Native.MulIntervalFloat8(interv, factor)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_numeric.g.cs b/MEOS.NET/Functions/Meos.pg_numeric.g.cs new file mode 100644 index 0000000..f00e3da --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_numeric.g.cs @@ -0,0 +1,165 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_numeric.h declares. + public static partial class Meos + { + public static IntPtr Float4ToNumeric(float num) + => SafeExecution(() => Native.Float4ToNumeric(num)); + + public static IntPtr Float8ToNumeric(double num) + => SafeExecution(() => Native.Float8ToNumeric(num)); + + public static IntPtr Int16ToNumeric(short num) + => SafeExecution(() => Native.Int16ToNumeric(num)); + + public static IntPtr Int32ToNumeric(int num) + => SafeExecution(() => Native.Int32ToNumeric(num)); + + public static IntPtr Int64ToNumeric(long num) + => SafeExecution(() => Native.Int64ToNumeric(num)); + + public static IntPtr Numeric(IntPtr num, int typmod) + => SafeExecution(() => Native.Numeric(num, typmod)); + + public static IntPtr NumericAbs(IntPtr num) + => SafeExecution(() => Native.NumericAbs(num)); + + public static IntPtr NumericAdd(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericAdd(num1, num2)); + + public static IntPtr NumericCeil(IntPtr num) + => SafeExecution(() => Native.NumericCeil(num)); + + public static int NumericCmp(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericCmp(num1, num2)); + + public static IntPtr NumericCopy(IntPtr num) + => SafeExecution(() => Native.NumericCopy(num)); + + public static IntPtr NumericDiv(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericDiv(num1, num2)); + + public static IntPtr NumericDivTrunc(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericDivTrunc(num1, num2)); + + public static bool NumericEq(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericEq(num1, num2)); + + public static IntPtr NumericExp(IntPtr num) + => SafeExecution(() => Native.NumericExp(num)); + + public static IntPtr NumericFac(long num) + => SafeExecution(() => Native.NumericFac(num)); + + public static IntPtr NumericFloor(IntPtr num) + => SafeExecution(() => Native.NumericFloor(num)); + + public static IntPtr NumericGcd(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericGcd(num1, num2)); + + public static bool NumericGe(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericGe(num1, num2)); + + public static bool NumericGt(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericGt(num1, num2)); + + public static uint NumericHash(IntPtr key) + => SafeExecution(() => Native.NumericHash(key)); + + public static ulong NumericHashExtended(IntPtr num, ulong seed) + => SafeExecution(() => Native.NumericHashExtended(num, seed)); + + public static IntPtr NumericIn(string str, int typmod) + => SafeExecution(() => Native.NumericIn(str, typmod)); + + public static IntPtr NumericInc(IntPtr num) + => SafeExecution(() => Native.NumericInc(num)); + + public static IntPtr NumericLarger(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericLarger(num1, num2)); + + public static IntPtr NumericLcm(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericLcm(num1, num2)); + + public static bool NumericLe(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericLe(num1, num2)); + + public static IntPtr NumericLn(IntPtr num) + => SafeExecution(() => Native.NumericLn(num)); + + public static IntPtr NumericLog(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericLog(num1, num2)); + + public static bool NumericLt(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericLt(num1, num2)); + + public static uint NumericMinScale(IntPtr num) + => SafeExecution(() => Native.NumericMinScale(num)); + + public static IntPtr NumericMinus(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericMinus(num1, num2)); + + public static IntPtr NumericMod(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericMod(num1, num2)); + + public static IntPtr NumericMul(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericMul(num1, num2)); + + public static bool NumericNe(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericNe(num1, num2)); + + public static string NumericOut(IntPtr num) + => SafeExecution(() => Native.NumericOut(num)); + + public static IntPtr NumericPow(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericPow(num1, num2)); + + public static IntPtr NumericRound(IntPtr num, int scale) + => SafeExecution(() => Native.NumericRound(num, scale)); + + public static int NumericScale(IntPtr num) + => SafeExecution(() => Native.NumericScale(num)); + + public static IntPtr NumericSign(IntPtr num) + => SafeExecution(() => Native.NumericSign(num)); + + public static IntPtr NumericSmaller(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.NumericSmaller(num1, num2)); + + public static IntPtr NumericSqrt(IntPtr num) + => SafeExecution(() => Native.NumericSqrt(num)); + + public static float NumericToFloat4(IntPtr num) + => SafeExecution(() => Native.NumericToFloat4(num)); + + public static double NumericToFloat8(IntPtr num) + => SafeExecution(() => Native.NumericToFloat8(num)); + + public static short NumericToInt16(IntPtr num) + => SafeExecution(() => Native.NumericToInt16(num)); + + public static int NumericToInt32(IntPtr num) + => SafeExecution(() => Native.NumericToInt32(num)); + + public static long NumericToInt64(IntPtr num) + => SafeExecution(() => Native.NumericToInt64(num)); + + public static IntPtr NumericTrimScale(IntPtr num) + => SafeExecution(() => Native.NumericTrimScale(num)); + + public static IntPtr NumericTrunc(IntPtr num, int scale) + => SafeExecution(() => Native.NumericTrunc(num, scale)); + + public static IntPtr NumericUminus(IntPtr num) + => SafeExecution(() => Native.NumericUminus(num)); + + public static IntPtr NumericUplus(IntPtr num) + => SafeExecution(() => Native.NumericUplus(num)); + + public static int NumericWidthBucket(IntPtr operand, IntPtr bound1, IntPtr bound2, int count) + => SafeExecution(() => Native.NumericWidthBucket(operand, bound1, bound2, count)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_text.g.cs b/MEOS.NET/Functions/Meos.pg_text.g.cs new file mode 100644 index 0000000..d955e6c --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_text.g.cs @@ -0,0 +1,141 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_text.h declares. + public static partial class Meos + { + public static uint CharHash(byte c) + => SafeExecution(() => Native.CharHash(c)); + + public static ulong CharHashExtended(byte c, ulong seed) + => SafeExecution(() => Native.CharHashExtended(c, seed)); + + public static IntPtr IcuUnicodeVersion() + => SafeExecution(() => Native.IcuUnicodeVersion()); + + public static IntPtr Int32ToBin(int num) + => SafeExecution(() => Native.Int32ToBin(num)); + + public static IntPtr Int32ToHex(int num) + => SafeExecution(() => Native.Int32ToHex(num)); + + public static IntPtr Int32ToOct(int num) + => SafeExecution(() => Native.Int32ToOct(num)); + + public static IntPtr Int64ToBin(long num) + => SafeExecution(() => Native.Int64ToBin(num)); + + public static IntPtr Int64ToHex(long num) + => SafeExecution(() => Native.Int64ToHex(num)); + + public static IntPtr Int64ToOct(long num) + => SafeExecution(() => Native.Int64ToOct(num)); + + public static IntPtr TextCat(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextCat(txt1, txt2)); + + public static IntPtr TextConcat(IntPtr textarr, int count) + => SafeExecution(() => Native.TextConcat(textarr, count)); + + public static IntPtr TextConcatWs(IntPtr textarr, int count, IntPtr sep) + => SafeExecution(() => Native.TextConcatWs(textarr, count, sep)); + + public static bool TextEq(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextEq(txt1, txt2)); + + public static bool TextGe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextGe(txt1, txt2)); + + public static bool TextGt(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextGt(txt1, txt2)); + + public static uint TextHash(IntPtr txt, uint collid) + => SafeExecution(() => Native.TextHash(txt, collid)); + + public static ulong TextHashExtended(IntPtr txt, ulong seed, uint collid) + => SafeExecution(() => Native.TextHashExtended(txt, seed, collid)); + + public static IntPtr TextLarger(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextLarger(txt1, txt2)); + + public static bool TextLe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextLe(txt1, txt2)); + + public static IntPtr TextLeft(IntPtr txt, int n) + => SafeExecution(() => Native.TextLeft(txt, n)); + + public static int TextLen(IntPtr txt) + => SafeExecution(() => Native.TextLen(txt)); + + public static bool TextLt(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextLt(txt1, txt2)); + + public static bool TextNe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextNe(txt1, txt2)); + + public static int TextOctetlen(IntPtr txt) + => SafeExecution(() => Native.TextOctetlen(txt)); + + public static IntPtr TextOverlay(IntPtr txt1, IntPtr txt2, int from, int count) + => SafeExecution(() => Native.TextOverlay(txt1, txt2, from, count)); + + public static IntPtr TextOverlayNoLen(IntPtr txt1, IntPtr txt2, int from) + => SafeExecution(() => Native.TextOverlayNoLen(txt1, txt2, from)); + + public static bool TextPatternGe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextPatternGe(txt1, txt2)); + + public static bool TextPatternGt(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextPatternGt(txt1, txt2)); + + public static bool TextPatternLe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextPatternLe(txt1, txt2)); + + public static bool TextPatternLt(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextPatternLt(txt1, txt2)); + + public static int TextPos(IntPtr txt, IntPtr search) + => SafeExecution(() => Native.TextPos(txt, search)); + + public static IntPtr TextReplace(IntPtr txt, IntPtr from, IntPtr to) + => SafeExecution(() => Native.TextReplace(txt, from, to)); + + public static IntPtr TextReverse(IntPtr txt) + => SafeExecution(() => Native.TextReverse(txt)); + + public static IntPtr TextRight(IntPtr txt, int n) + => SafeExecution(() => Native.TextRight(txt, n)); + + public static IntPtr TextSmaller(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextSmaller(txt1, txt2)); + + public static IntPtr TextSplitPart(IntPtr txt, IntPtr sep, int fldnum) + => SafeExecution(() => Native.TextSplitPart(txt, sep, fldnum)); + + public static bool TextStartsWith(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.TextStartsWith(txt1, txt2)); + + public static IntPtr TextSubstr(IntPtr txt, int start, int length) + => SafeExecution(() => Native.TextSubstr(txt, start, length)); + + public static IntPtr TextSubstrNoLen(IntPtr txt, int start) + => SafeExecution(() => Native.TextSubstrNoLen(txt, start)); + + public static bool UnicodeAssigned(IntPtr txt) + => SafeExecution(() => Native.UnicodeAssigned(txt)); + + public static bool UnicodeIsNormalized(IntPtr txt, IntPtr fmt) + => SafeExecution(() => Native.UnicodeIsNormalized(txt, fmt)); + + public static IntPtr UnicodeNormalizeFunc(IntPtr txt, IntPtr fmt) + => SafeExecution(() => Native.UnicodeNormalizeFunc(txt, fmt)); + + public static IntPtr UnicodeVersion() + => SafeExecution(() => Native.UnicodeVersion()); + + public static IntPtr Unistr(IntPtr txt) + => SafeExecution(() => Native.Unistr(txt)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_time.g.cs b/MEOS.NET/Functions/Meos.pg_time.g.cs new file mode 100644 index 0000000..71fb4bd --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_time.g.cs @@ -0,0 +1,159 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_time.h declares. + public static partial class Meos + { + public static long DateTimetzToTimestamptz(int date, IntPtr timetz) + => SafeExecution(() => Native.DateTimetzToTimestamptz(date, timetz)); + + public static long IntervalToTime(IntPtr interv) + => SafeExecution(() => Native.IntervalToTime(interv)); + + public static long MinusTimeInterval(long time, IntPtr interv) + => SafeExecution(() => Native.MinusTimeInterval(time, interv)); + + public static IntPtr MinusTimeTime(long time1, long time2) + => SafeExecution(() => Native.MinusTimeTime(time1, time2)); + + public static IntPtr MinusTimetzInterval(IntPtr timetz, IntPtr interv) + => SafeExecution(() => Native.MinusTimetzInterval(timetz, interv)); + + public static long PlusTimeInterval(long time, IntPtr interv) + => SafeExecution(() => Native.PlusTimeInterval(time, interv)); + + public static IntPtr PlusTimetzInterval(IntPtr timetz, IntPtr interv) + => SafeExecution(() => Native.PlusTimetzInterval(timetz, interv)); + + public static int TimeCmp(long time1, long time2) + => SafeExecution(() => Native.TimeCmp(time1, time2)); + + public static bool TimeEq(long time1, long time2) + => SafeExecution(() => Native.TimeEq(time1, time2)); + + public static IntPtr TimeExtract(long time, IntPtr units) + => SafeExecution(() => Native.TimeExtract(time, units)); + + public static bool TimeGe(long time1, long time2) + => SafeExecution(() => Native.TimeGe(time1, time2)); + + public static bool TimeGt(long time1, long time2) + => SafeExecution(() => Native.TimeGt(time1, time2)); + + public static uint TimeHash(long time) + => SafeExecution(() => Native.TimeHash(time)); + + public static ulong TimeHashExtended(long time, int seed) + => SafeExecution(() => Native.TimeHashExtended(time, seed)); + + public static long TimeLarger(long time1, long time2) + => SafeExecution(() => Native.TimeLarger(time1, time2)); + + public static bool TimeLe(long time1, long time2) + => SafeExecution(() => Native.TimeLe(time1, time2)); + + public static bool TimeLt(long time1, long time2) + => SafeExecution(() => Native.TimeLt(time1, time2)); + + public static long TimeMake(int tm_hour, int tm_min, double sec) + => SafeExecution(() => Native.TimeMake(tm_hour, tm_min, sec)); + + public static bool TimeNe(long time1, long time2) + => SafeExecution(() => Native.TimeNe(time1, time2)); + + public static bool TimeOverlaps(long ts1, long te1, long ts2, long te2) + => SafeExecution(() => Native.TimeOverlaps(ts1, te1, ts2, te2)); + + public static double TimePart(long time, IntPtr units) + => SafeExecution(() => Native.TimePart(time, units)); + + public static long TimeScale(long date, int typmod) + => SafeExecution(() => Native.TimeScale(date, typmod)); + + public static long TimeSmaller(long time1, long time2) + => SafeExecution(() => Native.TimeSmaller(time1, time2)); + + public static IntPtr TimeToInterval(long time) + => SafeExecution(() => Native.TimeToInterval(time)); + + public static IntPtr TimeToTimetz(long time) + => SafeExecution(() => Native.TimeToTimetz(time)); + + public static long TimestampToTime(long ts) + => SafeExecution(() => Native.TimestampToTime(ts)); + + public static long TimestamptzToTime(long tztz) + => SafeExecution(() => Native.TimestamptzToTime(tztz)); + + public static IntPtr TimestamptzToTimetz(long tztz) + => SafeExecution(() => Native.TimestamptzToTimetz(tztz)); + + public static IntPtr TimetzAtLocal(IntPtr timetz) + => SafeExecution(() => Native.TimetzAtLocal(timetz)); + + public static int TimetzCmp(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzCmp(timetz1, timetz2)); + + public static bool TimetzEq(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzEq(timetz1, timetz2)); + + public static IntPtr TimetzExtract(IntPtr timetz, IntPtr units) + => SafeExecution(() => Native.TimetzExtract(timetz, units)); + + public static bool TimetzGe(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzGe(timetz1, timetz2)); + + public static bool TimetzGt(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzGt(timetz1, timetz2)); + + public static uint TimetzHash(IntPtr timetz) + => SafeExecution(() => Native.TimetzHash(timetz)); + + public static ulong TimetzHashExtended(IntPtr timetz, long seed) + => SafeExecution(() => Native.TimetzHashExtended(timetz, seed)); + + public static IntPtr TimetzIn(string str, int typmod) + => SafeExecution(() => Native.TimetzIn(str, typmod)); + + public static IntPtr TimetzIzone(IntPtr timetz, IntPtr zone) + => SafeExecution(() => Native.TimetzIzone(timetz, zone)); + + public static IntPtr TimetzLarger(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzLarger(timetz1, timetz2)); + + public static bool TimetzLe(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzLe(timetz1, timetz2)); + + public static bool TimetzLt(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzLt(timetz1, timetz2)); + + public static bool TimetzNe(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzNe(timetz1, timetz2)); + + public static IntPtr TimetzCopy(IntPtr timetz) + => SafeExecution(() => Native.TimetzCopy(timetz)); + + public static string TimetzOut(IntPtr timetz) + => SafeExecution(() => Native.TimetzOut(timetz)); + + public static bool TimetzOverlaps(IntPtr ts1, IntPtr te1, IntPtr ts2, IntPtr te2) + => SafeExecution(() => Native.TimetzOverlaps(ts1, te1, ts2, te2)); + + public static double TimetzPart(IntPtr timetz, IntPtr units) + => SafeExecution(() => Native.TimetzPart(timetz, units)); + + public static IntPtr TimetzScale(IntPtr timetz, int typmod) + => SafeExecution(() => Native.TimetzScale(timetz, typmod)); + + public static IntPtr TimetzSmaller(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.TimetzSmaller(timetz1, timetz2)); + + public static long TimetzToTime(IntPtr timetz) + => SafeExecution(() => Native.TimetzToTime(timetz)); + + public static IntPtr TimetzZone(IntPtr timetz, IntPtr zone) + => SafeExecution(() => Native.TimetzZone(timetz, zone)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pg_timestamp.g.cs b/MEOS.NET/Functions/Meos.pg_timestamp.g.cs new file mode 100644 index 0000000..dfc914e --- /dev/null +++ b/MEOS.NET/Functions/Meos.pg_timestamp.g.cs @@ -0,0 +1,207 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pg_timestamp.h declares. + public static partial class Meos + { + public static long AddTimestampInterval(long ts, IntPtr interv) + => SafeExecution(() => Native.AddTimestampInterval(ts, interv)); + + public static long AddTimestamptzInterval(long tstz, IntPtr interv) + => SafeExecution(() => Native.AddTimestamptzInterval(tstz, interv)); + + public static long AddTimestamptzIntervalAtZone(long tstz, IntPtr interv, IntPtr zone) + => SafeExecution(() => Native.AddTimestamptzIntervalAtZone(tstz, interv, zone)); + + public static int CmpTimestampTimestamp(long ts1, long ts2) + => SafeExecution(() => Native.CmpTimestampTimestamp(ts1, ts2)); + + public static int CmpTimestampTimestamptz(long ts, long tstz) + => SafeExecution(() => Native.CmpTimestampTimestamptz(ts, tstz)); + + public static int CmpTimestamptzTimestamp(long tstz, long ts) + => SafeExecution(() => Native.CmpTimestamptzTimestamp(tstz, ts)); + + public static bool EqTimestampTimestamp(long ts1, long ts2) + => SafeExecution(() => Native.EqTimestampTimestamp(ts1, ts2)); + + public static bool EqTimestampTimestamptz(long ts, long tstz) + => SafeExecution(() => Native.EqTimestampTimestamptz(ts, tstz)); + + public static bool EqTimestamptzTimestamp(long tstz, long ts) + => SafeExecution(() => Native.EqTimestamptzTimestamp(tstz, ts)); + + public static bool EqTimestamptzTimestamptz(long tstz1, long tstz2) + => SafeExecution(() => Native.EqTimestamptzTimestamptz(tstz1, tstz2)); + + public static long Float8ToTimestamptz(double seconds) + => SafeExecution(() => Native.Float8ToTimestamptz(seconds)); + + public static bool GtTimestampTimestamp(long ts1, long ts2) + => SafeExecution(() => Native.GtTimestampTimestamp(ts1, ts2)); + + public static bool GtTimestampTimestamptz(long ts, long tstz) + => SafeExecution(() => Native.GtTimestampTimestamptz(ts, tstz)); + + public static bool GtTimestamptzTimestamp(long tstz, long ts) + => SafeExecution(() => Native.GtTimestamptzTimestamp(tstz, ts)); + + public static bool GeTimestampTimestamp(long ts1, long ts2) + => SafeExecution(() => Native.GeTimestampTimestamp(ts1, ts2)); + + public static bool GeTimestampTimestamptz(long ts, long tstz) + => SafeExecution(() => Native.GeTimestampTimestamptz(ts, tstz)); + + public static bool GeTimestamptzTimestamp(long tstz, long ts) + => SafeExecution(() => Native.GeTimestamptzTimestamp(tstz, ts)); + + public static bool LeTimestampTimestamp(long ts1, long ts2) + => SafeExecution(() => Native.LeTimestampTimestamp(ts1, ts2)); + + public static bool LeTimestampTimestamptz(long ts, long tstz) + => SafeExecution(() => Native.LeTimestampTimestamptz(ts, tstz)); + + public static bool LeTimestamptzTimestamp(long tstz, long ts) + => SafeExecution(() => Native.LeTimestamptzTimestamp(tstz, ts)); + + public static bool LtTimestampTimestamp(long ts1, long ts2) + => SafeExecution(() => Native.LtTimestampTimestamp(ts1, ts2)); + + public static bool LtTimestampTimestamptz(long ts, long tstz) + => SafeExecution(() => Native.LtTimestampTimestamptz(ts, tstz)); + + public static bool LtTimestamptzTimestamp(long tstz, long ts) + => SafeExecution(() => Native.LtTimestamptzTimestamp(tstz, ts)); + + public static long MinusTimestampInterval(long ts, IntPtr interv) + => SafeExecution(() => Native.MinusTimestampInterval(ts, interv)); + + public static IntPtr MinusTimestampTimestamp(long ts1, long ts2) + => SafeExecution(() => Native.MinusTimestampTimestamp(ts1, ts2)); + + public static long MinusTimestamptzInterval(long tstz, IntPtr interv) + => SafeExecution(() => Native.MinusTimestamptzInterval(tstz, interv)); + + public static long MinusTimestamptzIntervalAtZone(long tstz, IntPtr interv, IntPtr zone) + => SafeExecution(() => Native.MinusTimestamptzIntervalAtZone(tstz, interv, zone)); + + public static IntPtr MinusTimestamptzTimestamptz(long tstz1, long tstz2) + => SafeExecution(() => Native.MinusTimestamptzTimestamptz(tstz1, tstz2)); + + public static bool NeTimestampTimestamp(long ts1, long ts2) + => SafeExecution(() => Native.NeTimestampTimestamp(ts1, ts2)); + + public static bool NeTimestampTimestamptz(long ts, long tstz) + => SafeExecution(() => Native.NeTimestampTimestamptz(ts, tstz)); + + public static bool NeTimestamptzTimestamp(long tstz, long ts) + => SafeExecution(() => Native.NeTimestamptzTimestamp(tstz, ts)); + + public static IntPtr TimestampAge(long ts1, long ts2) + => SafeExecution(() => Native.TimestampAge(ts1, ts2)); + + public static long TimestampAtLocal(long ts) + => SafeExecution(() => Native.TimestampAtLocal(ts)); + + public static long TimestampBin(long ts, IntPtr stride, long origin) + => SafeExecution(() => Native.TimestampBin(ts, stride, origin)); + + public static IntPtr TimestampExtract(long ts, IntPtr units) + => SafeExecution(() => Native.TimestampExtract(ts, units)); + + public static uint TimestampHash(long ts) + => SafeExecution(() => Native.TimestampHash(ts)); + + public static ulong TimestampHashExtended(long tstz, ulong seed) + => SafeExecution(() => Native.TimestampHashExtended(tstz, seed)); + + public static bool TimestampIsFinite(long ts) + => SafeExecution(() => Native.TimestampIsFinite(ts)); + + public static long TimestampIzone(long ts, IntPtr zone) + => SafeExecution(() => Native.TimestampIzone(ts, zone)); + + public static IntPtr TimeOfDay() + => SafeExecution(() => Native.TimeOfDay()); + + public static long TimestampLarger(long ts1, long ts2) + => SafeExecution(() => Native.TimestampLarger(ts1, ts2)); + + public static long TimestampMake(int year, int month, int mday, int hour, int min, double sec) + => SafeExecution(() => Native.TimestampMake(year, month, mday, hour, min, sec)); + + public static bool TimestampOverlaps(long ts1, long te1, long ts2, long te2) + => SafeExecution(() => Native.TimestampOverlaps(ts1, te1, ts2, te2)); + + public static double TimestampPart(long ts, IntPtr units) + => SafeExecution(() => Native.TimestampPart(ts, units)); + + public static long TimestampScale(long ts, int typmod) + => SafeExecution(() => Native.TimestampScale(ts, typmod)); + + public static long TimestampSmaller(long ts1, long ts2) + => SafeExecution(() => Native.TimestampSmaller(ts1, ts2)); + + public static long TimestampToTimestamptz(long ts) + => SafeExecution(() => Native.TimestampToTimestamptz(ts)); + + public static long TimestampTrunc(long ts, IntPtr units) + => SafeExecution(() => Native.TimestampTrunc(ts, units)); + + public static long TimestampZone(long ts, IntPtr zone) + => SafeExecution(() => Native.TimestampZone(ts, zone)); + + public static IntPtr TimestamptzAge(long tstz1, long tstz2) + => SafeExecution(() => Native.TimestamptzAge(tstz1, tstz2)); + + public static long TimestamptzAtLocal(long tstz) + => SafeExecution(() => Native.TimestamptzAtLocal(tstz)); + + public static long TimestamptzBin(long tstz, IntPtr stride, long origin) + => SafeExecution(() => Native.TimestamptzBin(tstz, stride, origin)); + + public static IntPtr TimestamptzExtract(long tstz, IntPtr units) + => SafeExecution(() => Native.TimestamptzExtract(tstz, units)); + + public static int TimestamptzHash(long tstz) + => SafeExecution(() => Native.TimestamptzHash(tstz)); + + public static ulong TimestamptzHashExtended(long tstz, ulong seed) + => SafeExecution(() => Native.TimestamptzHashExtended(tstz, seed)); + + public static long TimestamptzIzone(long tstz, IntPtr zone) + => SafeExecution(() => Native.TimestamptzIzone(tstz, zone)); + + public static long TimestamptzMake(int year, int month, int day, int hour, int min, double sec) + => SafeExecution(() => Native.TimestamptzMake(year, month, day, hour, min, sec)); + + public static long TimestamptzMakeAtTimezone(int year, int month, int day, int hour, int min, double sec, IntPtr zone) + => SafeExecution(() => Native.TimestamptzMakeAtTimezone(year, month, day, hour, min, sec, zone)); + + public static bool TimestamptzOverlaps(long ts1, long te1, long ts2, long te2) + => SafeExecution(() => Native.TimestamptzOverlaps(ts1, te1, ts2, te2)); + + public static double TimestamptzPart(long tstz, IntPtr units) + => SafeExecution(() => Native.TimestamptzPart(tstz, units)); + + public static long TimestamptzScale(long tstz, int typmod) + => SafeExecution(() => Native.TimestamptzScale(tstz, typmod)); + + public static long TimestamptzShift(long tstz, IntPtr interv) + => SafeExecution(() => Native.TimestamptzShift(tstz, interv)); + + public static long TimestamptzToTimestamp(long tstz) + => SafeExecution(() => Native.TimestamptzToTimestamp(tstz)); + + public static long TimestamptzTrunc(long tstz, IntPtr units) + => SafeExecution(() => Native.TimestamptzTrunc(tstz, units)); + + public static long TimestamptzTruncZone(long tstz, IntPtr units, IntPtr zone) + => SafeExecution(() => Native.TimestamptzTruncZone(tstz, units, zone)); + + public static long TimestamptzZone(long tstz, IntPtr zone) + => SafeExecution(() => Native.TimestamptzZone(tstz, zone)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pgsql_compat.g.cs b/MEOS.NET/Functions/Meos.pgsql_compat.g.cs new file mode 100644 index 0000000..1df0e25 --- /dev/null +++ b/MEOS.NET/Functions/Meos.pgsql_compat.g.cs @@ -0,0 +1,27 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pgsql_compat.h declares. + public static partial class Meos + { + public static IntPtr MeosPcPointSerialize(IntPtr pcpt) + => SafeExecution(() => Native.MeosPcPointSerialize(pcpt)); + + public static IntPtr MeosPcPointDeserialize(IntPtr serpt, IntPtr schema) + => SafeExecution(() => Native.MeosPcPointDeserialize(serpt, schema)); + + public static ulong MeosPcPatchSerializedSize(IntPtr patch) + => SafeExecution(() => Native.MeosPcPatchSerializedSize(patch)); + + public static IntPtr MeosPcPatchSerialize(IntPtr patch_in, IntPtr userdata) + => SafeExecution(() => Native.MeosPcPatchSerialize(patch_in, userdata)); + + public static IntPtr MeosPcPatchSerializeToUncompressed(IntPtr patch_in) + => SafeExecution(() => Native.MeosPcPatchSerializeToUncompressed(patch_in)); + + public static IntPtr MeosPcPatchDeserialize(IntPtr serpatch, IntPtr schema) + => SafeExecution(() => Native.MeosPcPatchDeserialize(serpatch, schema)); + + } +} diff --git a/MEOS.NET/Functions/Meos.pgtypes.g.cs b/MEOS.NET/Functions/Meos.pgtypes.g.cs new file mode 100644 index 0000000..9187a86 --- /dev/null +++ b/MEOS.NET/Functions/Meos.pgtypes.g.cs @@ -0,0 +1,840 @@ +using System.Runtime.InteropServices; + +namespace MEOS.NET.Functions +{ + /// The MEOS functions pgtypes.h declares. + public static partial class Meos + { + public static IntPtr PgNumericIn(string str, int typmod) + => SafeExecution(() => Native.PgNumericIn(str, typmod)); + + public static string PgNumericOut(IntPtr num) + => SafeExecution(() => Native.PgNumericOut(num)); + + public static int PgNumericTypmodin(IntPtr tl, int n) + => SafeExecution(() => Native.PgNumericTypmodin(tl, n)); + + public static string PgNumericTypmodout(int typmod) + => SafeExecution(() => Native.PgNumericTypmodout(typmod)); + + public static IntPtr PgNumeric(IntPtr num, int typmod) + => SafeExecution(() => Native.PgNumeric(num, typmod)); + + public static IntPtr PgNumericAbs(IntPtr num) + => SafeExecution(() => Native.PgNumericAbs(num)); + + public static IntPtr PgNumericUplus(IntPtr num) + => SafeExecution(() => Native.PgNumericUplus(num)); + + public static IntPtr PgNumericUminus(IntPtr num) + => SafeExecution(() => Native.PgNumericUminus(num)); + + public static IntPtr PgNumericSign(IntPtr num) + => SafeExecution(() => Native.PgNumericSign(num)); + + public static IntPtr PgNumericRound(IntPtr num, int scale) + => SafeExecution(() => Native.PgNumericRound(num, scale)); + + public static IntPtr PgNumericTrunc(IntPtr num, int scale) + => SafeExecution(() => Native.PgNumericTrunc(num, scale)); + + public static IntPtr PgNumericCeil(IntPtr num) + => SafeExecution(() => Native.PgNumericCeil(num)); + + public static IntPtr PgNumericFloor(IntPtr num) + => SafeExecution(() => Native.PgNumericFloor(num)); + + public static int PgNumericCmp(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericCmp(num1, num2)); + + public static bool PgNumericEq(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericEq(num1, num2)); + + public static bool PgNumericNe(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericNe(num1, num2)); + + public static bool PgNumericGt(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericGt(num1, num2)); + + public static bool PgNumericGe(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericGe(num1, num2)); + + public static bool PgNumericLt(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericLt(num1, num2)); + + public static bool PgNumericLe(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericLe(num1, num2)); + + public static IntPtr PgNumericAdd(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericAdd(num1, num2)); + + public static IntPtr PgNumericSub(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericSub(num1, num2)); + + public static IntPtr PgNumericMul(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericMul(num1, num2)); + + public static IntPtr PgNumericDiv(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericDiv(num1, num2)); + + public static IntPtr PgNumericDivTrunc(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericDivTrunc(num1, num2)); + + public static IntPtr PgNumericMod(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericMod(num1, num2)); + + public static IntPtr PgNumericInc(IntPtr num) + => SafeExecution(() => Native.PgNumericInc(num)); + + public static IntPtr PgNumericSmaller(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericSmaller(num1, num2)); + + public static IntPtr PgNumericLarger(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericLarger(num1, num2)); + + public static IntPtr PgNumericGcd(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericGcd(num1, num2)); + + public static IntPtr PgNumericLcm(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericLcm(num1, num2)); + + public static IntPtr PgNumericFac(long num) + => SafeExecution(() => Native.PgNumericFac(num)); + + public static IntPtr PgNumericSqrt(IntPtr num) + => SafeExecution(() => Native.PgNumericSqrt(num)); + + public static IntPtr PgNumericExp(IntPtr num) + => SafeExecution(() => Native.PgNumericExp(num)); + + public static IntPtr PgNumericLn(IntPtr num) + => SafeExecution(() => Native.PgNumericLn(num)); + + public static IntPtr PgNumericLog(IntPtr num1, IntPtr num2) + => SafeExecution(() => Native.PgNumericLog(num1, num2)); + + public static int PgNumericScale(IntPtr num) + => SafeExecution(() => Native.PgNumericScale(num)); + + public static int PgNumericMinScale(IntPtr num) + => SafeExecution(() => Native.PgNumericMinScale(num)); + + public static IntPtr PgNumericTrimScale(IntPtr num) + => SafeExecution(() => Native.PgNumericTrimScale(num)); + + public static double MeosStrtod(string str, IntPtr endptr) + => SafeExecution(() => Native.MeosStrtod(str, endptr)); + + public static int PgFloat4Cmp(float a, float b) + => SafeExecution(() => Native.PgFloat4Cmp(a, b)); + + public static int PgFloat8Cmp(double a, double b) + => SafeExecution(() => Native.PgFloat8Cmp(a, b)); + + public static IntPtr PgCstringToText(string str) + => SafeExecution(() => Native.PgCstringToText(str)); + + public static IntPtr PgIcuUnicodeVersion() + => SafeExecution(() => Native.PgIcuUnicodeVersion()); + + public static IntPtr PgTextConcat(IntPtr textarr, int count) + => SafeExecution(() => Native.PgTextConcat(textarr, count)); + + public static IntPtr PgTextConcatWs(IntPtr textarr, int count, IntPtr sep) + => SafeExecution(() => Native.PgTextConcatWs(textarr, count, sep)); + + public static bool PgTextGe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextGe(txt1, txt2)); + + public static bool PgTextGt(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextGt(txt1, txt2)); + + public static IntPtr PgTextLarger(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextLarger(txt1, txt2)); + + public static bool PgTextLe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextLe(txt1, txt2)); + + public static IntPtr PgTextLeft(IntPtr txt, int n) + => SafeExecution(() => Native.PgTextLeft(txt, n)); + + public static bool PgTextLt(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextLt(txt1, txt2)); + + public static bool PgTextPatternGe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextPatternGe(txt1, txt2)); + + public static bool PgTextPatternGt(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextPatternGt(txt1, txt2)); + + public static bool PgTextPatternLe(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextPatternLe(txt1, txt2)); + + public static bool PgTextPatternLt(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextPatternLt(txt1, txt2)); + + public static IntPtr PgTextReverse(IntPtr txt) + => SafeExecution(() => Native.PgTextReverse(txt)); + + public static IntPtr PgTextRight(IntPtr txt, int n) + => SafeExecution(() => Native.PgTextRight(txt, n)); + + public static IntPtr PgTextSmaller(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextSmaller(txt1, txt2)); + + public static bool PgTextStartsWith(IntPtr txt1, IntPtr txt2) + => SafeExecution(() => Native.PgTextStartsWith(txt1, txt2)); + + public static IntPtr PgTextSubstr(IntPtr txt, int start, int length) + => SafeExecution(() => Native.PgTextSubstr(txt, start, length)); + + public static IntPtr PgTextSubstrNoLen(IntPtr txt, int start) + => SafeExecution(() => Native.PgTextSubstrNoLen(txt, start)); + + public static bool PgUnicodeAssigned(IntPtr txt) + => SafeExecution(() => Native.PgUnicodeAssigned(txt)); + + public static bool PgUnicodeIsNormalized(IntPtr txt, IntPtr fmt) + => SafeExecution(() => Native.PgUnicodeIsNormalized(txt, fmt)); + + public static IntPtr PgUnicodeNormalizeFunc(IntPtr txt, IntPtr fmt) + => SafeExecution(() => Native.PgUnicodeNormalizeFunc(txt, fmt)); + + public static IntPtr PgUnicodeVersion() + => SafeExecution(() => Native.PgUnicodeVersion()); + + public static IntPtr PgUnistr(IntPtr txt) + => SafeExecution(() => Native.PgUnistr(txt)); + + public static string PgTextToCstring(IntPtr txt) + => SafeExecution(() => Native.PgTextToCstring(txt)); + + public static IntPtr ByteaCopy(IntPtr ba) + => SafeExecution(() => Native.ByteaCopy(ba)); + + public static int PgDateIn(string str) + => SafeExecution(() => Native.PgDateIn(str)); + + public static int PgDateLarger(int date1, int date2) + => SafeExecution(() => Native.PgDateLarger(date1, date2)); + + public static int PgDateMake(int year, int mon, int mday) + => SafeExecution(() => Native.PgDateMake(year, mon, mday)); + + public static int PgDateSmaller(int date1, int date2) + => SafeExecution(() => Native.PgDateSmaller(date1, date2)); + + public static string PgDateOut(int date) + => SafeExecution(() => Native.PgDateOut(date)); + + public static int PgTimeCmp(long time1, long time2) + => SafeExecution(() => Native.PgTimeCmp(time1, time2)); + + public static bool PgTimeEq(long time1, long time2) + => SafeExecution(() => Native.PgTimeEq(time1, time2)); + + public static bool PgTimeGe(long time1, long time2) + => SafeExecution(() => Native.PgTimeGe(time1, time2)); + + public static bool PgTimeGt(long time1, long time2) + => SafeExecution(() => Native.PgTimeGt(time1, time2)); + + public static uint PgTimeHash(long time) + => SafeExecution(() => Native.PgTimeHash(time)); + + public static ulong PgTimeHashExtended(long time, int seed) + => SafeExecution(() => Native.PgTimeHashExtended(time, seed)); + + public static long PgTimeIn(string str, int typmod) + => SafeExecution(() => Native.PgTimeIn(str, typmod)); + + public static long PgTimeLarger(long time1, long time2) + => SafeExecution(() => Native.PgTimeLarger(time1, time2)); + + public static bool PgTimeLe(long time1, long time2) + => SafeExecution(() => Native.PgTimeLe(time1, time2)); + + public static bool PgTimeLt(long time1, long time2) + => SafeExecution(() => Native.PgTimeLt(time1, time2)); + + public static bool PgTimeNe(long time1, long time2) + => SafeExecution(() => Native.PgTimeNe(time1, time2)); + + public static string PgTimeOut(long time) + => SafeExecution(() => Native.PgTimeOut(time)); + + public static double PgTimePart(long time, IntPtr units) + => SafeExecution(() => Native.PgTimePart(time, units)); + + public static long PgTimeScale(long date, int typmod) + => SafeExecution(() => Native.PgTimeScale(date, typmod)); + + public static long PgTimeSmaller(long time1, long time2) + => SafeExecution(() => Native.PgTimeSmaller(time1, time2)); + + public static IntPtr PgTimetzAtLocal(IntPtr timetz) + => SafeExecution(() => Native.PgTimetzAtLocal(timetz)); + + public static int PgTimetzCmp(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzCmp(timetz1, timetz2)); + + public static bool PgTimetzEq(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzEq(timetz1, timetz2)); + + public static bool PgTimetzGe(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzGe(timetz1, timetz2)); + + public static bool PgTimetzGt(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzGt(timetz1, timetz2)); + + public static uint PgTimetzHash(IntPtr timetz) + => SafeExecution(() => Native.PgTimetzHash(timetz)); + + public static ulong PgTimetzHashExtended(IntPtr timetz, long seed) + => SafeExecution(() => Native.PgTimetzHashExtended(timetz, seed)); + + public static IntPtr PgTimetzIn(string str, int typmod) + => SafeExecution(() => Native.PgTimetzIn(str, typmod)); + + public static IntPtr PgTimetzIzone(IntPtr timetz, IntPtr zone) + => SafeExecution(() => Native.PgTimetzIzone(timetz, zone)); + + public static bool PgTimetzLe(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzLe(timetz1, timetz2)); + + public static bool PgTimetzLt(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzLt(timetz1, timetz2)); + + public static bool PgTimetzNe(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzNe(timetz1, timetz2)); + + public static string PgTimetzOut(IntPtr timetz) + => SafeExecution(() => Native.PgTimetzOut(timetz)); + + public static IntPtr PgTimetzLarger(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzLarger(timetz1, timetz2)); + + public static double PgTimetzPart(IntPtr timetz, IntPtr units) + => SafeExecution(() => Native.PgTimetzPart(timetz, units)); + + public static IntPtr PgTimetzScale(IntPtr timetz, int typmod) + => SafeExecution(() => Native.PgTimetzScale(timetz, typmod)); + + public static IntPtr PgTimetzSmaller(IntPtr timetz1, IntPtr timetz2) + => SafeExecution(() => Native.PgTimetzSmaller(timetz1, timetz2)); + + public static IntPtr PgTimetzZone(IntPtr timetz, IntPtr zone) + => SafeExecution(() => Native.PgTimetzZone(timetz, zone)); + + public static IntPtr PgIntervalJustifyDays(IntPtr interv) + => SafeExecution(() => Native.PgIntervalJustifyDays(interv)); + + public static IntPtr PgIntervalJustifyHours(IntPtr interv) + => SafeExecution(() => Native.PgIntervalJustifyHours(interv)); + + public static IntPtr PgIntervalJustifyInterval(IntPtr interv) + => SafeExecution(() => Native.PgIntervalJustifyInterval(interv)); + + public static IntPtr PgTimestampAge(long ts1, long ts2) + => SafeExecution(() => Native.PgTimestampAge(ts1, ts2)); + + public static long PgTimestampAtLocal(long ts) + => SafeExecution(() => Native.PgTimestampAtLocal(ts)); + + public static long PgTimestampBin(long ts, IntPtr stride, long origin) + => SafeExecution(() => Native.PgTimestampBin(ts, stride, origin)); + + public static uint PgTimestampHash(long ts) + => SafeExecution(() => Native.PgTimestampHash(ts)); + + public static ulong PgTimestampHashExtended(long tstz, ulong seed) + => SafeExecution(() => Native.PgTimestampHashExtended(tstz, seed)); + + public static long PgTimestampIn(string str, int typmod) + => SafeExecution(() => Native.PgTimestampIn(str, typmod)); + + public static long PgTimestampIzone(long ts, IntPtr zone) + => SafeExecution(() => Native.PgTimestampIzone(ts, zone)); + + public static long PgTimestampLarger(long ts1, long ts2) + => SafeExecution(() => Native.PgTimestampLarger(ts1, ts2)); + + public static string PgTimestampOut(long ts) + => SafeExecution(() => Native.PgTimestampOut(ts)); + + public static double PgTimestampPart(long ts, IntPtr units) + => SafeExecution(() => Native.PgTimestampPart(ts, units)); + + public static long PgTimestampScale(long ts, int typmod) + => SafeExecution(() => Native.PgTimestampScale(ts, typmod)); + + public static long PgTimestampSmaller(long ts1, long ts2) + => SafeExecution(() => Native.PgTimestampSmaller(ts1, ts2)); + + public static long PgTimestampTrunc(long ts, IntPtr units) + => SafeExecution(() => Native.PgTimestampTrunc(ts, units)); + + public static long PgTimestampZone(long ts, IntPtr zone) + => SafeExecution(() => Native.PgTimestampZone(ts, zone)); + + public static IntPtr PgTimestamptzAge(long tstz1, long tstz2) + => SafeExecution(() => Native.PgTimestamptzAge(tstz1, tstz2)); + + public static long PgTimestamptzBin(long tstz, IntPtr stride, long origin) + => SafeExecution(() => Native.PgTimestamptzBin(tstz, stride, origin)); + + public static uint PgTimestamptzHash(long tstz) + => SafeExecution(() => Native.PgTimestamptzHash(tstz)); + + public static ulong PgTimestamptzHashExtended(long tstz, ulong seed) + => SafeExecution(() => Native.PgTimestamptzHashExtended(tstz, seed)); + + public static long PgTimestamptzIn(string str, int typmod) + => SafeExecution(() => Native.PgTimestamptzIn(str, typmod)); + + public static long PgTimestamptzIzone(long tstz, IntPtr zone) + => SafeExecution(() => Native.PgTimestamptzIzone(tstz, zone)); + + public static string PgTimestamptzOut(long tstz) + => SafeExecution(() => Native.PgTimestamptzOut(tstz)); + + public static double PgTimestamptzPart(long tstz, IntPtr units) + => SafeExecution(() => Native.PgTimestamptzPart(tstz, units)); + + public static long PgTimestamptzScale(long tstz, int typmod) + => SafeExecution(() => Native.PgTimestamptzScale(tstz, typmod)); + + public static long PgTimestamptzTrunc(long tstz, IntPtr units) + => SafeExecution(() => Native.PgTimestamptzTrunc(tstz, units)); + + public static long PgTimestamptzTruncZone(long tstz, IntPtr units, IntPtr zone) + => SafeExecution(() => Native.PgTimestamptzTruncZone(tstz, units, zone)); + + public static long PgTimestamptzZone(long tstz, IntPtr zone) + => SafeExecution(() => Native.PgTimestamptzZone(tstz, zone)); + + public static long PgTimestamptzAtLocal(long tstz) + => SafeExecution(() => Native.PgTimestamptzAtLocal(tstz)); + + public static int PgIntervalCmp(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalCmp(interv1, interv2)); + + public static bool PgIntervalEq(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalEq(interv1, interv2)); + + public static bool PgIntervalGe(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalGe(interv1, interv2)); + + public static bool PgIntervalGt(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalGt(interv1, interv2)); + + public static uint PgIntervalHash(IntPtr interv) + => SafeExecution(() => Native.PgIntervalHash(interv)); + + public static ulong PgIntervalHashExtended(IntPtr interv, ulong seed) + => SafeExecution(() => Native.PgIntervalHashExtended(interv, seed)); + + public static IntPtr PgIntervalIn(string str, int typmod) + => SafeExecution(() => Native.PgIntervalIn(str, typmod)); + + public static IntPtr PgIntervalLarger(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalLarger(interv1, interv2)); + + public static bool PgIntervalLe(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalLe(interv1, interv2)); + + public static bool PgIntervalLt(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalLt(interv1, interv2)); + + public static bool PgIntervalNe(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalNe(interv1, interv2)); + + public static string PgIntervalOut(IntPtr interv) + => SafeExecution(() => Native.PgIntervalOut(interv)); + + public static double PgIntervalPart(IntPtr interv, IntPtr units) + => SafeExecution(() => Native.PgIntervalPart(interv, units)); + + public static IntPtr PgIntervalScale(IntPtr interv, int typmod) + => SafeExecution(() => Native.PgIntervalScale(interv, typmod)); + + public static IntPtr PgIntervalSmaller(IntPtr interv1, IntPtr interv2) + => SafeExecution(() => Native.PgIntervalSmaller(interv1, interv2)); + + public static IntPtr PgIntervalTrunc(IntPtr interv, IntPtr units) + => SafeExecution(() => Native.PgIntervalTrunc(interv, units)); + + public static IntPtr PgJsonIn(string str) + => SafeExecution(() => Native.PgJsonIn(str)); + + public static string PgJsonOut(IntPtr js) + => SafeExecution(() => Native.PgJsonOut(js)); + + public static IntPtr PgJsonbFromText(IntPtr txt, bool unique_keys) + => SafeExecution(() => Native.PgJsonbFromText(txt, unique_keys)); + + public static IntPtr PgJsonbToText(IntPtr jb) + => SafeExecution(() => Native.PgJsonbToText(jb)); + + public static IntPtr PgJsonbIn(string str) + => SafeExecution(() => Native.PgJsonbIn(str)); + + public static string PgJsonbOut(IntPtr jb) + => SafeExecution(() => Native.PgJsonbOut(jb)); + + public static IntPtr PgJsonMake(IntPtr keyvalarr, int count) + => SafeExecution(() => Native.PgJsonMake(keyvalarr, count)); + + public static IntPtr PgJsonMakeTwoArg(IntPtr keys, IntPtr values, int count) + => SafeExecution(() => Native.PgJsonMakeTwoArg(keys, values, count)); + + public static IntPtr PgJsonbCopy(IntPtr jb) + => SafeExecution(() => Native.PgJsonbCopy(jb)); + + public static IntPtr PgJsonbMake(IntPtr keys_vals, int count) + => SafeExecution(() => Native.PgJsonbMake(keys_vals, count)); + + public static IntPtr PgJsonbMakeTwoArg(IntPtr keys, IntPtr values, int count) + => SafeExecution(() => Native.PgJsonbMakeTwoArg(keys, values, count)); + + public static IntPtr[] PgJsonArrayElements(IntPtr js) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PgJsonArrayElements(js, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] PgJsonArrayElementsText(IntPtr js) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PgJsonArrayElementsText(js, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int PgJsonArrayLength(IntPtr js) + => SafeExecution(() => Native.PgJsonArrayLength(js)); + + public static (IntPtr[], IntPtr[]) PgJsonEach(IntPtr js) + { + IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.PgJsonEach(js, _out_values, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); + IntPtr[] __out_values_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } + return (_resultArr, __out_values_out); + } + finally + { + Marshal.FreeHGlobal(_out_values); + Marshal.FreeHGlobal(_count_count); + } + } + + public static (IntPtr[], IntPtr[]) PgJsonEachText(IntPtr js) + { + IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.PgJsonEachText(js, _out_values, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); + IntPtr[] __out_values_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } + return (_resultArr, __out_values_out); + } + finally + { + Marshal.FreeHGlobal(_out_values); + Marshal.FreeHGlobal(_count_count); + } + } + + public static IntPtr[] PgJsonObjectKeys(IntPtr js) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PgJsonObjectKeys(js, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr PgJsonTypeof(IntPtr js) + => SafeExecution(() => Native.PgJsonTypeof(js)); + + public static IntPtr[] PgJsonbArrayElements(IntPtr jb) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PgJsonbArrayElements(jb, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr[] PgJsonbArrayElementsText(IntPtr jb) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PgJsonbArrayElementsText(jb, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static int PgJsonbArrayLength(IntPtr jb) + => SafeExecution(() => Native.PgJsonbArrayLength(jb)); + + public static int PgJsonbCmp(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbCmp(jb1, jb2)); + + public static bool PgJsonbContained(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbContained(jb1, jb2)); + + public static bool PgJsonbContains(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbContains(jb1, jb2)); + + public static (IntPtr[], IntPtr[]) PgJsonbEach(IntPtr jb) + { + IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.PgJsonbEach(jb, _out_values, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); + IntPtr[] __out_values_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } + return (_resultArr, __out_values_out); + } + finally + { + Marshal.FreeHGlobal(_out_values); + Marshal.FreeHGlobal(_count_count); + } + } + + public static (IntPtr[], IntPtr[]) PgJsonbEachText(IntPtr jb) + { + IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); + IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _resultPtr = SafeExecution(() => Native.PgJsonbEachText(jb, _out_values, _count_count)); + int _n = Marshal.ReadInt32(_count_count); + IntPtr[] _resultArr = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } + IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); + IntPtr[] __out_values_out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } + return (_resultArr, __out_values_out); + } + finally + { + Marshal.FreeHGlobal(_out_values); + Marshal.FreeHGlobal(_count_count); + } + } + + public static bool PgJsonbEq(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbEq(jb1, jb2)); + + public static bool PgJsonbExists(IntPtr jb, IntPtr key) + => SafeExecution(() => Native.PgJsonbExists(jb, key)); + + public static bool PgJsonbExistsArray(IntPtr jb, IntPtr keys_elems, int keys_len, bool any) + => SafeExecution(() => Native.PgJsonbExistsArray(jb, keys_elems, keys_len, any)); + + public static bool PgJsonbGe(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbGe(jb1, jb2)); + + public static bool PgJsonbGt(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbGt(jb1, jb2)); + + public static uint PgJsonbHash(IntPtr jb) + => SafeExecution(() => Native.PgJsonbHash(jb)); + + public static ulong PgJsonbHashExtended(IntPtr jb, ulong seed) + => SafeExecution(() => Native.PgJsonbHashExtended(jb, seed)); + + public static IntPtr[] PgJsonbObjectKeys(IntPtr jb) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PgJsonbObjectKeys(jb, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + public static IntPtr PgJsonArrayElement(IntPtr js, int element) + => SafeExecution(() => Native.PgJsonArrayElement(js, element)); + + public static IntPtr PgJsonArrayElementText(IntPtr js, int element) + => SafeExecution(() => Native.PgJsonArrayElementText(js, element)); + + public static IntPtr PgJsonExtractPath(IntPtr js, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.PgJsonExtractPath(js, path_elems, path_len)); + + public static IntPtr PgJsonExtractPathText(IntPtr js, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.PgJsonExtractPathText(js, path_elems, path_len)); + + public static IntPtr PgJsonObjectField(IntPtr js, IntPtr key) + => SafeExecution(() => Native.PgJsonObjectField(js, key)); + + public static IntPtr PgJsonObjectFieldText(IntPtr js, IntPtr key) + => SafeExecution(() => Native.PgJsonObjectFieldText(js, key)); + + public static IntPtr PgJsonStripNulls(IntPtr js, bool strip_in_arrays) + => SafeExecution(() => Native.PgJsonStripNulls(js, strip_in_arrays)); + + public static IntPtr PgJsonbArrayElement(IntPtr jb, int element) + => SafeExecution(() => Native.PgJsonbArrayElement(jb, element)); + + public static IntPtr PgJsonbArrayElementText(IntPtr jb, int element) + => SafeExecution(() => Native.PgJsonbArrayElementText(jb, element)); + + public static IntPtr PgJsonbConcat(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbConcat(jb1, jb2)); + + public static IntPtr PgJsonbDelete(IntPtr jb, IntPtr key) + => SafeExecution(() => Native.PgJsonbDelete(jb, key)); + + public static IntPtr PgJsonbDeleteArray(IntPtr jb, IntPtr keys_elems, int keys_len) + => SafeExecution(() => Native.PgJsonbDeleteArray(jb, keys_elems, keys_len)); + + public static IntPtr PgJsonbDeleteIndex(IntPtr jb, int idx) + => SafeExecution(() => Native.PgJsonbDeleteIndex(jb, idx)); + + public static IntPtr PgJsonbDeletePath(IntPtr jb, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.PgJsonbDeletePath(jb, path_elems, path_len)); + + public static IntPtr PgJsonbExtractPath(IntPtr jb, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.PgJsonbExtractPath(jb, path_elems, path_len)); + + public static IntPtr PgJsonbExtractPathText(IntPtr jb, IntPtr path_elems, int path_len) + => SafeExecution(() => Native.PgJsonbExtractPathText(jb, path_elems, path_len)); + + public static IntPtr PgJsonbInsert(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool after) + => SafeExecution(() => Native.PgJsonbInsert(jb, path_elems, path_len, newjb, after)); + + public static IntPtr PgJsonbObjectField(IntPtr jb, IntPtr key) + => SafeExecution(() => Native.PgJsonbObjectField(jb, key)); + + public static IntPtr PgJsonbObjectFieldText(IntPtr jb, IntPtr key) + => SafeExecution(() => Native.PgJsonbObjectFieldText(jb, key)); + + public static IntPtr PgJsonbPretty(IntPtr jb) + => SafeExecution(() => Native.PgJsonbPretty(jb)); + + public static IntPtr PgJsonbSet(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool create) + => SafeExecution(() => Native.PgJsonbSet(jb, path_elems, path_len, newjb, create)); + + public static IntPtr PgJsonbSetLax(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool create, IntPtr handle_null) + => SafeExecution(() => Native.PgJsonbSetLax(jb, path_elems, path_len, newjb, create, handle_null)); + + public static IntPtr PgJsonbStripNulls(IntPtr jb, bool strip_in_arrays) + => SafeExecution(() => Native.PgJsonbStripNulls(jb, strip_in_arrays)); + + public static bool PgJsonbLe(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbLe(jb1, jb2)); + + public static bool PgJsonbLt(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbLt(jb1, jb2)); + + public static bool PgJsonbNe(IntPtr jb1, IntPtr jb2) + => SafeExecution(() => Native.PgJsonbNe(jb1, jb2)); + + public static IntPtr PgJsonpathIn(string str) + => SafeExecution(() => Native.PgJsonpathIn(str)); + + public static string PgJsonpathOut(IntPtr jp) + => SafeExecution(() => Native.PgJsonpathOut(jp)); + + public static IntPtr PgJsonpathCopy(IntPtr jp) + => SafeExecution(() => Native.PgJsonpathCopy(jp)); + + public static int PgJsonbPathExists(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.PgJsonbPathExists(jb, jp, vars, silent, tz)); + + public static bool PgJsonbPathMatch(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.PgJsonbPathMatch(jb, jp, vars, silent, tz)); + + public static IntPtr PgJsonbPathQueryArray(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.PgJsonbPathQueryArray(jb, jp, vars, silent, tz)); + + public static IntPtr PgJsonbPathQueryFirst(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + => SafeExecution(() => Native.PgJsonbPathQueryFirst(jb, jp, vars, silent, tz)); + + public static IntPtr[] PgJsonbPathQueryAll(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) + { + IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); + try + { + IntPtr _p = SafeExecution(() => Native.PgJsonbPathQueryAll(jb, jp, vars, silent, tz, _cnt)); + int _n = Marshal.ReadInt32(_cnt); + IntPtr[] _out = new IntPtr[_n]; + for (int _i = 0; _i < _n; _i++) + { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } + return _out; + } + finally { Marshal.FreeHGlobal(_cnt); } + } + + } +} diff --git a/MEOS.NET/Functions/MeosSafeExecution.cs b/MEOS.NET/Functions/MeosSafeExecution.cs new file mode 100644 index 0000000..7b7c211 --- /dev/null +++ b/MEOS.NET/Functions/MeosSafeExecution.cs @@ -0,0 +1,31 @@ +using MEOS.NET.Errors; + +namespace MEOS.NET.Functions +{ + /// + /// The MEOS surface: every public MEOS function, one static method each. + /// + /// + /// MEOS reports an error through the handler and returns, so the value a call + /// returns means nothing once an error was reported. Every wrapper therefore + /// goes through SafeExecution, which raises what the handler recorded. + /// + public static partial class Meos + { + internal delegate void ErrorHandlingMethod(int level, int errorCode, string message); + + private static T SafeExecution(Func function) + { + var result = function(); + MEOSErrorHandling.CheckError(); + + return result; + } + + private static void SafeExecution(Action function) + { + function(); + MEOSErrorHandling.CheckError(); + } + } +} diff --git a/MEOS.NET/Helpers/DateHelper.cs b/MEOS.NET/Helpers/DateHelper.cs index 6754ebf..51a43e9 100644 --- a/MEOS.NET/Helpers/DateHelper.cs +++ b/MEOS.NET/Helpers/DateHelper.cs @@ -1,20 +1,20 @@ -using MEOS.NET.Internal; -using MEOS.NET.Structures; - -namespace MEOS.NET.Helpers -{ - internal static class DateHelper - { - internal static DateTime ToDateTime(this TimestampTz pgTimestamp) - { - var str = MEOSExposedFunctions.timestamptz_out(pgTimestamp.Time); - return DateTime.Parse(str); - } - - internal static long ToPgTimestamp(this DateTime dateTime) - { - var res = MEOSExposedFunctions.timestamptz_in(dateTime.ToString("s"), -1); // ToString("s") -> ISO 8601 formatted date string - return res; - } - } -} +using MEOS.NET.Functions; +using MEOS.NET.Structures; + +namespace MEOS.NET.Helpers +{ + internal static class DateHelper + { + internal static DateTime ToDateTime(this TimestampTz pgTimestamp) + { + var str = Meos.TimestamptzOut(pgTimestamp.Time); + return DateTime.Parse(str); + } + + internal static long ToPgTimestamp(this DateTime dateTime) + { + var res = Meos.TimestamptzIn(dateTime.ToString("s"), -1); // ToString("s") -> ISO 8601 formatted date string + return res; + } + } +} diff --git a/MEOS.NET/Internal/MEOSExposedFunctions.cs b/MEOS.NET/Internal/MEOSExposedFunctions.cs deleted file mode 100644 index 8277f98..0000000 --- a/MEOS.NET/Internal/MEOSExposedFunctions.cs +++ /dev/null @@ -1,15749 +0,0 @@ -using System.CodeDom.Compiler; -using System.Runtime.InteropServices; - -using MEOS.NET.Enums; - -namespace MEOS.NET.Internal -{ - [GeneratedCode("MEOS.NET.Builder.MEOSIDL", "0.1.0")] - internal partial class MEOSExposedFunctions - { - public static void meos_error(int errlevel, int errcode, string format) - => SafeExecution(() => MEOSExternalFunctions.meos_error(errlevel, errcode, format)); - - public static int meos_errno() - => SafeExecution(() => MEOSExternalFunctions.meos_errno()); - - public static int meos_errno_set(int err) - => SafeExecution(() => MEOSExternalFunctions.meos_errno_set(err)); - - public static int meos_errno_restore(int err) - => SafeExecution(() => MEOSExternalFunctions.meos_errno_restore(err)); - - public static int meos_errno_reset() - => SafeExecution(() => MEOSExternalFunctions.meos_errno_reset()); - - public static IntPtr meos_array_create(int elem_size) - => SafeExecution(() => MEOSExternalFunctions.meos_array_create(elem_size)); - - public static void meos_array_add(IntPtr array, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.meos_array_add(array, value)); - - public static IntPtr meos_array_get(IntPtr array, int n) - => SafeExecution(() => MEOSExternalFunctions.meos_array_get(array, n)); - - public static int meos_array_count(IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_array_count(array)); - - public static void meos_array_reset(IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_array_reset(array)); - - public static void meos_array_reset_free(IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_array_reset_free(array)); - - public static void meos_array_destroy(IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_array_destroy(array)); - - public static void meos_array_destroy_free(IntPtr array) - => SafeExecution(() => MEOSExternalFunctions.meos_array_destroy_free(array)); - - public static IntPtr rtree_create_intspan() - => SafeExecution(() => MEOSExternalFunctions.rtree_create_intspan()); - - public static IntPtr rtree_create_bigintspan() - => SafeExecution(() => MEOSExternalFunctions.rtree_create_bigintspan()); - - public static IntPtr rtree_create_floatspan() - => SafeExecution(() => MEOSExternalFunctions.rtree_create_floatspan()); - - public static IntPtr rtree_create_datespan() - => SafeExecution(() => MEOSExternalFunctions.rtree_create_datespan()); - - public static IntPtr rtree_create_tstzspan() - => SafeExecution(() => MEOSExternalFunctions.rtree_create_tstzspan()); - - public static IntPtr rtree_create_tbox() - => SafeExecution(() => MEOSExternalFunctions.rtree_create_tbox()); - - public static IntPtr rtree_create_stbox() - => SafeExecution(() => MEOSExternalFunctions.rtree_create_stbox()); - - public static void rtree_free(IntPtr rtree) - => SafeExecution(() => MEOSExternalFunctions.rtree_free(rtree)); - - public static void rtree_insert(IntPtr rtree, IntPtr box, int id) - => SafeExecution(() => MEOSExternalFunctions.rtree_insert(rtree, box, id)); - - public static void rtree_insert_temporal(IntPtr rtree, IntPtr temp, int id) - => SafeExecution(() => MEOSExternalFunctions.rtree_insert_temporal(rtree, temp, id)); - - public static void rtree_insert_temporal_split(IntPtr rtree, IntPtr temp, int id, int maxboxes) - => SafeExecution(() => MEOSExternalFunctions.rtree_insert_temporal_split(rtree, temp, id, maxboxes)); - - public static int rtree_search(IntPtr rtree, IntPtr op, IntPtr query, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.rtree_search(rtree, op, query, result)); - - public static int rtree_search_temporal(IntPtr rtree, IntPtr op, IntPtr temp, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.rtree_search_temporal(rtree, op, temp, result)); - - public static int rtree_search_temporal_dedup(IntPtr rtree, IntPtr op, IntPtr temp, int maxboxes, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.rtree_search_temporal_dedup(rtree, op, temp, maxboxes, result)); - - public static void meos_initialize_error_handler(IntPtr err_handler) - => SafeExecution(() => MEOSExternalFunctions.meos_initialize_error_handler(err_handler)); - - public static void meos_initialize_allocator(IntPtr malloc_fn, IntPtr realloc_fn, IntPtr free_fn) - => SafeExecution(() => MEOSExternalFunctions.meos_initialize_allocator(malloc_fn, realloc_fn, free_fn)); - - public static void meos_initialize_noexit_error_handler() - => SafeExecution(() => MEOSExternalFunctions.meos_initialize_noexit_error_handler()); - - public static void meos_initialize_timezone(string name) - => SafeExecution(() => MEOSExternalFunctions.meos_initialize_timezone(name)); - - public static void meos_initialize_collation() - => SafeExecution(() => MEOSExternalFunctions.meos_initialize_collation()); - - public static void meos_finalize_timezone() - => SafeExecution(() => MEOSExternalFunctions.meos_finalize_timezone()); - - public static void meos_finalize_collation() - => SafeExecution(() => MEOSExternalFunctions.meos_finalize_collation()); - - public static void meos_finalize_projsrs() - => SafeExecution(() => MEOSExternalFunctions.meos_finalize_projsrs()); - - public static void meos_finalize_ways() - => SafeExecution(() => MEOSExternalFunctions.meos_finalize_ways()); - - public static bool meos_set_datestyle(string newval, IntPtr extra) - => SafeExecution(() => MEOSExternalFunctions.meos_set_datestyle(newval, extra)); - - public static bool meos_set_intervalstyle(string newval, int extra) - => SafeExecution(() => MEOSExternalFunctions.meos_set_intervalstyle(newval, extra)); - - public static string meos_get_datestyle() - => SafeExecution(() => MEOSExternalFunctions.meos_get_datestyle()); - - public static string meos_get_intervalstyle() - => SafeExecution(() => MEOSExternalFunctions.meos_get_intervalstyle()); - - public static void meos_set_spatial_ref_sys_csv(string path) - => SafeExecution(() => MEOSExternalFunctions.meos_set_spatial_ref_sys_csv(path)); - - public static void meos_set_ways_csv(string path) - => SafeExecution(() => MEOSExternalFunctions.meos_set_ways_csv(path)); - - public static void meos_initialize() - => SafeExecution(() => MEOSExternalFunctions.meos_initialize()); - - public static void meos_finalize() - => SafeExecution(() => MEOSExternalFunctions.meos_finalize()); - - public static IntPtr bigintset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.bigintset_in(str)); - - public static string bigintset_out(IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.bigintset_out(set)); - - public static IntPtr bigintspan_expand(IntPtr s, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_expand(s, value)); - - public static IntPtr bigintspan_in(string str) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_in(str)); - - public static string bigintspan_out(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_out(s)); - - public static IntPtr bigintspanset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.bigintspanset_in(str)); - - public static string bigintspanset_out(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.bigintspanset_out(ss)); - - public static IntPtr dateset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.dateset_in(str)); - - public static string dateset_out(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.dateset_out(s)); - - public static IntPtr datespan_in(string str) - => SafeExecution(() => MEOSExternalFunctions.datespan_in(str)); - - public static string datespan_out(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.datespan_out(s)); - - public static IntPtr datespanset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.datespanset_in(str)); - - public static string datespanset_out(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.datespanset_out(ss)); - - public static IntPtr floatset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.floatset_in(str)); - - public static string floatset_out(IntPtr set, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.floatset_out(set, maxdd)); - - public static IntPtr floatspan_expand(IntPtr s, double value) - => SafeExecution(() => MEOSExternalFunctions.floatspan_expand(s, value)); - - public static IntPtr floatspan_in(string str) - => SafeExecution(() => MEOSExternalFunctions.floatspan_in(str)); - - public static string floatspan_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.floatspan_out(s, maxdd)); - - public static IntPtr floatspanset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_in(str)); - - public static string floatspanset_out(IntPtr ss, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_out(ss, maxdd)); - - public static IntPtr intset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.intset_in(str)); - - public static string intset_out(IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.intset_out(set)); - - public static IntPtr intspan_expand(IntPtr s, int value) - => SafeExecution(() => MEOSExternalFunctions.intspan_expand(s, value)); - - public static IntPtr intspan_in(string str) - => SafeExecution(() => MEOSExternalFunctions.intspan_in(str)); - - public static string intspan_out(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intspan_out(s)); - - public static IntPtr intspanset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.intspanset_in(str)); - - public static string intspanset_out(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.intspanset_out(ss)); - - public static string set_as_hexwkb(IntPtr s, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.set_as_hexwkb(s, variant, size_out)); - - public static IntPtr set_as_wkb(IntPtr s, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.set_as_wkb(s, variant, size_out)); - - public static IntPtr set_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.set_from_hexwkb(hexwkb)); - - public static IntPtr set_from_wkb(IntPtr wkb, ulong size) - => SafeExecution(() => MEOSExternalFunctions.set_from_wkb(wkb, size)); - - public static string span_as_hexwkb(IntPtr s, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.span_as_hexwkb(s, variant, size_out)); - - public static IntPtr span_as_wkb(IntPtr s, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.span_as_wkb(s, variant, size_out)); - - public static IntPtr span_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.span_from_hexwkb(hexwkb)); - - public static IntPtr span_from_wkb(IntPtr wkb, ulong size) - => SafeExecution(() => MEOSExternalFunctions.span_from_wkb(wkb, size)); - - public static string spanset_as_hexwkb(IntPtr ss, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.spanset_as_hexwkb(ss, variant, size_out)); - - public static IntPtr spanset_as_wkb(IntPtr ss, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.spanset_as_wkb(ss, variant, size_out)); - - public static IntPtr spanset_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.spanset_from_hexwkb(hexwkb)); - - public static IntPtr spanset_from_wkb(IntPtr wkb, ulong size) - => SafeExecution(() => MEOSExternalFunctions.spanset_from_wkb(wkb, size)); - - public static IntPtr textset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.textset_in(str)); - - public static string textset_out(IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.textset_out(set)); - - public static IntPtr tstzset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tstzset_in(str)); - - public static string tstzset_out(IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.tstzset_out(set)); - - public static IntPtr tstzspan_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_in(str)); - - public static string tstzspan_out(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_out(s)); - - public static IntPtr tstzspanset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_in(str)); - - public static string tstzspanset_out(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_out(ss)); - - public static IntPtr bigintset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.bigintset_make(values, count)); - - public static IntPtr bigintspan_make(IntPtr lower, IntPtr upper, bool lower_inc, bool upper_inc) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_make(lower, upper, lower_inc, upper_inc)); - - public static IntPtr dateset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.dateset_make(values, count)); - - public static IntPtr datespan_make(int lower, int upper, bool lower_inc, bool upper_inc) - => SafeExecution(() => MEOSExternalFunctions.datespan_make(lower, upper, lower_inc, upper_inc)); - - public static IntPtr floatset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.floatset_make(values, count)); - - public static IntPtr floatspan_make(double lower, double upper, bool lower_inc, bool upper_inc) - => SafeExecution(() => MEOSExternalFunctions.floatspan_make(lower, upper, lower_inc, upper_inc)); - - public static IntPtr intset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.intset_make(values, count)); - - public static IntPtr intspan_make(int lower, int upper, bool lower_inc, bool upper_inc) - => SafeExecution(() => MEOSExternalFunctions.intspan_make(lower, upper, lower_inc, upper_inc)); - - public static IntPtr set_copy(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_copy(s)); - - public static IntPtr span_copy(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_copy(s)); - - public static IntPtr spanset_copy(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_copy(ss)); - - public static IntPtr spanset_make(IntPtr spans, int count) - => SafeExecution(() => MEOSExternalFunctions.spanset_make(spans, count)); - - public static IntPtr textset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.textset_make(values, count)); - - public static IntPtr tstzset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.tstzset_make(values, count)); - - public static IntPtr tstzspan_make(long lower, long upper, bool lower_inc, bool upper_inc) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_make(lower, upper, lower_inc, upper_inc)); - - public static IntPtr bigint_to_set(IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.bigint_to_set(i)); - - public static IntPtr bigint_to_span(int i) - => SafeExecution(() => MEOSExternalFunctions.bigint_to_span(i)); - - public static IntPtr bigint_to_spanset(int i) - => SafeExecution(() => MEOSExternalFunctions.bigint_to_spanset(i)); - - public static IntPtr date_to_set(int d) - => SafeExecution(() => MEOSExternalFunctions.date_to_set(d)); - - public static IntPtr date_to_span(int d) - => SafeExecution(() => MEOSExternalFunctions.date_to_span(d)); - - public static IntPtr date_to_spanset(int d) - => SafeExecution(() => MEOSExternalFunctions.date_to_spanset(d)); - - public static IntPtr dateset_to_tstzset(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.dateset_to_tstzset(s)); - - public static IntPtr datespan_to_tstzspan(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.datespan_to_tstzspan(s)); - - public static IntPtr datespanset_to_tstzspanset(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.datespanset_to_tstzspanset(ss)); - - public static IntPtr float_to_set(double d) - => SafeExecution(() => MEOSExternalFunctions.float_to_set(d)); - - public static IntPtr float_to_span(double d) - => SafeExecution(() => MEOSExternalFunctions.float_to_span(d)); - - public static IntPtr float_to_spanset(double d) - => SafeExecution(() => MEOSExternalFunctions.float_to_spanset(d)); - - public static IntPtr floatset_to_intset(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatset_to_intset(s)); - - public static IntPtr floatspan_to_intspan(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatspan_to_intspan(s)); - - public static IntPtr floatspan_to_bigintspan(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatspan_to_bigintspan(s)); - - public static IntPtr floatspanset_to_intspanset(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_to_intspanset(ss)); - - public static IntPtr int_to_set(int i) - => SafeExecution(() => MEOSExternalFunctions.int_to_set(i)); - - public static IntPtr int_to_span(int i) - => SafeExecution(() => MEOSExternalFunctions.int_to_span(i)); - - public static IntPtr int_to_spanset(int i) - => SafeExecution(() => MEOSExternalFunctions.int_to_spanset(i)); - - public static IntPtr intset_to_floatset(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intset_to_floatset(s)); - - public static IntPtr intspan_to_floatspan(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intspan_to_floatspan(s)); - - public static IntPtr intspan_to_bigintspan(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intspan_to_bigintspan(s)); - - public static IntPtr bigintspan_to_intspan(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_to_intspan(s)); - - public static IntPtr bigintspan_to_floatspan(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_to_floatspan(s)); - - public static IntPtr intspanset_to_floatspanset(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.intspanset_to_floatspanset(ss)); - - public static IntPtr set_to_span(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_to_span(s)); - - public static IntPtr set_to_spanset(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_to_spanset(s)); - - public static IntPtr span_to_spanset(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_to_spanset(s)); - - public static IntPtr text_to_set(IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.text_to_set(txt)); - - public static IntPtr timestamptz_to_set(long t) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_to_set(t)); - - public static IntPtr timestamptz_to_span(long t) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_to_span(t)); - - public static IntPtr timestamptz_to_spanset(long t) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_to_spanset(t)); - - public static IntPtr tstzset_to_dateset(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzset_to_dateset(s)); - - public static IntPtr tstzspan_to_datespan(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_to_datespan(s)); - - public static IntPtr tstzspanset_to_datespanset(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_to_datespanset(ss)); - - public static IntPtr bigintset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigintset_end_value(s)); - - public static IntPtr bigintset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigintset_start_value(s)); - - public static bool bigintset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.bigintset_value_n(s, n, result)); - - public static IntPtr[] bigintset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.bigintset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr bigintspan_lower(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_lower(s)); - - public static IntPtr bigintspan_upper(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_upper(s)); - - public static IntPtr bigintspan_width(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_width(s)); - - public static IntPtr bigintspanset_lower(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.bigintspanset_lower(ss)); - - public static IntPtr bigintspanset_upper(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.bigintspanset_upper(ss)); - - public static IntPtr bigintspanset_width(IntPtr ss, bool boundspan) - => SafeExecution(() => MEOSExternalFunctions.bigintspanset_width(ss, boundspan)); - - public static int dateset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.dateset_end_value(s)); - - public static int dateset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.dateset_start_value(s)); - - public static bool dateset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.dateset_value_n(s, n, result)); - - public static int[] dateset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.dateset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr datespan_duration(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.datespan_duration(s)); - - public static int datespan_lower(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.datespan_lower(s)); - - public static int datespan_upper(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.datespan_upper(s)); - - public static bool datespanset_date_n(IntPtr ss, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.datespanset_date_n(ss, n, result)); - - public static IntPtr datespanset_dates(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.datespanset_dates(ss)); - - public static IntPtr datespanset_duration(IntPtr ss, bool boundspan) - => SafeExecution(() => MEOSExternalFunctions.datespanset_duration(ss, boundspan)); - - public static int datespanset_end_date(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.datespanset_end_date(ss)); - - public static int datespanset_num_dates(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.datespanset_num_dates(ss)); - - public static int datespanset_start_date(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.datespanset_start_date(ss)); - - public static double floatset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatset_end_value(s)); - - public static double floatset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatset_start_value(s)); - - public static bool floatset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.floatset_value_n(s, n, result)); - - public static double[] floatset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.floatset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - double[] _out = new double[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double floatspan_lower(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatspan_lower(s)); - - public static double floatspan_upper(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatspan_upper(s)); - - public static double floatspan_width(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatspan_width(s)); - - public static double floatspanset_lower(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_lower(ss)); - - public static double floatspanset_upper(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_upper(ss)); - - public static double floatspanset_width(IntPtr ss, bool boundspan) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_width(ss, boundspan)); - - public static int intset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intset_end_value(s)); - - public static int intset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intset_start_value(s)); - - public static bool intset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.intset_value_n(s, n, result)); - - public static int[] intset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.intset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int intspan_lower(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intspan_lower(s)); - - public static int intspan_upper(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intspan_upper(s)); - - public static int intspan_width(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intspan_width(s)); - - public static int intspanset_lower(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.intspanset_lower(ss)); - - public static int intspanset_upper(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.intspanset_upper(ss)); - - public static int intspanset_width(IntPtr ss, bool boundspan) - => SafeExecution(() => MEOSExternalFunctions.intspanset_width(ss, boundspan)); - - public static int set_hash(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_hash(s)); - - public static IntPtr set_hash_extended(IntPtr s, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.set_hash_extended(s, seed)); - - public static int set_num_values(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_num_values(s)); - - public static int span_hash(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_hash(s)); - - public static IntPtr span_hash_extended(IntPtr s, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.span_hash_extended(s, seed)); - - public static bool span_lower_inc(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_lower_inc(s)); - - public static bool span_upper_inc(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_upper_inc(s)); - - public static IntPtr spanset_end_span(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_end_span(ss)); - - public static int spanset_hash(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_hash(ss)); - - public static IntPtr spanset_hash_extended(IntPtr ss, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.spanset_hash_extended(ss, seed)); - - public static bool spanset_lower_inc(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_lower_inc(ss)); - - public static int spanset_num_spans(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_num_spans(ss)); - - public static IntPtr spanset_span(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_span(ss)); - - public static IntPtr spanset_span_n(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.spanset_span_n(ss, i)); - - public static IntPtr[] spanset_spanarr(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.spanset_spanarr(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr spanset_start_span(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_start_span(ss)); - - public static bool spanset_upper_inc(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_upper_inc(ss)); - - public static IntPtr textset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.textset_end_value(s)); - - public static IntPtr textset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.textset_start_value(s)); - - public static bool textset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.textset_value_n(s, n, result)); - - public static IntPtr[] textset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.textset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static long tstzset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzset_end_value(s)); - - public static long tstzset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzset_start_value(s)); - - public static bool tstzset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tstzset_value_n(s, n, result)); - - public static long[] tstzset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tstzset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tstzspan_duration(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_duration(s)); - - public static long tstzspan_lower(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_lower(s)); - - public static long tstzspan_upper(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_upper(s)); - - public static IntPtr tstzspanset_duration(IntPtr ss, bool boundspan) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_duration(ss, boundspan)); - - public static long tstzspanset_end_timestamptz(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_end_timestamptz(ss)); - - public static long tstzspanset_lower(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_lower(ss)); - - public static int tstzspanset_num_timestamps(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_num_timestamps(ss)); - - public static long tstzspanset_start_timestamptz(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_start_timestamptz(ss)); - - public static IntPtr tstzspanset_timestamps(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_timestamps(ss)); - - public static bool tstzspanset_timestamptz_n(IntPtr ss, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_timestamptz_n(ss, n, result)); - - public static long tstzspanset_upper(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_upper(ss)); - - public static IntPtr bigintset_shift_scale(IntPtr s, IntPtr shift, IntPtr width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.bigintset_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr bigintspan_shift_scale(IntPtr s, IntPtr shift, IntPtr width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr bigintspanset_shift_scale(IntPtr ss, IntPtr shift, IntPtr width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.bigintspanset_shift_scale(ss, shift, width, hasshift, haswidth)); - - public static IntPtr dateset_shift_scale(IntPtr s, int shift, int width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.dateset_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr datespan_shift_scale(IntPtr s, int shift, int width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.datespan_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr datespanset_shift_scale(IntPtr ss, int shift, int width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.datespanset_shift_scale(ss, shift, width, hasshift, haswidth)); - - public static IntPtr floatset_ceil(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatset_ceil(s)); - - public static IntPtr floatset_degrees(IntPtr s, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.floatset_degrees(s, normalize)); - - public static IntPtr floatset_floor(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatset_floor(s)); - - public static IntPtr floatset_radians(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatset_radians(s)); - - public static IntPtr floatset_shift_scale(IntPtr s, double shift, double width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.floatset_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr floatspan_ceil(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatspan_ceil(s)); - - public static IntPtr floatspan_degrees(IntPtr s, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.floatspan_degrees(s, normalize)); - - public static IntPtr floatspan_floor(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatspan_floor(s)); - - public static IntPtr floatspan_radians(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.floatspan_radians(s)); - - public static IntPtr floatspan_round(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.floatspan_round(s, maxdd)); - - public static IntPtr floatspan_shift_scale(IntPtr s, double shift, double width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.floatspan_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr floatspanset_ceil(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_ceil(ss)); - - public static IntPtr floatspanset_floor(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_floor(ss)); - - public static IntPtr floatspanset_degrees(IntPtr ss, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_degrees(ss, normalize)); - - public static IntPtr floatspanset_radians(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_radians(ss)); - - public static IntPtr floatspanset_round(IntPtr ss, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_round(ss, maxdd)); - - public static IntPtr floatspanset_shift_scale(IntPtr ss, double shift, double width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.floatspanset_shift_scale(ss, shift, width, hasshift, haswidth)); - - public static IntPtr intset_shift_scale(IntPtr s, int shift, int width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.intset_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr intspan_shift_scale(IntPtr s, int shift, int width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.intspan_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr intspanset_shift_scale(IntPtr ss, int shift, int width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.intspanset_shift_scale(ss, shift, width, hasshift, haswidth)); - - public static IntPtr tstzspan_expand(IntPtr s, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_expand(s, interv)); - - public static IntPtr set_round(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.set_round(s, maxdd)); - - public static IntPtr textcat_text_textset(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.textcat_text_textset(txt, s)); - - public static IntPtr textcat_textset_text(IntPtr s, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.textcat_textset_text(s, txt)); - - public static IntPtr textset_initcap(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.textset_initcap(s)); - - public static IntPtr textset_lower(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.textset_lower(s)); - - public static IntPtr textset_upper(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.textset_upper(s)); - - public static long timestamptz_tprecision(long t, IntPtr duration, long torigin) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_tprecision(t, duration, torigin)); - - public static IntPtr tstzset_shift_scale(IntPtr s, IntPtr shift, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.tstzset_shift_scale(s, shift, duration)); - - public static IntPtr tstzset_tprecision(IntPtr s, IntPtr duration, long torigin) - => SafeExecution(() => MEOSExternalFunctions.tstzset_tprecision(s, duration, torigin)); - - public static IntPtr tstzspan_shift_scale(IntPtr s, IntPtr shift, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_shift_scale(s, shift, duration)); - - public static IntPtr tstzspan_tprecision(IntPtr s, IntPtr duration, long torigin) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_tprecision(s, duration, torigin)); - - public static IntPtr tstzspanset_shift_scale(IntPtr ss, IntPtr shift, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_shift_scale(ss, shift, duration)); - - public static IntPtr tstzspanset_tprecision(IntPtr ss, IntPtr duration, long torigin) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_tprecision(ss, duration, torigin)); - - public static int set_cmp(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.set_cmp(s1, s2)); - - public static bool set_eq(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.set_eq(s1, s2)); - - public static bool set_ge(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.set_ge(s1, s2)); - - public static bool set_gt(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.set_gt(s1, s2)); - - public static bool set_le(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.set_le(s1, s2)); - - public static bool set_lt(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.set_lt(s1, s2)); - - public static bool set_ne(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.set_ne(s1, s2)); - - public static int span_cmp(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_cmp(s1, s2)); - - public static bool span_eq(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_eq(s1, s2)); - - public static bool span_ge(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_ge(s1, s2)); - - public static bool span_gt(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_gt(s1, s2)); - - public static bool span_le(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_le(s1, s2)); - - public static bool span_lt(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_lt(s1, s2)); - - public static bool span_ne(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_ne(s1, s2)); - - public static int spanset_cmp(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.spanset_cmp(ss1, ss2)); - - public static bool spanset_eq(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.spanset_eq(ss1, ss2)); - - public static bool spanset_ge(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.spanset_ge(ss1, ss2)); - - public static bool spanset_gt(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.spanset_gt(ss1, ss2)); - - public static bool spanset_le(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.spanset_le(ss1, ss2)); - - public static bool spanset_lt(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.spanset_lt(ss1, ss2)); - - public static bool spanset_ne(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.spanset_ne(ss1, ss2)); - - public static IntPtr[] set_spans(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.set_spans(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] set_split_each_n_spans(IntPtr s, int elems_per_span) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.set_split_each_n_spans(s, elems_per_span, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] set_split_n_spans(IntPtr s, int span_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.set_split_n_spans(s, span_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] spanset_spans(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.spanset_spans(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] spanset_split_each_n_spans(IntPtr ss, int elems_per_span) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.spanset_split_each_n_spans(ss, elems_per_span, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] spanset_split_n_spans(IntPtr ss, int span_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.spanset_split_n_spans(ss, span_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool adjacent_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.adjacent_span_bigint(s, i)); - - public static bool adjacent_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.adjacent_span_date(s, d)); - - public static bool adjacent_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.adjacent_span_float(s, d)); - - public static bool adjacent_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.adjacent_span_int(s, i)); - - public static bool adjacent_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.adjacent_span_span(s1, s2)); - - public static bool adjacent_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.adjacent_span_spanset(s, ss)); - - public static bool adjacent_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.adjacent_span_timestamptz(s, t)); - - public static bool adjacent_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.adjacent_spanset_bigint(ss, i)); - - public static bool adjacent_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.adjacent_spanset_date(ss, d)); - - public static bool adjacent_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.adjacent_spanset_float(ss, d)); - - public static bool adjacent_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.adjacent_spanset_int(ss, i)); - - public static bool adjacent_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.adjacent_spanset_timestamptz(ss, t)); - - public static bool adjacent_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.adjacent_spanset_span(ss, s)); - - public static bool adjacent_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.adjacent_spanset_spanset(ss1, ss2)); - - public static bool contained_bigint_set(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_bigint_set(i, s)); - - public static bool contained_bigint_span(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_bigint_span(i, s)); - - public static bool contained_bigint_spanset(IntPtr i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.contained_bigint_spanset(i, ss)); - - public static bool contained_date_set(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_date_set(d, s)); - - public static bool contained_date_span(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_date_span(d, s)); - - public static bool contained_date_spanset(int d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.contained_date_spanset(d, ss)); - - public static bool contained_float_set(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_float_set(d, s)); - - public static bool contained_float_span(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_float_span(d, s)); - - public static bool contained_float_spanset(double d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.contained_float_spanset(d, ss)); - - public static bool contained_int_set(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_int_set(i, s)); - - public static bool contained_int_span(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_int_span(i, s)); - - public static bool contained_int_spanset(int i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.contained_int_spanset(i, ss)); - - public static bool contained_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.contained_set_set(s1, s2)); - - public static bool contained_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.contained_span_span(s1, s2)); - - public static bool contained_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.contained_span_spanset(s, ss)); - - public static bool contained_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_spanset_span(ss, s)); - - public static bool contained_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.contained_spanset_spanset(ss1, ss2)); - - public static bool contained_text_set(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_text_set(txt, s)); - - public static bool contained_timestamptz_set(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_timestamptz_set(t, s)); - - public static bool contained_timestamptz_span(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_timestamptz_span(t, s)); - - public static bool contained_timestamptz_spanset(long t, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.contained_timestamptz_spanset(t, ss)); - - public static bool contains_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.contains_set_bigint(s, i)); - - public static bool contains_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.contains_set_date(s, d)); - - public static bool contains_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.contains_set_float(s, d)); - - public static bool contains_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.contains_set_int(s, i)); - - public static bool contains_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.contains_set_set(s1, s2)); - - public static bool contains_set_text(IntPtr s, IntPtr t) - => SafeExecution(() => MEOSExternalFunctions.contains_set_text(s, t)); - - public static bool contains_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.contains_set_timestamptz(s, t)); - - public static bool contains_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.contains_span_bigint(s, i)); - - public static bool contains_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.contains_span_date(s, d)); - - public static bool contains_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.contains_span_float(s, d)); - - public static bool contains_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.contains_span_int(s, i)); - - public static bool contains_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.contains_span_span(s1, s2)); - - public static bool contains_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.contains_span_spanset(s, ss)); - - public static bool contains_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.contains_span_timestamptz(s, t)); - - public static bool contains_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.contains_spanset_bigint(ss, i)); - - public static bool contains_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.contains_spanset_date(ss, d)); - - public static bool contains_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.contains_spanset_float(ss, d)); - - public static bool contains_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.contains_spanset_int(ss, i)); - - public static bool contains_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contains_spanset_span(ss, s)); - - public static bool contains_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.contains_spanset_spanset(ss1, ss2)); - - public static bool contains_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.contains_spanset_timestamptz(ss, t)); - - public static bool overlaps_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_set_set(s1, s2)); - - public static bool overlaps_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_span_span(s1, s2)); - - public static bool overlaps_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overlaps_span_spanset(s, ss)); - - public static bool overlaps_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overlaps_spanset_span(ss, s)); - - public static bool overlaps_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_spanset_spanset(ss1, ss2)); - - public static bool same_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.same_span_span(s1, s2)); - - public static bool after_date_set(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.after_date_set(d, s)); - - public static bool after_date_span(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.after_date_span(d, s)); - - public static bool after_date_spanset(int d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.after_date_spanset(d, ss)); - - public static bool after_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.after_set_date(s, d)); - - public static bool after_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.after_set_timestamptz(s, t)); - - public static bool after_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.after_span_date(s, d)); - - public static bool after_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.after_span_timestamptz(s, t)); - - public static bool after_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.after_spanset_date(ss, d)); - - public static bool after_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.after_spanset_timestamptz(ss, t)); - - public static bool after_timestamptz_set(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.after_timestamptz_set(t, s)); - - public static bool after_timestamptz_span(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.after_timestamptz_span(t, s)); - - public static bool after_timestamptz_spanset(long t, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.after_timestamptz_spanset(t, ss)); - - public static bool before_date_set(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.before_date_set(d, s)); - - public static bool before_date_span(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.before_date_span(d, s)); - - public static bool before_date_spanset(int d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.before_date_spanset(d, ss)); - - public static bool before_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.before_set_date(s, d)); - - public static bool before_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.before_set_timestamptz(s, t)); - - public static bool before_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.before_span_date(s, d)); - - public static bool before_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.before_span_timestamptz(s, t)); - - public static bool before_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.before_spanset_date(ss, d)); - - public static bool before_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.before_spanset_timestamptz(ss, t)); - - public static bool before_timestamptz_set(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.before_timestamptz_set(t, s)); - - public static bool before_timestamptz_span(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.before_timestamptz_span(t, s)); - - public static bool before_timestamptz_spanset(long t, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.before_timestamptz_spanset(t, ss)); - - public static bool left_bigint_set(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_bigint_set(i, s)); - - public static bool left_bigint_span(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_bigint_span(i, s)); - - public static bool left_bigint_spanset(IntPtr i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.left_bigint_spanset(i, ss)); - - public static bool left_float_set(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_float_set(d, s)); - - public static bool left_float_span(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_float_span(d, s)); - - public static bool left_float_spanset(double d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.left_float_spanset(d, ss)); - - public static bool left_int_set(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_int_set(i, s)); - - public static bool left_int_span(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_int_span(i, s)); - - public static bool left_int_spanset(int i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.left_int_spanset(i, ss)); - - public static bool left_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.left_set_bigint(s, i)); - - public static bool left_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.left_set_float(s, d)); - - public static bool left_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.left_set_int(s, i)); - - public static bool left_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.left_set_set(s1, s2)); - - public static bool left_set_text(IntPtr s, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.left_set_text(s, txt)); - - public static bool left_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.left_span_bigint(s, i)); - - public static bool left_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.left_span_float(s, d)); - - public static bool left_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.left_span_int(s, i)); - - public static bool left_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.left_span_span(s1, s2)); - - public static bool left_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.left_span_spanset(s, ss)); - - public static bool left_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.left_spanset_bigint(ss, i)); - - public static bool left_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.left_spanset_float(ss, d)); - - public static bool left_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.left_spanset_int(ss, i)); - - public static bool left_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_spanset_span(ss, s)); - - public static bool left_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.left_spanset_spanset(ss1, ss2)); - - public static bool left_text_set(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_text_set(txt, s)); - - public static bool overafter_date_set(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overafter_date_set(d, s)); - - public static bool overafter_date_span(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overafter_date_span(d, s)); - - public static bool overafter_date_spanset(int d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overafter_date_spanset(d, ss)); - - public static bool overafter_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.overafter_set_date(s, d)); - - public static bool overafter_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.overafter_set_timestamptz(s, t)); - - public static bool overafter_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.overafter_span_date(s, d)); - - public static bool overafter_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.overafter_span_timestamptz(s, t)); - - public static bool overafter_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.overafter_spanset_date(ss, d)); - - public static bool overafter_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.overafter_spanset_timestamptz(ss, t)); - - public static bool overafter_timestamptz_set(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overafter_timestamptz_set(t, s)); - - public static bool overafter_timestamptz_span(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overafter_timestamptz_span(t, s)); - - public static bool overafter_timestamptz_spanset(long t, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overafter_timestamptz_spanset(t, ss)); - - public static bool overbefore_date_set(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overbefore_date_set(d, s)); - - public static bool overbefore_date_span(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overbefore_date_span(d, s)); - - public static bool overbefore_date_spanset(int d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overbefore_date_spanset(d, ss)); - - public static bool overbefore_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.overbefore_set_date(s, d)); - - public static bool overbefore_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.overbefore_set_timestamptz(s, t)); - - public static bool overbefore_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.overbefore_span_date(s, d)); - - public static bool overbefore_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.overbefore_span_timestamptz(s, t)); - - public static bool overbefore_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.overbefore_spanset_date(ss, d)); - - public static bool overbefore_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.overbefore_spanset_timestamptz(ss, t)); - - public static bool overbefore_timestamptz_set(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overbefore_timestamptz_set(t, s)); - - public static bool overbefore_timestamptz_span(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overbefore_timestamptz_span(t, s)); - - public static bool overbefore_timestamptz_spanset(long t, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overbefore_timestamptz_spanset(t, ss)); - - public static bool overleft_bigint_set(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_bigint_set(i, s)); - - public static bool overleft_bigint_span(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_bigint_span(i, s)); - - public static bool overleft_bigint_spanset(IntPtr i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overleft_bigint_spanset(i, ss)); - - public static bool overleft_float_set(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_float_set(d, s)); - - public static bool overleft_float_span(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_float_span(d, s)); - - public static bool overleft_float_spanset(double d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overleft_float_spanset(d, ss)); - - public static bool overleft_int_set(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_int_set(i, s)); - - public static bool overleft_int_span(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_int_span(i, s)); - - public static bool overleft_int_spanset(int i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overleft_int_spanset(i, ss)); - - public static bool overleft_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.overleft_set_bigint(s, i)); - - public static bool overleft_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.overleft_set_float(s, d)); - - public static bool overleft_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.overleft_set_int(s, i)); - - public static bool overleft_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.overleft_set_set(s1, s2)); - - public static bool overleft_set_text(IntPtr s, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.overleft_set_text(s, txt)); - - public static bool overleft_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.overleft_span_bigint(s, i)); - - public static bool overleft_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.overleft_span_float(s, d)); - - public static bool overleft_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.overleft_span_int(s, i)); - - public static bool overleft_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.overleft_span_span(s1, s2)); - - public static bool overleft_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overleft_span_spanset(s, ss)); - - public static bool overleft_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.overleft_spanset_bigint(ss, i)); - - public static bool overleft_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.overleft_spanset_float(ss, d)); - - public static bool overleft_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.overleft_spanset_int(ss, i)); - - public static bool overleft_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_spanset_span(ss, s)); - - public static bool overleft_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.overleft_spanset_spanset(ss1, ss2)); - - public static bool overleft_text_set(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_text_set(txt, s)); - - public static bool overright_bigint_set(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_bigint_set(i, s)); - - public static bool overright_bigint_span(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_bigint_span(i, s)); - - public static bool overright_bigint_spanset(IntPtr i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overright_bigint_spanset(i, ss)); - - public static bool overright_float_set(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_float_set(d, s)); - - public static bool overright_float_span(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_float_span(d, s)); - - public static bool overright_float_spanset(double d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overright_float_spanset(d, ss)); - - public static bool overright_int_set(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_int_set(i, s)); - - public static bool overright_int_span(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_int_span(i, s)); - - public static bool overright_int_spanset(int i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overright_int_spanset(i, ss)); - - public static bool overright_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.overright_set_bigint(s, i)); - - public static bool overright_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.overright_set_float(s, d)); - - public static bool overright_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.overright_set_int(s, i)); - - public static bool overright_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.overright_set_set(s1, s2)); - - public static bool overright_set_text(IntPtr s, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.overright_set_text(s, txt)); - - public static bool overright_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.overright_span_bigint(s, i)); - - public static bool overright_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.overright_span_float(s, d)); - - public static bool overright_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.overright_span_int(s, i)); - - public static bool overright_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.overright_span_span(s1, s2)); - - public static bool overright_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overright_span_spanset(s, ss)); - - public static bool overright_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.overright_spanset_bigint(ss, i)); - - public static bool overright_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.overright_spanset_float(ss, d)); - - public static bool overright_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.overright_spanset_int(ss, i)); - - public static bool overright_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_spanset_span(ss, s)); - - public static bool overright_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.overright_spanset_spanset(ss1, ss2)); - - public static bool overright_text_set(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_text_set(txt, s)); - - public static bool right_bigint_set(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_bigint_set(i, s)); - - public static bool right_bigint_span(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_bigint_span(i, s)); - - public static bool right_bigint_spanset(IntPtr i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.right_bigint_spanset(i, ss)); - - public static bool right_float_set(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_float_set(d, s)); - - public static bool right_float_span(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_float_span(d, s)); - - public static bool right_float_spanset(double d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.right_float_spanset(d, ss)); - - public static bool right_int_set(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_int_set(i, s)); - - public static bool right_int_span(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_int_span(i, s)); - - public static bool right_int_spanset(int i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.right_int_spanset(i, ss)); - - public static bool right_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.right_set_bigint(s, i)); - - public static bool right_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.right_set_float(s, d)); - - public static bool right_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.right_set_int(s, i)); - - public static bool right_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.right_set_set(s1, s2)); - - public static bool right_set_text(IntPtr s, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.right_set_text(s, txt)); - - public static bool right_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.right_span_bigint(s, i)); - - public static bool right_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.right_span_float(s, d)); - - public static bool right_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.right_span_int(s, i)); - - public static bool right_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.right_span_span(s1, s2)); - - public static bool right_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.right_span_spanset(s, ss)); - - public static bool right_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.right_spanset_bigint(ss, i)); - - public static bool right_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.right_spanset_float(ss, d)); - - public static bool right_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.right_spanset_int(ss, i)); - - public static bool right_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_spanset_span(ss, s)); - - public static bool right_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.right_spanset_spanset(ss1, ss2)); - - public static bool right_text_set(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_text_set(txt, s)); - - public static IntPtr intersection_bigint_set(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_bigint_set(i, s)); - - public static IntPtr intersection_date_set(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_date_set(d, s)); - - public static IntPtr intersection_float_set(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_float_set(d, s)); - - public static IntPtr intersection_int_set(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_int_set(i, s)); - - public static IntPtr intersection_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_bigint(s, i)); - - public static IntPtr intersection_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_date(s, d)); - - public static IntPtr intersection_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_float(s, d)); - - public static IntPtr intersection_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_int(s, i)); - - public static IntPtr intersection_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_set(s1, s2)); - - public static IntPtr intersection_set_text(IntPtr s, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_text(s, txt)); - - public static IntPtr intersection_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_timestamptz(s, t)); - - public static IntPtr intersection_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.intersection_span_bigint(s, i)); - - public static IntPtr intersection_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.intersection_span_date(s, d)); - - public static IntPtr intersection_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.intersection_span_float(s, d)); - - public static IntPtr intersection_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.intersection_span_int(s, i)); - - public static IntPtr intersection_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.intersection_span_span(s1, s2)); - - public static IntPtr intersection_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.intersection_span_spanset(s, ss)); - - public static IntPtr intersection_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.intersection_span_timestamptz(s, t)); - - public static IntPtr intersection_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.intersection_spanset_bigint(ss, i)); - - public static IntPtr intersection_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.intersection_spanset_date(ss, d)); - - public static IntPtr intersection_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.intersection_spanset_float(ss, d)); - - public static IntPtr intersection_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.intersection_spanset_int(ss, i)); - - public static IntPtr intersection_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_spanset_span(ss, s)); - - public static IntPtr intersection_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.intersection_spanset_spanset(ss1, ss2)); - - public static IntPtr intersection_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.intersection_spanset_timestamptz(ss, t)); - - public static IntPtr intersection_text_set(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_text_set(txt, s)); - - public static IntPtr intersection_timestamptz_set(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_timestamptz_set(t, s)); - - public static IntPtr minus_bigint_set(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_bigint_set(i, s)); - - public static IntPtr minus_bigint_span(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_bigint_span(i, s)); - - public static IntPtr minus_bigint_spanset(IntPtr i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.minus_bigint_spanset(i, ss)); - - public static IntPtr minus_date_set(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_date_set(d, s)); - - public static IntPtr minus_date_span(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_date_span(d, s)); - - public static IntPtr minus_date_spanset(int d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.minus_date_spanset(d, ss)); - - public static IntPtr minus_float_set(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_float_set(d, s)); - - public static IntPtr minus_float_span(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_float_span(d, s)); - - public static IntPtr minus_float_spanset(double d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.minus_float_spanset(d, ss)); - - public static IntPtr minus_int_set(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_int_set(i, s)); - - public static IntPtr minus_int_span(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_int_span(i, s)); - - public static IntPtr minus_int_spanset(int i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.minus_int_spanset(i, ss)); - - public static IntPtr minus_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.minus_set_bigint(s, i)); - - public static IntPtr minus_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.minus_set_date(s, d)); - - public static IntPtr minus_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.minus_set_float(s, d)); - - public static IntPtr minus_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.minus_set_int(s, i)); - - public static IntPtr minus_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.minus_set_set(s1, s2)); - - public static IntPtr minus_set_text(IntPtr s, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.minus_set_text(s, txt)); - - public static IntPtr minus_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.minus_set_timestamptz(s, t)); - - public static IntPtr minus_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.minus_span_bigint(s, i)); - - public static IntPtr minus_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.minus_span_date(s, d)); - - public static IntPtr minus_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.minus_span_float(s, d)); - - public static IntPtr minus_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.minus_span_int(s, i)); - - public static IntPtr minus_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.minus_span_span(s1, s2)); - - public static IntPtr minus_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.minus_span_spanset(s, ss)); - - public static IntPtr minus_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.minus_span_timestamptz(s, t)); - - public static IntPtr minus_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.minus_spanset_bigint(ss, i)); - - public static IntPtr minus_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.minus_spanset_date(ss, d)); - - public static IntPtr minus_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.minus_spanset_float(ss, d)); - - public static IntPtr minus_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.minus_spanset_int(ss, i)); - - public static IntPtr minus_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_spanset_span(ss, s)); - - public static IntPtr minus_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.minus_spanset_spanset(ss1, ss2)); - - public static IntPtr minus_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.minus_spanset_timestamptz(ss, t)); - - public static IntPtr minus_text_set(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_text_set(txt, s)); - - public static IntPtr minus_timestamptz_set(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_timestamptz_set(t, s)); - - public static IntPtr minus_timestamptz_span(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_timestamptz_span(t, s)); - - public static IntPtr minus_timestamptz_spanset(long t, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.minus_timestamptz_spanset(t, ss)); - - public static IntPtr union_bigint_set(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_bigint_set(i, s)); - - public static IntPtr union_bigint_span(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.union_bigint_span(s, i)); - - public static IntPtr union_bigint_spanset(IntPtr i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.union_bigint_spanset(i, ss)); - - public static IntPtr union_date_set(int d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_date_set(d, s)); - - public static IntPtr union_date_span(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.union_date_span(s, d)); - - public static IntPtr union_date_spanset(int d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.union_date_spanset(d, ss)); - - public static IntPtr union_float_set(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_float_set(d, s)); - - public static IntPtr union_float_span(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.union_float_span(s, d)); - - public static IntPtr union_float_spanset(double d, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.union_float_spanset(d, ss)); - - public static IntPtr union_int_set(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_int_set(i, s)); - - public static IntPtr union_int_span(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_int_span(i, s)); - - public static IntPtr union_int_spanset(int i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.union_int_spanset(i, ss)); - - public static IntPtr union_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.union_set_bigint(s, i)); - - public static IntPtr union_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.union_set_date(s, d)); - - public static IntPtr union_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.union_set_float(s, d)); - - public static IntPtr union_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.union_set_int(s, i)); - - public static IntPtr union_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.union_set_set(s1, s2)); - - public static IntPtr union_set_text(IntPtr s, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.union_set_text(s, txt)); - - public static IntPtr union_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.union_set_timestamptz(s, t)); - - public static IntPtr union_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.union_span_bigint(s, i)); - - public static IntPtr union_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.union_span_date(s, d)); - - public static IntPtr union_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.union_span_float(s, d)); - - public static IntPtr union_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.union_span_int(s, i)); - - public static IntPtr union_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.union_span_span(s1, s2)); - - public static IntPtr super_union_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.super_union_span_span(s1, s2)); - - public static IntPtr union_span_spanset(IntPtr s, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.union_span_spanset(s, ss)); - - public static IntPtr union_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.union_span_timestamptz(s, t)); - - public static IntPtr union_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.union_spanset_bigint(ss, i)); - - public static IntPtr union_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.union_spanset_date(ss, d)); - - public static IntPtr union_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.union_spanset_float(ss, d)); - - public static IntPtr union_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.union_spanset_int(ss, i)); - - public static IntPtr union_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_spanset_span(ss, s)); - - public static IntPtr union_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.union_spanset_spanset(ss1, ss2)); - - public static IntPtr union_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.union_spanset_timestamptz(ss, t)); - - public static IntPtr union_text_set(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_text_set(txt, s)); - - public static IntPtr union_timestamptz_set(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_timestamptz_set(t, s)); - - public static IntPtr union_timestamptz_span(long t, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_timestamptz_span(t, s)); - - public static IntPtr union_timestamptz_spanset(long t, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.union_timestamptz_spanset(t, ss)); - - public static IntPtr distance_bigintset_bigintset(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_bigintset_bigintset(s1, s2)); - - public static IntPtr distance_bigintspan_bigintspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_bigintspan_bigintspan(s1, s2)); - - public static IntPtr distance_bigintspanset_bigintspan(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.distance_bigintspanset_bigintspan(ss, s)); - - public static IntPtr distance_bigintspanset_bigintspanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.distance_bigintspanset_bigintspanset(ss1, ss2)); - - public static int distance_dateset_dateset(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_dateset_dateset(s1, s2)); - - public static int distance_datespan_datespan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_datespan_datespan(s1, s2)); - - public static int distance_datespanset_datespan(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.distance_datespanset_datespan(ss, s)); - - public static int distance_datespanset_datespanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.distance_datespanset_datespanset(ss1, ss2)); - - public static double distance_floatset_floatset(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_floatset_floatset(s1, s2)); - - public static double distance_floatspan_floatspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_floatspan_floatspan(s1, s2)); - - public static double distance_floatspanset_floatspan(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.distance_floatspanset_floatspan(ss, s)); - - public static double distance_floatspanset_floatspanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.distance_floatspanset_floatspanset(ss1, ss2)); - - public static int distance_intset_intset(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_intset_intset(s1, s2)); - - public static int distance_intspan_intspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_intspan_intspan(s1, s2)); - - public static int distance_intspanset_intspan(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.distance_intspanset_intspan(ss, s)); - - public static int distance_intspanset_intspanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.distance_intspanset_intspanset(ss1, ss2)); - - public static IntPtr distance_set_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.distance_set_bigint(s, i)); - - public static int distance_set_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.distance_set_date(s, d)); - - public static double distance_set_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.distance_set_float(s, d)); - - public static int distance_set_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.distance_set_int(s, i)); - - public static double distance_set_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.distance_set_timestamptz(s, t)); - - public static IntPtr distance_span_bigint(IntPtr s, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.distance_span_bigint(s, i)); - - public static int distance_span_date(IntPtr s, int d) - => SafeExecution(() => MEOSExternalFunctions.distance_span_date(s, d)); - - public static double distance_span_float(IntPtr s, double d) - => SafeExecution(() => MEOSExternalFunctions.distance_span_float(s, d)); - - public static int distance_span_int(IntPtr s, int i) - => SafeExecution(() => MEOSExternalFunctions.distance_span_int(s, i)); - - public static double distance_span_timestamptz(IntPtr s, long t) - => SafeExecution(() => MEOSExternalFunctions.distance_span_timestamptz(s, t)); - - public static IntPtr distance_spanset_bigint(IntPtr ss, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.distance_spanset_bigint(ss, i)); - - public static int distance_spanset_date(IntPtr ss, int d) - => SafeExecution(() => MEOSExternalFunctions.distance_spanset_date(ss, d)); - - public static double distance_spanset_float(IntPtr ss, double d) - => SafeExecution(() => MEOSExternalFunctions.distance_spanset_float(ss, d)); - - public static int distance_spanset_int(IntPtr ss, int i) - => SafeExecution(() => MEOSExternalFunctions.distance_spanset_int(ss, i)); - - public static double distance_spanset_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.distance_spanset_timestamptz(ss, t)); - - public static double distance_tstzset_tstzset(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_tstzset_tstzset(s1, s2)); - - public static double distance_tstzspan_tstzspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_tstzspan_tstzspan(s1, s2)); - - public static double distance_tstzspanset_tstzspan(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.distance_tstzspanset_tstzspan(ss, s)); - - public static double distance_tstzspanset_tstzspanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.distance_tstzspanset_tstzspanset(ss1, ss2)); - - public static IntPtr bigint_extent_transfn(IntPtr state, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.bigint_extent_transfn(state, i)); - - public static IntPtr bigint_union_transfn(IntPtr state, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.bigint_union_transfn(state, i)); - - public static IntPtr date_extent_transfn(IntPtr state, int d) - => SafeExecution(() => MEOSExternalFunctions.date_extent_transfn(state, d)); - - public static IntPtr date_union_transfn(IntPtr state, int d) - => SafeExecution(() => MEOSExternalFunctions.date_union_transfn(state, d)); - - public static IntPtr float_extent_transfn(IntPtr state, double d) - => SafeExecution(() => MEOSExternalFunctions.float_extent_transfn(state, d)); - - public static IntPtr float_union_transfn(IntPtr state, double d) - => SafeExecution(() => MEOSExternalFunctions.float_union_transfn(state, d)); - - public static IntPtr int_extent_transfn(IntPtr state, int i) - => SafeExecution(() => MEOSExternalFunctions.int_extent_transfn(state, i)); - - public static IntPtr int_union_transfn(IntPtr state, int i) - => SafeExecution(() => MEOSExternalFunctions.int_union_transfn(state, i)); - - public static IntPtr set_extent_transfn(IntPtr state, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_extent_transfn(state, s)); - - public static IntPtr set_union_finalfn(IntPtr state) - => SafeExecution(() => MEOSExternalFunctions.set_union_finalfn(state)); - - public static IntPtr set_union_transfn(IntPtr state, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_union_transfn(state, s)); - - public static IntPtr span_extent_transfn(IntPtr state, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_extent_transfn(state, s)); - - public static IntPtr span_union_transfn(IntPtr state, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_union_transfn(state, s)); - - public static IntPtr spanset_extent_transfn(IntPtr state, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_extent_transfn(state, ss)); - - public static IntPtr spanset_union_finalfn(IntPtr state) - => SafeExecution(() => MEOSExternalFunctions.spanset_union_finalfn(state)); - - public static IntPtr spanset_union_transfn(IntPtr state, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_union_transfn(state, ss)); - - public static IntPtr text_union_transfn(IntPtr state, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.text_union_transfn(state, txt)); - - public static IntPtr timestamptz_extent_transfn(IntPtr state, long t) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_extent_transfn(state, t)); - - public static IntPtr timestamptz_union_transfn(IntPtr state, long t) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_union_transfn(state, t)); - - public static IntPtr bigint_get_bin(IntPtr value, IntPtr vsize, IntPtr vorigin) - => SafeExecution(() => MEOSExternalFunctions.bigint_get_bin(value, vsize, vorigin)); - - public static IntPtr[] bigintspan_bins(IntPtr s, IntPtr vsize, IntPtr vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.bigintspan_bins(s, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] bigintspanset_bins(IntPtr ss, IntPtr vsize, IntPtr vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.bigintspanset_bins(ss, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int date_get_bin(int d, IntPtr duration, int torigin) - => SafeExecution(() => MEOSExternalFunctions.date_get_bin(d, duration, torigin)); - - public static IntPtr[] datespan_bins(IntPtr s, IntPtr duration, int torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.datespan_bins(s, duration, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] datespanset_bins(IntPtr ss, IntPtr duration, int torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.datespanset_bins(ss, duration, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double float_get_bin(double value, double vsize, double vorigin) - => SafeExecution(() => MEOSExternalFunctions.float_get_bin(value, vsize, vorigin)); - - public static IntPtr[] floatspan_bins(IntPtr s, double vsize, double vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.floatspan_bins(s, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] floatspanset_bins(IntPtr ss, double vsize, double vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.floatspanset_bins(ss, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int int_get_bin(int value, int vsize, int vorigin) - => SafeExecution(() => MEOSExternalFunctions.int_get_bin(value, vsize, vorigin)); - - public static IntPtr[] intspan_bins(IntPtr s, int vsize, int vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.intspan_bins(s, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] intspanset_bins(IntPtr ss, int vsize, int vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.intspanset_bins(ss, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static long timestamptz_get_bin(long t, IntPtr duration, long torigin) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_get_bin(t, duration, torigin)); - - public static IntPtr[] tstzspan_bins(IntPtr s, IntPtr duration, long origin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tstzspan_bins(s, duration, origin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tstzspanset_bins(IntPtr ss, IntPtr duration, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tstzspanset_bins(ss, duration, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static string tbox_as_hexwkb(IntPtr box, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.tbox_as_hexwkb(box, variant, size_out)); - - public static IntPtr tbox_as_wkb(IntPtr box, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.tbox_as_wkb(box, variant, size_out)); - - public static IntPtr tbox_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.tbox_from_hexwkb(hexwkb)); - - public static IntPtr tbox_from_wkb(IntPtr wkb, ulong size) - => SafeExecution(() => MEOSExternalFunctions.tbox_from_wkb(wkb, size)); - - public static IntPtr tbox_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tbox_in(str)); - - public static string tbox_out(IntPtr box, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tbox_out(box, maxdd)); - - public static IntPtr float_timestamptz_to_tbox(double d, long t) - => SafeExecution(() => MEOSExternalFunctions.float_timestamptz_to_tbox(d, t)); - - public static IntPtr float_tstzspan_to_tbox(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.float_tstzspan_to_tbox(d, s)); - - public static IntPtr int_timestamptz_to_tbox(int i, long t) - => SafeExecution(() => MEOSExternalFunctions.int_timestamptz_to_tbox(i, t)); - - public static IntPtr bigint_timestamptz_to_tbox(IntPtr i, long t) - => SafeExecution(() => MEOSExternalFunctions.bigint_timestamptz_to_tbox(i, t)); - - public static IntPtr int_tstzspan_to_tbox(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.int_tstzspan_to_tbox(i, s)); - - public static IntPtr bigint_tstzspan_to_tbox(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.bigint_tstzspan_to_tbox(i, s)); - - public static IntPtr numspan_tstzspan_to_tbox(IntPtr span, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.numspan_tstzspan_to_tbox(span, s)); - - public static IntPtr numspan_timestamptz_to_tbox(IntPtr span, long t) - => SafeExecution(() => MEOSExternalFunctions.numspan_timestamptz_to_tbox(span, t)); - - public static IntPtr tbox_copy(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_copy(box)); - - public static IntPtr tbox_make(IntPtr s, IntPtr p) - => SafeExecution(() => MEOSExternalFunctions.tbox_make(s, p)); - - public static IntPtr float_to_tbox(double d) - => SafeExecution(() => MEOSExternalFunctions.float_to_tbox(d)); - - public static IntPtr int_to_tbox(int i) - => SafeExecution(() => MEOSExternalFunctions.int_to_tbox(i)); - - public static IntPtr bigint_to_tbox(IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.bigint_to_tbox(i)); - - public static IntPtr set_to_tbox(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_to_tbox(s)); - - public static IntPtr span_to_tbox(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_to_tbox(s)); - - public static IntPtr spanset_to_tbox(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_to_tbox(ss)); - - public static IntPtr tbox_to_intspan(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_to_intspan(box)); - - public static IntPtr tbox_to_bigintspan(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_to_bigintspan(box)); - - public static IntPtr tbox_to_floatspan(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_to_floatspan(box)); - - public static IntPtr tbox_to_tstzspan(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_to_tstzspan(box)); - - public static IntPtr timestamptz_to_tbox(long t) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_to_tbox(t)); - - public static int tbox_hash(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_hash(box)); - - public static IntPtr tbox_hash_extended(IntPtr box, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.tbox_hash_extended(box, seed)); - - public static bool tbox_hast(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_hast(box)); - - public static bool tbox_hasx(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_hasx(box)); - - public static bool tbox_tmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbox_tmax(box, result)); - - public static bool tbox_tmax_inc(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbox_tmax_inc(box, result)); - - public static bool tbox_tmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbox_tmin(box, result)); - - public static bool tbox_tmin_inc(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbox_tmin_inc(box, result)); - - public static bool tbox_xmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbox_xmax(box, result)); - - public static bool tbox_xmax_inc(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbox_xmax_inc(box, result)); - - public static bool tbox_xmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbox_xmin(box, result)); - - public static bool tbox_xmin_inc(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbox_xmin_inc(box, result)); - - public static bool tboxfloat_xmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tboxfloat_xmax(box, result)); - - public static bool tboxfloat_xmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tboxfloat_xmin(box, result)); - - public static bool tboxint_xmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tboxint_xmax(box, result)); - - public static bool tboxbigint_xmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tboxbigint_xmax(box, result)); - - public static bool tboxint_xmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tboxint_xmin(box, result)); - - public static bool tboxbigint_xmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tboxbigint_xmin(box, result)); - - public static IntPtr tfloatbox_expand(IntPtr box, double d) - => SafeExecution(() => MEOSExternalFunctions.tfloatbox_expand(box, d)); - - public static IntPtr tintbox_expand(IntPtr box, int i) - => SafeExecution(() => MEOSExternalFunctions.tintbox_expand(box, i)); - - public static IntPtr tbox_expand_time(IntPtr box, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tbox_expand_time(box, interv)); - - public static IntPtr tbox_round(IntPtr box, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tbox_round(box, maxdd)); - - public static IntPtr tfloatbox_shift_scale(IntPtr box, double shift, double width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.tfloatbox_shift_scale(box, shift, width, hasshift, haswidth)); - - public static IntPtr tintbox_shift_scale(IntPtr box, int shift, int width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.tintbox_shift_scale(box, shift, width, hasshift, haswidth)); - - public static IntPtr tbox_shift_scale_time(IntPtr box, IntPtr shift, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.tbox_shift_scale_time(box, shift, duration)); - - public static IntPtr tbigintbox_expand(IntPtr box, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.tbigintbox_expand(box, i)); - - public static IntPtr tbigintbox_shift_scale(IntPtr box, IntPtr shift, IntPtr width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.tbigintbox_shift_scale(box, shift, width, hasshift, haswidth)); - - public static IntPtr union_tbox_tbox(IntPtr box1, IntPtr box2, bool strict) - => SafeExecution(() => MEOSExternalFunctions.union_tbox_tbox(box1, box2, strict)); - - public static IntPtr intersection_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tbox_tbox(box1, box2)); - - public static bool adjacent_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tbox_tbox(box1, box2)); - - public static bool contained_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.contained_tbox_tbox(box1, box2)); - - public static bool contains_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.contains_tbox_tbox(box1, box2)); - - public static bool overlaps_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tbox_tbox(box1, box2)); - - public static bool same_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.same_tbox_tbox(box1, box2)); - - public static bool after_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.after_tbox_tbox(box1, box2)); - - public static bool before_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.before_tbox_tbox(box1, box2)); - - public static bool left_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.left_tbox_tbox(box1, box2)); - - public static bool overafter_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overafter_tbox_tbox(box1, box2)); - - public static bool overbefore_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overbefore_tbox_tbox(box1, box2)); - - public static bool overleft_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overleft_tbox_tbox(box1, box2)); - - public static bool overright_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overright_tbox_tbox(box1, box2)); - - public static bool right_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.right_tbox_tbox(box1, box2)); - - public static int tbox_cmp(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_cmp(box1, box2)); - - public static bool tbox_eq(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_eq(box1, box2)); - - public static bool tbox_ge(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_ge(box1, box2)); - - public static bool tbox_gt(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_gt(box1, box2)); - - public static bool tbox_le(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_le(box1, box2)); - - public static bool tbox_lt(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_lt(box1, box2)); - - public static bool tbox_ne(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_ne(box1, box2)); - - public static IntPtr tbool_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tbool_from_mfjson(str)); - - public static IntPtr tbool_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tbool_in(str)); - - public static string tbool_out(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbool_out(temp)); - - public static string temporal_as_hexwkb(IntPtr temp, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.temporal_as_hexwkb(temp, variant, size_out)); - - public static string temporal_as_mfjson(IntPtr temp, bool with_bbox, int flags, int precision, string srs) - => SafeExecution(() => MEOSExternalFunctions.temporal_as_mfjson(temp, with_bbox, flags, precision, srs)); - - public static IntPtr temporal_as_wkb(IntPtr temp, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.temporal_as_wkb(temp, variant, size_out)); - - public static IntPtr temporal_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.temporal_from_hexwkb(hexwkb)); - - public static IntPtr temporal_from_wkb(IntPtr wkb, ulong size) - => SafeExecution(() => MEOSExternalFunctions.temporal_from_wkb(wkb, size)); - - public static IntPtr tfloat_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tfloat_from_mfjson(str)); - - public static IntPtr tfloat_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tfloat_in(str)); - - public static string tfloat_out(IntPtr temp, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tfloat_out(temp, maxdd)); - - public static IntPtr tint_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tint_from_mfjson(str)); - - public static IntPtr tbigint_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tbigint_from_mfjson(str)); - - public static IntPtr tint_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tint_in(str)); - - public static IntPtr tbigint_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tbigint_in(str)); - - public static string tint_out(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_out(temp)); - - public static string tbigint_out(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_out(temp)); - - public static IntPtr ttext_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.ttext_from_mfjson(str)); - - public static IntPtr ttext_in(string str) - => SafeExecution(() => MEOSExternalFunctions.ttext_in(str)); - - public static string ttext_out(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_out(temp)); - - public static IntPtr tbool_from_base_temp(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbool_from_base_temp(b, temp)); - - public static IntPtr tboolinst_make(bool b, long t) - => SafeExecution(() => MEOSExternalFunctions.tboolinst_make(b, t)); - - public static IntPtr tboolseq_from_base_tstzset(bool b, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tboolseq_from_base_tstzset(b, s)); - - public static IntPtr tboolseq_from_base_tstzspan(bool b, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tboolseq_from_base_tstzspan(b, s)); - - public static IntPtr tboolseqset_from_base_tstzspanset(bool b, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tboolseqset_from_base_tstzspanset(b, ss)); - - public static IntPtr temporal_copy(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_copy(temp)); - - public static IntPtr tfloat_from_base_temp(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_from_base_temp(d, temp)); - - public static IntPtr tfloatinst_make(double d, long t) - => SafeExecution(() => MEOSExternalFunctions.tfloatinst_make(d, t)); - - public static IntPtr tfloatseq_from_base_tstzset(double d, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tfloatseq_from_base_tstzset(d, s)); - - public static IntPtr tfloatseq_from_base_tstzspan(double d, IntPtr s, int interp) - => SafeExecution(() => MEOSExternalFunctions.tfloatseq_from_base_tstzspan(d, s, interp)); - - public static IntPtr tfloatseqset_from_base_tstzspanset(double d, IntPtr ss, int interp) - => SafeExecution(() => MEOSExternalFunctions.tfloatseqset_from_base_tstzspanset(d, ss, interp)); - - public static IntPtr tint_from_base_temp(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_from_base_temp(i, temp)); - - public static IntPtr tbigint_from_base_temp(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_from_base_temp(i, temp)); - - public static IntPtr tintinst_make(int i, long t) - => SafeExecution(() => MEOSExternalFunctions.tintinst_make(i, t)); - - public static IntPtr tbigintinst_make(IntPtr i, long t) - => SafeExecution(() => MEOSExternalFunctions.tbigintinst_make(i, t)); - - public static IntPtr tintseq_from_base_tstzset(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tintseq_from_base_tstzset(i, s)); - - public static IntPtr tbigintseq_from_base_tstzset(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tbigintseq_from_base_tstzset(i, s)); - - public static IntPtr tintseq_from_base_tstzspan(int i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tintseq_from_base_tstzspan(i, s)); - - public static IntPtr tbigintseq_from_base_tstzspan(IntPtr i, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tbigintseq_from_base_tstzspan(i, s)); - - public static IntPtr tintseqset_from_base_tstzspanset(int i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tintseqset_from_base_tstzspanset(i, ss)); - - public static IntPtr tbigintseqset_from_base_tstzspanset(IntPtr i, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tbigintseqset_from_base_tstzspanset(i, ss)); - - public static IntPtr tsequence_make(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.tsequence_make(instants, count, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr tsequenceset_make(IntPtr sequences, int count, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_make(sequences, count, normalize)); - - public static IntPtr tsequenceset_make_gaps(IntPtr instants, int count, int interp, IntPtr maxt, double maxdist) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_make_gaps(instants, count, interp, maxt, maxdist)); - - public static IntPtr ttext_from_base_temp(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_from_base_temp(txt, temp)); - - public static IntPtr ttextinst_make(IntPtr txt, long t) - => SafeExecution(() => MEOSExternalFunctions.ttextinst_make(txt, t)); - - public static IntPtr ttextseq_from_base_tstzset(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.ttextseq_from_base_tstzset(txt, s)); - - public static IntPtr ttextseq_from_base_tstzspan(IntPtr txt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.ttextseq_from_base_tstzspan(txt, s)); - - public static IntPtr ttextseqset_from_base_tstzspanset(IntPtr txt, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.ttextseqset_from_base_tstzspanset(txt, ss)); - - public static IntPtr tbool_to_tint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbool_to_tint(temp)); - - public static IntPtr temporal_to_tstzspan(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_to_tstzspan(temp)); - - public static IntPtr tfloat_to_tint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_to_tint(temp)); - - public static IntPtr tfloat_to_tbigint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_to_tbigint(temp)); - - public static IntPtr tint_to_tfloat(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_to_tfloat(temp)); - - public static IntPtr tint_to_tbigint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_to_tbigint(temp)); - - public static IntPtr tbigint_to_tint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_to_tint(temp)); - - public static IntPtr tbigint_to_tfloat(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_to_tfloat(temp)); - - public static IntPtr tnumber_to_span(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_to_span(temp)); - - public static IntPtr tnumber_to_tbox(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_to_tbox(temp)); - - public static bool tbool_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbool_end_value(temp)); - - public static bool tbool_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbool_start_value(temp)); - - public static bool tbool_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.tbool_value_at_timestamptz(temp, t, strict, value)); - - public static bool tbool_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbool_value_n(temp, n, result)); - - public static IntPtr[] tbool_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tbool_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr temporal_duration(IntPtr temp, bool boundspan) - => SafeExecution(() => MEOSExternalFunctions.temporal_duration(temp, boundspan)); - - public static IntPtr temporal_end_instant(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_end_instant(temp)); - - public static IntPtr temporal_end_sequence(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_end_sequence(temp)); - - public static long temporal_end_timestamptz(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_end_timestamptz(temp)); - - public static int temporal_hash(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_hash(temp)); - - public static IntPtr temporal_instant_n(IntPtr temp, int n) - => SafeExecution(() => MEOSExternalFunctions.temporal_instant_n(temp, n)); - - public static IntPtr[] temporal_instants(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_instants(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static string temporal_interp(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_interp(temp)); - - public static bool temporal_lower_inc(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_lower_inc(temp)); - - public static IntPtr temporal_max_instant(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_max_instant(temp)); - - public static IntPtr temporal_min_instant(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_min_instant(temp)); - - public static int temporal_num_instants(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_num_instants(temp)); - - public static int temporal_num_sequences(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_num_sequences(temp)); - - public static int temporal_num_timestamps(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_num_timestamps(temp)); - - public static IntPtr temporal_segm_duration(IntPtr temp, IntPtr duration, bool atleast, bool strict) - => SafeExecution(() => MEOSExternalFunctions.temporal_segm_duration(temp, duration, atleast, strict)); - - public static IntPtr[] temporal_segments(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_segments(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr temporal_sequence_n(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.temporal_sequence_n(temp, i)); - - public static IntPtr[] temporal_sequences(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_sequences(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr temporal_start_instant(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_start_instant(temp)); - - public static IntPtr temporal_start_sequence(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_start_sequence(temp)); - - public static long temporal_start_timestamptz(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_start_timestamptz(temp)); - - public static IntPtr temporal_stops(IntPtr temp, double maxdist, IntPtr minduration) - => SafeExecution(() => MEOSExternalFunctions.temporal_stops(temp, maxdist, minduration)); - - public static string temporal_subtype(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_subtype(temp)); - - public static string temporal_basetype_name(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_basetype_name(temp)); - - public static IntPtr temporal_time(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_time(temp)); - - public static long[] temporal_timestamps(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_timestamps(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool temporal_timestamptz_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.temporal_timestamptz_n(temp, n, result)); - - public static bool temporal_upper_inc(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_upper_inc(temp)); - - public static double tfloat_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_end_value(temp)); - - public static double tfloat_min_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_min_value(temp)); - - public static double tfloat_max_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_max_value(temp)); - - public static double tfloat_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_start_value(temp)); - - public static bool tfloat_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.tfloat_value_at_timestamptz(temp, t, strict, value)); - - public static bool tfloat_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tfloat_value_n(temp, n, result)); - - public static double[] tfloat_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tfloat_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - double[] _out = new double[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int tint_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_end_value(temp)); - - public static IntPtr tbigint_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_end_value(temp)); - - public static int tint_max_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_max_value(temp)); - - public static IntPtr tbigint_max_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_max_value(temp)); - - public static int tint_min_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_min_value(temp)); - - public static IntPtr tbigint_min_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_min_value(temp)); - - public static int tint_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_start_value(temp)); - - public static IntPtr tbigint_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_start_value(temp)); - - public static bool tbigint_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.tbigint_value_at_timestamptz(temp, t, strict, value)); - - public static bool tint_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.tint_value_at_timestamptz(temp, t, strict, value)); - - public static bool tint_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tint_value_n(temp, n, result)); - - public static bool tbigint_value_n(IntPtr temp, IntPtr n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tbigint_value_n(temp, n, result)); - - public static int[] tint_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tint_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tbigint_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tbigint_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double tnumber_avg_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_avg_value(temp)); - - public static double tnumber_integral(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_integral(temp)); - - public static double tnumber_twavg(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_twavg(temp)); - - public static IntPtr tnumber_valuespans(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_valuespans(temp)); - - public static IntPtr ttext_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_end_value(temp)); - - public static IntPtr ttext_max_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_max_value(temp)); - - public static IntPtr ttext_min_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_min_value(temp)); - - public static IntPtr ttext_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_start_value(temp)); - - public static bool ttext_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.ttext_value_at_timestamptz(temp, t, strict, value)); - - public static bool ttext_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.ttext_value_n(temp, n, result)); - - public static IntPtr[] ttext_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.ttext_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double float_degrees(double value, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.float_degrees(value, normalize)); - - public static IntPtr temparr_round(IntPtr temp, int count, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.temparr_round(temp, count, maxdd)); - - public static IntPtr temporal_round(IntPtr temp, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.temporal_round(temp, maxdd)); - - public static IntPtr temporal_scale_time(IntPtr temp, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.temporal_scale_time(temp, duration)); - - public static IntPtr temporal_set_interp(IntPtr temp, int interp) - => SafeExecution(() => MEOSExternalFunctions.temporal_set_interp(temp, interp)); - - public static IntPtr temporal_shift_scale_time(IntPtr temp, IntPtr shift, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.temporal_shift_scale_time(temp, shift, duration)); - - public static IntPtr temporal_shift_time(IntPtr temp, IntPtr shift) - => SafeExecution(() => MEOSExternalFunctions.temporal_shift_time(temp, shift)); - - public static IntPtr temporal_to_tinstant(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_to_tinstant(temp)); - - public static IntPtr temporal_to_tsequence(IntPtr temp, int interp) - => SafeExecution(() => MEOSExternalFunctions.temporal_to_tsequence(temp, interp)); - - public static IntPtr temporal_to_tsequenceset(IntPtr temp, int interp) - => SafeExecution(() => MEOSExternalFunctions.temporal_to_tsequenceset(temp, interp)); - - public static IntPtr tfloat_ceil(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_ceil(temp)); - - public static IntPtr tfloat_degrees(IntPtr temp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.tfloat_degrees(temp, normalize)); - - public static IntPtr tfloat_floor(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_floor(temp)); - - public static IntPtr tfloat_radians(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_radians(temp)); - - public static IntPtr tfloat_scale_value(IntPtr temp, double width) - => SafeExecution(() => MEOSExternalFunctions.tfloat_scale_value(temp, width)); - - public static IntPtr tfloat_shift_scale_value(IntPtr temp, double shift, double width) - => SafeExecution(() => MEOSExternalFunctions.tfloat_shift_scale_value(temp, shift, width)); - - public static IntPtr tfloat_shift_value(IntPtr temp, double shift) - => SafeExecution(() => MEOSExternalFunctions.tfloat_shift_value(temp, shift)); - - public static IntPtr tint_scale_value(IntPtr temp, int width) - => SafeExecution(() => MEOSExternalFunctions.tint_scale_value(temp, width)); - - public static IntPtr tbigint_scale_value(IntPtr temp, IntPtr width) - => SafeExecution(() => MEOSExternalFunctions.tbigint_scale_value(temp, width)); - - public static IntPtr tint_shift_scale_value(IntPtr temp, int shift, int width) - => SafeExecution(() => MEOSExternalFunctions.tint_shift_scale_value(temp, shift, width)); - - public static IntPtr tbigint_shift_scale_value(IntPtr temp, IntPtr shift, IntPtr width) - => SafeExecution(() => MEOSExternalFunctions.tbigint_shift_scale_value(temp, shift, width)); - - public static IntPtr tint_shift_value(IntPtr temp, int shift) - => SafeExecution(() => MEOSExternalFunctions.tint_shift_value(temp, shift)); - - public static IntPtr tbigint_shift_value(IntPtr temp, IntPtr shift) - => SafeExecution(() => MEOSExternalFunctions.tbigint_shift_value(temp, shift)); - - public static IntPtr temporal_append_tinstant(IntPtr temp, IntPtr inst, int interp, double maxdist, IntPtr maxt, bool expand) - => SafeExecution(() => MEOSExternalFunctions.temporal_append_tinstant(temp, inst, interp, maxdist, maxt, expand)); - - public static IntPtr temporal_append_tsequence(IntPtr temp, IntPtr seq, bool expand) - => SafeExecution(() => MEOSExternalFunctions.temporal_append_tsequence(temp, seq, expand)); - - public static IntPtr temporal_delete_timestamptz(IntPtr temp, long t, bool connect) - => SafeExecution(() => MEOSExternalFunctions.temporal_delete_timestamptz(temp, t, connect)); - - public static IntPtr temporal_delete_tstzset(IntPtr temp, IntPtr s, bool connect) - => SafeExecution(() => MEOSExternalFunctions.temporal_delete_tstzset(temp, s, connect)); - - public static IntPtr temporal_delete_tstzspan(IntPtr temp, IntPtr s, bool connect) - => SafeExecution(() => MEOSExternalFunctions.temporal_delete_tstzspan(temp, s, connect)); - - public static IntPtr temporal_delete_tstzspanset(IntPtr temp, IntPtr ss, bool connect) - => SafeExecution(() => MEOSExternalFunctions.temporal_delete_tstzspanset(temp, ss, connect)); - - public static IntPtr temporal_insert(IntPtr temp1, IntPtr temp2, bool connect) - => SafeExecution(() => MEOSExternalFunctions.temporal_insert(temp1, temp2, connect)); - - public static IntPtr temporal_merge(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_merge(temp1, temp2)); - - public static IntPtr temporal_merge_array(IntPtr temparr, int count) - => SafeExecution(() => MEOSExternalFunctions.temporal_merge_array(temparr, count)); - - public static IntPtr temporal_update(IntPtr temp1, IntPtr temp2, bool connect) - => SafeExecution(() => MEOSExternalFunctions.temporal_update(temp1, temp2, connect)); - - public static IntPtr tbool_at_value(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.tbool_at_value(temp, b)); - - public static IntPtr tbool_minus_value(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.tbool_minus_value(temp, b)); - - public static IntPtr temporal_after_timestamptz(IntPtr temp, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.temporal_after_timestamptz(temp, t, strict)); - - public static IntPtr temporal_at_max(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_at_max(temp)); - - public static IntPtr temporal_at_min(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_at_min(temp)); - - public static IntPtr temporal_at_timestamptz(IntPtr temp, long t) - => SafeExecution(() => MEOSExternalFunctions.temporal_at_timestamptz(temp, t)); - - public static IntPtr temporal_at_tstzset(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.temporal_at_tstzset(temp, s)); - - public static IntPtr temporal_at_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.temporal_at_tstzspan(temp, s)); - - public static IntPtr temporal_at_tstzspanset(IntPtr temp, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.temporal_at_tstzspanset(temp, ss)); - - public static IntPtr temporal_at_values(IntPtr temp, IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.temporal_at_values(temp, set)); - - public static IntPtr temporal_before_timestamptz(IntPtr temp, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.temporal_before_timestamptz(temp, t, strict)); - - public static IntPtr temporal_minus_max(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_minus_max(temp)); - - public static IntPtr temporal_minus_min(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_minus_min(temp)); - - public static IntPtr temporal_minus_timestamptz(IntPtr temp, long t) - => SafeExecution(() => MEOSExternalFunctions.temporal_minus_timestamptz(temp, t)); - - public static IntPtr temporal_minus_tstzset(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.temporal_minus_tstzset(temp, s)); - - public static IntPtr temporal_minus_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.temporal_minus_tstzspan(temp, s)); - - public static IntPtr temporal_minus_tstzspanset(IntPtr temp, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.temporal_minus_tstzspanset(temp, ss)); - - public static IntPtr temporal_minus_values(IntPtr temp, IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.temporal_minus_values(temp, set)); - - public static IntPtr tfloat_at_value(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.tfloat_at_value(temp, d)); - - public static IntPtr tfloat_minus_value(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.tfloat_minus_value(temp, d)); - - public static IntPtr tint_at_value(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.tint_at_value(temp, i)); - - public static IntPtr tint_minus_value(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.tint_minus_value(temp, i)); - - public static IntPtr tnumber_at_span(IntPtr temp, IntPtr span) - => SafeExecution(() => MEOSExternalFunctions.tnumber_at_span(temp, span)); - - public static IntPtr tnumber_at_spanset(IntPtr temp, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumber_at_spanset(temp, ss)); - - public static IntPtr tnumber_at_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tnumber_at_tbox(temp, box)); - - public static IntPtr tnumber_minus_span(IntPtr temp, IntPtr span) - => SafeExecution(() => MEOSExternalFunctions.tnumber_minus_span(temp, span)); - - public static IntPtr tnumber_minus_spanset(IntPtr temp, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumber_minus_spanset(temp, ss)); - - public static IntPtr tnumber_minus_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tnumber_minus_tbox(temp, box)); - - public static IntPtr ttext_at_value(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.ttext_at_value(temp, txt)); - - public static IntPtr ttext_minus_value(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.ttext_minus_value(temp, txt)); - - public static int temporal_cmp(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_cmp(temp1, temp2)); - - public static bool temporal_eq(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_eq(temp1, temp2)); - - public static bool temporal_ge(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_ge(temp1, temp2)); - - public static bool temporal_gt(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_gt(temp1, temp2)); - - public static bool temporal_le(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_le(temp1, temp2)); - - public static bool temporal_lt(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_lt(temp1, temp2)); - - public static bool temporal_ne(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_ne(temp1, temp2)); - - public static int always_eq_bool_tbool(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_bool_tbool(b, temp)); - - public static int always_eq_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_float_tfloat(d, temp)); - - public static int always_eq_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_int_tint(i, temp)); - - public static int always_eq_tbool_bool(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tbool_bool(temp, b)); - - public static int always_eq_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_temporal_temporal(temp1, temp2)); - - public static int always_eq_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_text_ttext(txt, temp)); - - public static int always_eq_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tfloat_float(temp, d)); - - public static int always_eq_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tint_int(temp, i)); - - public static int always_eq_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_bigint_tbigint(i, temp)); - - public static int always_eq_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tbigint_bigint(temp, i)); - - public static int always_eq_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.always_eq_ttext_text(temp, txt)); - - public static int always_ge_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ge_float_tfloat(d, temp)); - - public static int always_ge_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ge_int_tint(i, temp)); - - public static int always_ge_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ge_temporal_temporal(temp1, temp2)); - - public static int always_ge_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ge_text_ttext(txt, temp)); - - public static int always_ge_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.always_ge_tfloat_float(temp, d)); - - public static int always_ge_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.always_ge_tint_int(temp, i)); - - public static int always_ge_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ge_bigint_tbigint(i, temp)); - - public static int always_ge_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.always_ge_tbigint_bigint(temp, i)); - - public static int always_ge_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.always_ge_ttext_text(temp, txt)); - - public static int always_gt_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_gt_float_tfloat(d, temp)); - - public static int always_gt_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_gt_int_tint(i, temp)); - - public static int always_gt_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_gt_temporal_temporal(temp1, temp2)); - - public static int always_gt_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_gt_text_ttext(txt, temp)); - - public static int always_gt_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.always_gt_tfloat_float(temp, d)); - - public static int always_gt_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.always_gt_tint_int(temp, i)); - - public static int always_gt_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_gt_bigint_tbigint(i, temp)); - - public static int always_gt_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.always_gt_tbigint_bigint(temp, i)); - - public static int always_gt_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.always_gt_ttext_text(temp, txt)); - - public static int always_le_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_le_float_tfloat(d, temp)); - - public static int always_le_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_le_int_tint(i, temp)); - - public static int always_le_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_le_temporal_temporal(temp1, temp2)); - - public static int always_le_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_le_text_ttext(txt, temp)); - - public static int always_le_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.always_le_tfloat_float(temp, d)); - - public static int always_le_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.always_le_tint_int(temp, i)); - - public static int always_le_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_le_bigint_tbigint(i, temp)); - - public static int always_le_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.always_le_tbigint_bigint(temp, i)); - - public static int always_le_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.always_le_ttext_text(temp, txt)); - - public static int always_lt_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_lt_float_tfloat(d, temp)); - - public static int always_lt_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_lt_int_tint(i, temp)); - - public static int always_lt_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_lt_temporal_temporal(temp1, temp2)); - - public static int always_lt_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_lt_text_ttext(txt, temp)); - - public static int always_lt_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.always_lt_tfloat_float(temp, d)); - - public static int always_lt_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.always_lt_tint_int(temp, i)); - - public static int always_lt_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_lt_bigint_tbigint(i, temp)); - - public static int always_lt_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.always_lt_tbigint_bigint(temp, i)); - - public static int always_lt_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.always_lt_ttext_text(temp, txt)); - - public static int always_ne_bool_tbool(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_bool_tbool(b, temp)); - - public static int always_ne_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_float_tfloat(d, temp)); - - public static int always_ne_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_int_tint(i, temp)); - - public static int always_ne_tbool_bool(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tbool_bool(temp, b)); - - public static int always_ne_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_temporal_temporal(temp1, temp2)); - - public static int always_ne_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_text_ttext(txt, temp)); - - public static int always_ne_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tfloat_float(temp, d)); - - public static int always_ne_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tint_int(temp, i)); - - public static int always_ne_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_bigint_tbigint(i, temp)); - - public static int always_ne_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tbigint_bigint(temp, i)); - - public static int always_ne_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.always_ne_ttext_text(temp, txt)); - - public static int ever_eq_bool_tbool(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_bool_tbool(b, temp)); - - public static int ever_eq_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_float_tfloat(d, temp)); - - public static int ever_eq_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_int_tint(i, temp)); - - public static int ever_eq_tbool_bool(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tbool_bool(temp, b)); - - public static int ever_eq_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_temporal_temporal(temp1, temp2)); - - public static int ever_eq_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_text_ttext(txt, temp)); - - public static int ever_eq_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tfloat_float(temp, d)); - - public static int ever_eq_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tint_int(temp, i)); - - public static int ever_eq_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_bigint_tbigint(i, temp)); - - public static int ever_eq_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tbigint_bigint(temp, i)); - - public static int ever_eq_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_ttext_text(temp, txt)); - - public static int ever_ge_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_float_tfloat(d, temp)); - - public static int ever_ge_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_int_tint(i, temp)); - - public static int ever_ge_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_temporal_temporal(temp1, temp2)); - - public static int ever_ge_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_text_ttext(txt, temp)); - - public static int ever_ge_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_tfloat_float(temp, d)); - - public static int ever_ge_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_tint_int(temp, i)); - - public static int ever_ge_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_bigint_tbigint(i, temp)); - - public static int ever_ge_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_tbigint_bigint(temp, i)); - - public static int ever_ge_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_ttext_text(temp, txt)); - - public static int ever_gt_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_float_tfloat(d, temp)); - - public static int ever_gt_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_int_tint(i, temp)); - - public static int ever_gt_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_temporal_temporal(temp1, temp2)); - - public static int ever_gt_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_text_ttext(txt, temp)); - - public static int ever_gt_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_tfloat_float(temp, d)); - - public static int ever_gt_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_tint_int(temp, i)); - - public static int ever_gt_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_bigint_tbigint(i, temp)); - - public static int ever_gt_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_tbigint_bigint(temp, i)); - - public static int ever_gt_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_ttext_text(temp, txt)); - - public static int ever_le_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_le_float_tfloat(d, temp)); - - public static int ever_le_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_le_int_tint(i, temp)); - - public static int ever_le_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_le_temporal_temporal(temp1, temp2)); - - public static int ever_le_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_le_text_ttext(txt, temp)); - - public static int ever_le_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.ever_le_tfloat_float(temp, d)); - - public static int ever_le_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.ever_le_tint_int(temp, i)); - - public static int ever_le_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_le_bigint_tbigint(i, temp)); - - public static int ever_le_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.ever_le_tbigint_bigint(temp, i)); - - public static int ever_le_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.ever_le_ttext_text(temp, txt)); - - public static int ever_lt_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_float_tfloat(d, temp)); - - public static int ever_lt_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_int_tint(i, temp)); - - public static int ever_lt_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_temporal_temporal(temp1, temp2)); - - public static int ever_lt_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_text_ttext(txt, temp)); - - public static int ever_lt_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_tfloat_float(temp, d)); - - public static int ever_lt_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_tint_int(temp, i)); - - public static int ever_lt_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_bigint_tbigint(i, temp)); - - public static int ever_lt_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_tbigint_bigint(temp, i)); - - public static int ever_lt_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_ttext_text(temp, txt)); - - public static int ever_ne_bool_tbool(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_bool_tbool(b, temp)); - - public static int ever_ne_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_float_tfloat(d, temp)); - - public static int ever_ne_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_int_tint(i, temp)); - - public static int ever_ne_tbool_bool(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tbool_bool(temp, b)); - - public static int ever_ne_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_temporal_temporal(temp1, temp2)); - - public static int ever_ne_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_text_ttext(txt, temp)); - - public static int ever_ne_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tfloat_float(temp, d)); - - public static int ever_ne_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tint_int(temp, i)); - - public static int ever_ne_bigint_tbigint(IntPtr i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_bigint_tbigint(i, temp)); - - public static int ever_ne_tbigint_bigint(IntPtr temp, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tbigint_bigint(temp, i)); - - public static int ever_ne_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_ttext_text(temp, txt)); - - public static IntPtr teq_bool_tbool(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_bool_tbool(b, temp)); - - public static IntPtr teq_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_float_tfloat(d, temp)); - - public static IntPtr teq_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_int_tint(i, temp)); - - public static IntPtr teq_tbool_bool(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.teq_tbool_bool(temp, b)); - - public static IntPtr teq_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.teq_temporal_temporal(temp1, temp2)); - - public static IntPtr teq_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_text_ttext(txt, temp)); - - public static IntPtr teq_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.teq_tfloat_float(temp, d)); - - public static IntPtr teq_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.teq_tint_int(temp, i)); - - public static IntPtr teq_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.teq_ttext_text(temp, txt)); - - public static IntPtr tge_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tge_float_tfloat(d, temp)); - - public static IntPtr tge_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tge_int_tint(i, temp)); - - public static IntPtr tge_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tge_temporal_temporal(temp1, temp2)); - - public static IntPtr tge_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tge_text_ttext(txt, temp)); - - public static IntPtr tge_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.tge_tfloat_float(temp, d)); - - public static IntPtr tge_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.tge_tint_int(temp, i)); - - public static IntPtr tge_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.tge_ttext_text(temp, txt)); - - public static IntPtr tgt_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgt_float_tfloat(d, temp)); - - public static IntPtr tgt_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgt_int_tint(i, temp)); - - public static IntPtr tgt_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tgt_temporal_temporal(temp1, temp2)); - - public static IntPtr tgt_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgt_text_ttext(txt, temp)); - - public static IntPtr tgt_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.tgt_tfloat_float(temp, d)); - - public static IntPtr tgt_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.tgt_tint_int(temp, i)); - - public static IntPtr tgt_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.tgt_ttext_text(temp, txt)); - - public static IntPtr tle_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tle_float_tfloat(d, temp)); - - public static IntPtr tle_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tle_int_tint(i, temp)); - - public static IntPtr tle_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tle_temporal_temporal(temp1, temp2)); - - public static IntPtr tle_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tle_text_ttext(txt, temp)); - - public static IntPtr tle_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.tle_tfloat_float(temp, d)); - - public static IntPtr tle_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.tle_tint_int(temp, i)); - - public static IntPtr tle_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.tle_ttext_text(temp, txt)); - - public static IntPtr tlt_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tlt_float_tfloat(d, temp)); - - public static IntPtr tlt_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tlt_int_tint(i, temp)); - - public static IntPtr tlt_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tlt_temporal_temporal(temp1, temp2)); - - public static IntPtr tlt_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tlt_text_ttext(txt, temp)); - - public static IntPtr tlt_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.tlt_tfloat_float(temp, d)); - - public static IntPtr tlt_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.tlt_tint_int(temp, i)); - - public static IntPtr tlt_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.tlt_ttext_text(temp, txt)); - - public static IntPtr tne_bool_tbool(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_bool_tbool(b, temp)); - - public static IntPtr tne_float_tfloat(double d, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_float_tfloat(d, temp)); - - public static IntPtr tne_int_tint(int i, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_int_tint(i, temp)); - - public static IntPtr tne_tbool_bool(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.tne_tbool_bool(temp, b)); - - public static IntPtr tne_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tne_temporal_temporal(temp1, temp2)); - - public static IntPtr tne_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_text_ttext(txt, temp)); - - public static IntPtr tne_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.tne_tfloat_float(temp, d)); - - public static IntPtr tne_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.tne_tint_int(temp, i)); - - public static IntPtr tne_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.tne_ttext_text(temp, txt)); - - public static IntPtr[] temporal_spans(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_spans(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] temporal_split_each_n_spans(IntPtr temp, int elem_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_split_each_n_spans(temp, elem_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] temporal_split_n_spans(IntPtr temp, int span_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_split_n_spans(temp, span_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tnumber_split_each_n_tboxes(IntPtr temp, int elem_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnumber_split_each_n_tboxes(temp, elem_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tnumber_split_n_tboxes(IntPtr temp, int box_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnumber_split_n_tboxes(temp, box_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tnumber_tboxes(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnumber_tboxes(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool adjacent_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.adjacent_numspan_tnumber(s, temp)); - - public static bool adjacent_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tbox_tnumber(box, temp)); - - public static bool adjacent_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.adjacent_temporal_temporal(temp1, temp2)); - - public static bool adjacent_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.adjacent_temporal_tstzspan(temp, s)); - - public static bool adjacent_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tnumber_numspan(temp, s)); - - public static bool adjacent_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tnumber_tbox(temp, box)); - - public static bool adjacent_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tnumber_tnumber(temp1, temp2)); - - public static bool adjacent_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tstzspan_temporal(s, temp)); - - public static bool contained_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.contained_numspan_tnumber(s, temp)); - - public static bool contained_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.contained_tbox_tnumber(box, temp)); - - public static bool contained_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contained_temporal_temporal(temp1, temp2)); - - public static bool contained_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_temporal_tstzspan(temp, s)); - - public static bool contained_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_tnumber_numspan(temp, s)); - - public static bool contained_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.contained_tnumber_tbox(temp, box)); - - public static bool contained_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contained_tnumber_tnumber(temp1, temp2)); - - public static bool contained_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.contained_tstzspan_temporal(s, temp)); - - public static bool contains_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.contains_numspan_tnumber(s, temp)); - - public static bool contains_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.contains_tbox_tnumber(box, temp)); - - public static bool contains_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contains_temporal_tstzspan(temp, s)); - - public static bool contains_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contains_temporal_temporal(temp1, temp2)); - - public static bool contains_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contains_tnumber_numspan(temp, s)); - - public static bool contains_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.contains_tnumber_tbox(temp, box)); - - public static bool contains_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contains_tnumber_tnumber(temp1, temp2)); - - public static bool contains_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.contains_tstzspan_temporal(s, temp)); - - public static bool overlaps_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overlaps_numspan_tnumber(s, temp)); - - public static bool overlaps_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tbox_tnumber(box, temp)); - - public static bool overlaps_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_temporal_temporal(temp1, temp2)); - - public static bool overlaps_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overlaps_temporal_tstzspan(temp, s)); - - public static bool overlaps_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tnumber_numspan(temp, s)); - - public static bool overlaps_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tnumber_tbox(temp, box)); - - public static bool overlaps_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tnumber_tnumber(temp1, temp2)); - - public static bool overlaps_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tstzspan_temporal(s, temp)); - - public static bool same_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.same_numspan_tnumber(s, temp)); - - public static bool same_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.same_tbox_tnumber(box, temp)); - - public static bool same_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.same_temporal_temporal(temp1, temp2)); - - public static bool same_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.same_temporal_tstzspan(temp, s)); - - public static bool same_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.same_tnumber_numspan(temp, s)); - - public static bool same_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.same_tnumber_tbox(temp, box)); - - public static bool same_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.same_tnumber_tnumber(temp1, temp2)); - - public static bool same_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.same_tstzspan_temporal(s, temp)); - - public static bool after_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.after_tbox_tnumber(box, temp)); - - public static bool after_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.after_temporal_tstzspan(temp, s)); - - public static bool after_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.after_temporal_temporal(temp1, temp2)); - - public static bool after_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.after_tnumber_tbox(temp, box)); - - public static bool after_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.after_tnumber_tnumber(temp1, temp2)); - - public static bool after_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.after_tstzspan_temporal(s, temp)); - - public static bool before_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.before_tbox_tnumber(box, temp)); - - public static bool before_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.before_temporal_tstzspan(temp, s)); - - public static bool before_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.before_temporal_temporal(temp1, temp2)); - - public static bool before_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.before_tnumber_tbox(temp, box)); - - public static bool before_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.before_tnumber_tnumber(temp1, temp2)); - - public static bool before_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.before_tstzspan_temporal(s, temp)); - - public static bool left_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.left_tbox_tnumber(box, temp)); - - public static bool left_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.left_numspan_tnumber(s, temp)); - - public static bool left_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_tnumber_numspan(temp, s)); - - public static bool left_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.left_tnumber_tbox(temp, box)); - - public static bool left_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.left_tnumber_tnumber(temp1, temp2)); - - public static bool overafter_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overafter_tbox_tnumber(box, temp)); - - public static bool overafter_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overafter_temporal_tstzspan(temp, s)); - - public static bool overafter_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overafter_temporal_temporal(temp1, temp2)); - - public static bool overafter_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overafter_tnumber_tbox(temp, box)); - - public static bool overafter_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overafter_tnumber_tnumber(temp1, temp2)); - - public static bool overafter_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overafter_tstzspan_temporal(s, temp)); - - public static bool overbefore_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overbefore_tbox_tnumber(box, temp)); - - public static bool overbefore_temporal_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overbefore_temporal_tstzspan(temp, s)); - - public static bool overbefore_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overbefore_temporal_temporal(temp1, temp2)); - - public static bool overbefore_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overbefore_tnumber_tbox(temp, box)); - - public static bool overbefore_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overbefore_tnumber_tnumber(temp1, temp2)); - - public static bool overbefore_tstzspan_temporal(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overbefore_tstzspan_temporal(s, temp)); - - public static bool overleft_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overleft_numspan_tnumber(s, temp)); - - public static bool overleft_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overleft_tbox_tnumber(box, temp)); - - public static bool overleft_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_tnumber_numspan(temp, s)); - - public static bool overleft_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overleft_tnumber_tbox(temp, box)); - - public static bool overleft_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overleft_tnumber_tnumber(temp1, temp2)); - - public static bool overright_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overright_numspan_tnumber(s, temp)); - - public static bool overright_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overright_tbox_tnumber(box, temp)); - - public static bool overright_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_tnumber_numspan(temp, s)); - - public static bool overright_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overright_tnumber_tbox(temp, box)); - - public static bool overright_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overright_tnumber_tnumber(temp1, temp2)); - - public static bool right_numspan_tnumber(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.right_numspan_tnumber(s, temp)); - - public static bool right_tbox_tnumber(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.right_tbox_tnumber(box, temp)); - - public static bool right_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_tnumber_numspan(temp, s)); - - public static bool right_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.right_tnumber_tbox(temp, box)); - - public static bool right_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.right_tnumber_tnumber(temp1, temp2)); - - public static IntPtr tand_bool_tbool(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tand_bool_tbool(b, temp)); - - public static IntPtr tand_tbool_bool(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.tand_tbool_bool(temp, b)); - - public static IntPtr tand_tbool_tbool(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tand_tbool_tbool(temp1, temp2)); - - public static IntPtr tbool_when_true(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbool_when_true(temp)); - - public static IntPtr tnot_tbool(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnot_tbool(temp)); - - public static IntPtr tor_bool_tbool(bool b, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tor_bool_tbool(b, temp)); - - public static IntPtr tor_tbool_bool(IntPtr temp, bool b) - => SafeExecution(() => MEOSExternalFunctions.tor_tbool_bool(temp, b)); - - public static IntPtr tor_tbool_tbool(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tor_tbool_tbool(temp1, temp2)); - - public static IntPtr add_float_tfloat(double d, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.add_float_tfloat(d, tnumber)); - - public static IntPtr add_int_tint(int i, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.add_int_tint(i, tnumber)); - - public static IntPtr add_tfloat_float(IntPtr tnumber, double d) - => SafeExecution(() => MEOSExternalFunctions.add_tfloat_float(tnumber, d)); - - public static IntPtr add_tint_int(IntPtr tnumber, int i) - => SafeExecution(() => MEOSExternalFunctions.add_tint_int(tnumber, i)); - - public static IntPtr add_bigint_tbigint(IntPtr i, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.add_bigint_tbigint(i, tnumber)); - - public static IntPtr add_tbigint_bigint(IntPtr tnumber, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.add_tbigint_bigint(tnumber, i)); - - public static IntPtr add_tnumber_tnumber(IntPtr tnumber1, IntPtr tnumber2) - => SafeExecution(() => MEOSExternalFunctions.add_tnumber_tnumber(tnumber1, tnumber2)); - - public static IntPtr div_float_tfloat(double d, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.div_float_tfloat(d, tnumber)); - - public static IntPtr div_int_tint(int i, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.div_int_tint(i, tnumber)); - - public static IntPtr div_tfloat_float(IntPtr tnumber, double d) - => SafeExecution(() => MEOSExternalFunctions.div_tfloat_float(tnumber, d)); - - public static IntPtr div_tint_int(IntPtr tnumber, int i) - => SafeExecution(() => MEOSExternalFunctions.div_tint_int(tnumber, i)); - - public static IntPtr div_bigint_tbigint(IntPtr i, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.div_bigint_tbigint(i, tnumber)); - - public static IntPtr div_tbigint_bigint(IntPtr tnumber, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.div_tbigint_bigint(tnumber, i)); - - public static IntPtr div_tnumber_tnumber(IntPtr tnumber1, IntPtr tnumber2) - => SafeExecution(() => MEOSExternalFunctions.div_tnumber_tnumber(tnumber1, tnumber2)); - - public static IntPtr mul_float_tfloat(double d, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.mul_float_tfloat(d, tnumber)); - - public static IntPtr mul_int_tint(int i, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.mul_int_tint(i, tnumber)); - - public static IntPtr mul_tfloat_float(IntPtr tnumber, double d) - => SafeExecution(() => MEOSExternalFunctions.mul_tfloat_float(tnumber, d)); - - public static IntPtr mul_tint_int(IntPtr tnumber, int i) - => SafeExecution(() => MEOSExternalFunctions.mul_tint_int(tnumber, i)); - - public static IntPtr mul_bigint_tbigint(IntPtr i, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.mul_bigint_tbigint(i, tnumber)); - - public static IntPtr mul_tbigint_bigint(IntPtr tnumber, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.mul_tbigint_bigint(tnumber, i)); - - public static IntPtr mul_tnumber_tnumber(IntPtr tnumber1, IntPtr tnumber2) - => SafeExecution(() => MEOSExternalFunctions.mul_tnumber_tnumber(tnumber1, tnumber2)); - - public static IntPtr sub_float_tfloat(double d, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.sub_float_tfloat(d, tnumber)); - - public static IntPtr sub_int_tint(int i, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.sub_int_tint(i, tnumber)); - - public static IntPtr sub_tfloat_float(IntPtr tnumber, double d) - => SafeExecution(() => MEOSExternalFunctions.sub_tfloat_float(tnumber, d)); - - public static IntPtr sub_tint_int(IntPtr tnumber, int i) - => SafeExecution(() => MEOSExternalFunctions.sub_tint_int(tnumber, i)); - - public static IntPtr sub_bigint_tbigint(IntPtr i, IntPtr tnumber) - => SafeExecution(() => MEOSExternalFunctions.sub_bigint_tbigint(i, tnumber)); - - public static IntPtr sub_tbigint_bigint(IntPtr tnumber, IntPtr i) - => SafeExecution(() => MEOSExternalFunctions.sub_tbigint_bigint(tnumber, i)); - - public static IntPtr sub_tnumber_tnumber(IntPtr tnumber1, IntPtr tnumber2) - => SafeExecution(() => MEOSExternalFunctions.sub_tnumber_tnumber(tnumber1, tnumber2)); - - public static IntPtr temporal_derivative(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_derivative(temp)); - - public static IntPtr tfloat_exp(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_exp(temp)); - - public static IntPtr tfloat_ln(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_ln(temp)); - - public static IntPtr tfloat_log10(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_log10(temp)); - - public static IntPtr tfloat_sin(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_sin(temp)); - - public static IntPtr tfloat_cos(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_cos(temp)); - - public static IntPtr tfloat_tan(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_tan(temp)); - - public static IntPtr tnumber_abs(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_abs(temp)); - - public static IntPtr tnumber_trend(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_trend(temp)); - - public static double float_angular_difference(double degrees1, double degrees2) - => SafeExecution(() => MEOSExternalFunctions.float_angular_difference(degrees1, degrees2)); - - public static IntPtr tnumber_angular_difference(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_angular_difference(temp)); - - public static IntPtr tnumber_delta_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_delta_value(temp)); - - public static IntPtr textcat_text_ttext(IntPtr txt, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.textcat_text_ttext(txt, temp)); - - public static IntPtr textcat_ttext_text(IntPtr temp, IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.textcat_ttext_text(temp, txt)); - - public static IntPtr textcat_ttext_ttext(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.textcat_ttext_ttext(temp1, temp2)); - - public static IntPtr ttext_initcap(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_initcap(temp)); - - public static IntPtr ttext_upper(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_upper(temp)); - - public static IntPtr ttext_lower(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_lower(temp)); - - public static IntPtr tdistance_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tfloat_float(temp, d)); - - public static IntPtr tdistance_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tint_int(temp, i)); - - public static IntPtr tdistance_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tnumber_tnumber(temp1, temp2)); - - public static double nad_tboxfloat_tboxfloat(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.nad_tboxfloat_tboxfloat(box1, box2)); - - public static int nad_tboxint_tboxint(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.nad_tboxint_tboxint(box1, box2)); - - public static double nad_tfloat_float(IntPtr temp, double d) - => SafeExecution(() => MEOSExternalFunctions.nad_tfloat_float(temp, d)); - - public static double nad_tfloat_tfloat(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_tfloat_tfloat(temp1, temp2)); - - public static double nad_tfloat_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_tfloat_tbox(temp, box)); - - public static int nad_tint_int(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.nad_tint_int(temp, i)); - - public static int nad_tint_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_tint_tbox(temp, box)); - - public static int nad_tint_tint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_tint_tint(temp1, temp2)); - - public static IntPtr tbool_tand_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbool_tand_transfn(state, temp)); - - public static IntPtr tbool_tand_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tbool_tand_combinefn(state1, state2)); - - public static IntPtr tbool_tor_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbool_tor_transfn(state, temp)); - - public static IntPtr tbool_tor_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tbool_tor_combinefn(state1, state2)); - - public static IntPtr temporal_extent_transfn(IntPtr s, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_extent_transfn(s, temp)); - - public static IntPtr temporal_tagg_finalfn(IntPtr state) - => SafeExecution(() => MEOSExternalFunctions.temporal_tagg_finalfn(state)); - - public static IntPtr temporal_tcount_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_tcount_transfn(state, temp)); - - public static IntPtr temporal_tcount_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.temporal_tcount_combinefn(state1, state2)); - - public static IntPtr tfloat_tmax_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_tmax_transfn(state, temp)); - - public static IntPtr tfloat_tmax_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tfloat_tmax_combinefn(state1, state2)); - - public static IntPtr tfloat_tmin_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_tmin_transfn(state, temp)); - - public static IntPtr tfloat_tmin_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tfloat_tmin_combinefn(state1, state2)); - - public static IntPtr tfloat_tsum_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tfloat_tsum_transfn(state, temp)); - - public static IntPtr tfloat_tsum_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tfloat_tsum_combinefn(state1, state2)); - - public static IntPtr tfloat_wmax_transfn(IntPtr state, IntPtr temp, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tfloat_wmax_transfn(state, temp, interv)); - - public static IntPtr tfloat_wmin_transfn(IntPtr state, IntPtr temp, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tfloat_wmin_transfn(state, temp, interv)); - - public static IntPtr tfloat_wsum_transfn(IntPtr state, IntPtr temp, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tfloat_wsum_transfn(state, temp, interv)); - - public static IntPtr timestamptz_tcount_transfn(IntPtr state, long t) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_tcount_transfn(state, t)); - - public static IntPtr tint_tmax_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_tmax_transfn(state, temp)); - - public static IntPtr tint_tmax_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tint_tmax_combinefn(state1, state2)); - - public static IntPtr tint_tmin_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_tmin_transfn(state, temp)); - - public static IntPtr tint_tmin_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tint_tmin_combinefn(state1, state2)); - - public static IntPtr tint_tsum_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tint_tsum_transfn(state, temp)); - - public static IntPtr tint_tsum_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tint_tsum_combinefn(state1, state2)); - - public static IntPtr tint_wmax_transfn(IntPtr state, IntPtr temp, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tint_wmax_transfn(state, temp, interv)); - - public static IntPtr tint_wmin_transfn(IntPtr state, IntPtr temp, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tint_wmin_transfn(state, temp, interv)); - - public static IntPtr tint_wsum_transfn(IntPtr state, IntPtr temp, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tint_wsum_transfn(state, temp, interv)); - - public static IntPtr tnumber_extent_transfn(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_extent_transfn(box, temp)); - - public static IntPtr tnumber_tavg_finalfn(IntPtr state) - => SafeExecution(() => MEOSExternalFunctions.tnumber_tavg_finalfn(state)); - - public static IntPtr tnumber_tavg_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnumber_tavg_transfn(state, temp)); - - public static IntPtr tnumber_tavg_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.tnumber_tavg_combinefn(state1, state2)); - - public static IntPtr tnumber_wavg_transfn(IntPtr state, IntPtr temp, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tnumber_wavg_transfn(state, temp, interv)); - - public static IntPtr tstzset_tcount_transfn(IntPtr state, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzset_tcount_transfn(state, s)); - - public static IntPtr tstzspan_tcount_transfn(IntPtr state, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_tcount_transfn(state, s)); - - public static IntPtr tstzspanset_tcount_transfn(IntPtr state, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_tcount_transfn(state, ss)); - - public static IntPtr temporal_merge_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_merge_transfn(state, temp)); - - public static IntPtr temporal_merge_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.temporal_merge_combinefn(state1, state2)); - - public static IntPtr ttext_tmax_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_tmax_transfn(state, temp)); - - public static IntPtr ttext_tmax_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.ttext_tmax_combinefn(state1, state2)); - - public static IntPtr ttext_tmin_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_tmin_transfn(state, temp)); - - public static IntPtr ttext_tmin_combinefn(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.ttext_tmin_combinefn(state1, state2)); - - public static IntPtr temporal_simplify_dp(IntPtr temp, double dist, bool synchronized) - => SafeExecution(() => MEOSExternalFunctions.temporal_simplify_dp(temp, dist, synchronized)); - - public static IntPtr temporal_simplify_max_dist(IntPtr temp, double dist, bool synchronized) - => SafeExecution(() => MEOSExternalFunctions.temporal_simplify_max_dist(temp, dist, synchronized)); - - public static IntPtr temporal_simplify_min_dist(IntPtr temp, double dist) - => SafeExecution(() => MEOSExternalFunctions.temporal_simplify_min_dist(temp, dist)); - - public static IntPtr temporal_simplify_min_tdelta(IntPtr temp, IntPtr mint) - => SafeExecution(() => MEOSExternalFunctions.temporal_simplify_min_tdelta(temp, mint)); - - public static IntPtr temporal_tprecision(IntPtr temp, IntPtr duration, long origin) - => SafeExecution(() => MEOSExternalFunctions.temporal_tprecision(temp, duration, origin)); - - public static IntPtr temporal_tsample(IntPtr temp, IntPtr duration, long origin, int interp) - => SafeExecution(() => MEOSExternalFunctions.temporal_tsample(temp, duration, origin, interp)); - - public static double temporal_dyntimewarp_distance(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_dyntimewarp_distance(temp1, temp2)); - - public static IntPtr[] temporal_dyntimewarp_path(IntPtr temp1, IntPtr temp2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_dyntimewarp_path(temp1, temp2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double temporal_frechet_distance(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_frechet_distance(temp1, temp2)); - - public static IntPtr[] temporal_frechet_path(IntPtr temp1, IntPtr temp2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_frechet_path(temp1, temp2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double temporal_hausdorff_distance(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_hausdorff_distance(temp1, temp2)); - - public static double temporal_average_hausdorff_distance(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.temporal_average_hausdorff_distance(temp1, temp2)); - - public static double temporal_lcss_distance(IntPtr temp1, IntPtr temp2, double epsilon) - => SafeExecution(() => MEOSExternalFunctions.temporal_lcss_distance(temp1, temp2, epsilon)); - - public static IntPtr temporal_ext_kalman_filter(IntPtr temp, double gate, double q, double variance, bool to_drop) - => SafeExecution(() => MEOSExternalFunctions.temporal_ext_kalman_filter(temp, gate, q, variance, to_drop)); - - public static IntPtr[] temporal_time_bins(IntPtr temp, IntPtr duration, long origin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_time_bins(temp, duration, origin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static (IntPtr[], long[]) temporal_time_split(IntPtr temp, IntPtr duration, long torigin) - { - IntPtr _out_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.temporal_time_split(temp, duration, torigin, _out_bins, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_bins_arr = Marshal.ReadIntPtr(_out_bins); - long[] __out_bins_out = new long[_n]; - Marshal.Copy(__out_bins_arr, __out_bins_out, 0, _n); - return (_resultArr, __out_bins_out); - } - finally - { - Marshal.FreeHGlobal(_out_bins); - Marshal.FreeHGlobal(_count_count); - } - } - - public static IntPtr[] tfloat_time_boxes(IntPtr temp, IntPtr duration, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tfloat_time_boxes(temp, duration, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tfloat_value_bins(IntPtr temp, double vsize, double vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tfloat_value_bins(temp, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tfloat_value_boxes(IntPtr temp, double vsize, double vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tfloat_value_boxes(temp, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static (IntPtr[], double[]) tfloat_value_split(IntPtr temp, double size, double origin) - { - IntPtr _out_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tfloat_value_split(temp, size, origin, _out_bins, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_bins_arr = Marshal.ReadIntPtr(_out_bins); - double[] __out_bins_out = new double[_n]; - Marshal.Copy(__out_bins_arr, __out_bins_out, 0, _n); - return (_resultArr, __out_bins_out); - } - finally - { - Marshal.FreeHGlobal(_out_bins); - Marshal.FreeHGlobal(_count_count); - } - } - - public static IntPtr[] tfloat_value_time_boxes(IntPtr temp, double vsize, IntPtr duration, double vorigin, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tfloat_value_time_boxes(temp, vsize, duration, vorigin, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static (IntPtr[], double[], long[]) tfloat_value_time_split(IntPtr temp, double vsize, IntPtr duration, double vorigin, long torigin) - { - IntPtr _out_value_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _out_time_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tfloat_value_time_split(temp, vsize, duration, vorigin, torigin, _out_value_bins, _out_time_bins, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_value_bins_arr = Marshal.ReadIntPtr(_out_value_bins); - double[] __out_value_bins_out = new double[_n]; - Marshal.Copy(__out_value_bins_arr, __out_value_bins_out, 0, _n); - IntPtr __out_time_bins_arr = Marshal.ReadIntPtr(_out_time_bins); - long[] __out_time_bins_out = new long[_n]; - Marshal.Copy(__out_time_bins_arr, __out_time_bins_out, 0, _n); - return (_resultArr, __out_value_bins_out, __out_time_bins_out); - } - finally - { - Marshal.FreeHGlobal(_out_value_bins); - Marshal.FreeHGlobal(_out_time_bins); - Marshal.FreeHGlobal(_count_count); - } - } - - public static IntPtr[] tfloatbox_time_tiles(IntPtr box, IntPtr duration, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tfloatbox_time_tiles(box, duration, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tfloatbox_value_tiles(IntPtr box, double vsize, double vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tfloatbox_value_tiles(box, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tfloatbox_value_time_tiles(IntPtr box, double vsize, IntPtr duration, double vorigin, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tfloatbox_value_time_tiles(box, vsize, duration, vorigin, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tint_time_boxes(IntPtr temp, IntPtr duration, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tint_time_boxes(temp, duration, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tint_value_bins(IntPtr temp, int vsize, int vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tint_value_bins(temp, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tint_value_boxes(IntPtr temp, int vsize, int vorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tint_value_boxes(temp, vsize, vorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static (IntPtr[], int[]) tint_value_split(IntPtr temp, int vsize, int vorigin) - { - IntPtr _out_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tint_value_split(temp, vsize, vorigin, _out_bins, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_bins_arr = Marshal.ReadIntPtr(_out_bins); - int[] __out_bins_out = new int[_n]; - Marshal.Copy(__out_bins_arr, __out_bins_out, 0, _n); - return (_resultArr, __out_bins_out); - } - finally - { - Marshal.FreeHGlobal(_out_bins); - Marshal.FreeHGlobal(_count_count); - } - } - - public static IntPtr[] tint_value_time_boxes(IntPtr temp, int vsize, IntPtr duration, int vorigin, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tint_value_time_boxes(temp, vsize, duration, vorigin, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static (IntPtr[], int[], long[]) tint_value_time_split(IntPtr temp, int size, IntPtr duration, int vorigin, long torigin) - { - IntPtr _out_value_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _out_time_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tint_value_time_split(temp, size, duration, vorigin, torigin, _out_value_bins, _out_time_bins, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_value_bins_arr = Marshal.ReadIntPtr(_out_value_bins); - int[] __out_value_bins_out = new int[_n]; - Marshal.Copy(__out_value_bins_arr, __out_value_bins_out, 0, _n); - IntPtr __out_time_bins_arr = Marshal.ReadIntPtr(_out_time_bins); - long[] __out_time_bins_out = new long[_n]; - Marshal.Copy(__out_time_bins_arr, __out_time_bins_out, 0, _n); - return (_resultArr, __out_value_bins_out, __out_time_bins_out); - } - finally - { - Marshal.FreeHGlobal(_out_value_bins); - Marshal.FreeHGlobal(_out_time_bins); - Marshal.FreeHGlobal(_count_count); - } - } - - public static IntPtr[] tintbox_time_tiles(IntPtr box, IntPtr duration, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tintbox_time_tiles(box, duration, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tintbox_value_tiles(IntPtr box, int xsize, int xorigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tintbox_value_tiles(box, xsize, xorigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tintbox_value_time_tiles(IntPtr box, int xsize, IntPtr duration, int xorigin, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tintbox_value_time_tiles(box, xsize, duration, xorigin, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr box3d_from_gbox(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.box3d_from_gbox(box)); - - public static IntPtr box3d_make(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, int srid) - => SafeExecution(() => MEOSExternalFunctions.box3d_make(xmin, xmax, ymin, ymax, zmin, zmax, srid)); - - public static IntPtr box3d_in(string str) - => SafeExecution(() => MEOSExternalFunctions.box3d_in(str)); - - public static string box3d_out(IntPtr box, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.box3d_out(box, maxdd)); - - public static IntPtr gbox_make(bool hasz, bool hasm, bool geodetic, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, double mmin, double mmax) - => SafeExecution(() => MEOSExternalFunctions.gbox_make(hasz, hasm, geodetic, xmin, xmax, ymin, ymax, zmin, zmax, mmin, mmax)); - - public static IntPtr gbox_in(string str) - => SafeExecution(() => MEOSExternalFunctions.gbox_in(str)); - - public static string gbox_out(IntPtr box, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.gbox_out(box, maxdd)); - - public static IntPtr geo_as_ewkb(IntPtr gs, string endian, IntPtr size) - => SafeExecution(() => MEOSExternalFunctions.geo_as_ewkb(gs, endian, size)); - - public static string geo_as_ewkt(IntPtr gs, int precision) - => SafeExecution(() => MEOSExternalFunctions.geo_as_ewkt(gs, precision)); - - public static string geo_as_geojson(IntPtr gs, int option, int precision, string srs) - => SafeExecution(() => MEOSExternalFunctions.geo_as_geojson(gs, option, precision, srs)); - - public static string geo_as_hexewkb(IntPtr gs, string endian) - => SafeExecution(() => MEOSExternalFunctions.geo_as_hexewkb(gs, endian)); - - public static string geo_as_text(IntPtr gs, int precision) - => SafeExecution(() => MEOSExternalFunctions.geo_as_text(gs, precision)); - - public static IntPtr geo_from_ewkb(IntPtr wkb, ulong wkb_size, int srid) - => SafeExecution(() => MEOSExternalFunctions.geo_from_ewkb(wkb, wkb_size, srid)); - - public static IntPtr geo_from_geojson(string geojson) - => SafeExecution(() => MEOSExternalFunctions.geo_from_geojson(geojson)); - - public static IntPtr geo_from_text(string wkt, int srid) - => SafeExecution(() => MEOSExternalFunctions.geo_from_text(wkt, srid)); - - public static string geo_out(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_out(gs)); - - public static IntPtr geog_from_hexewkb(string wkt) - => SafeExecution(() => MEOSExternalFunctions.geog_from_hexewkb(wkt)); - - public static IntPtr geog_in(string str, int typmod) - => SafeExecution(() => MEOSExternalFunctions.geog_in(str, typmod)); - - public static IntPtr geom_from_hexewkb(string wkt) - => SafeExecution(() => MEOSExternalFunctions.geom_from_hexewkb(wkt)); - - public static IntPtr geom_in(string str, int typmod) - => SafeExecution(() => MEOSExternalFunctions.geom_in(str, typmod)); - - public static IntPtr geo_copy(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_copy(gs)); - - public static IntPtr geogpoint_make2d(int srid, double x, double y) - => SafeExecution(() => MEOSExternalFunctions.geogpoint_make2d(srid, x, y)); - - public static IntPtr geogpoint_make3dz(int srid, double x, double y, double z) - => SafeExecution(() => MEOSExternalFunctions.geogpoint_make3dz(srid, x, y, z)); - - public static IntPtr geompoint_make2d(int srid, double x, double y) - => SafeExecution(() => MEOSExternalFunctions.geompoint_make2d(srid, x, y)); - - public static IntPtr geompoint_make3dz(int srid, double x, double y, double z) - => SafeExecution(() => MEOSExternalFunctions.geompoint_make3dz(srid, x, y, z)); - - public static IntPtr geom_to_geog(IntPtr geom) - => SafeExecution(() => MEOSExternalFunctions.geom_to_geog(geom)); - - public static IntPtr geog_to_geom(IntPtr geog) - => SafeExecution(() => MEOSExternalFunctions.geog_to_geom(geog)); - - public static bool geo_is_empty(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_is_empty(gs)); - - public static bool geo_is_unitary(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_is_unitary(gs)); - - public static string geo_typename(int type) - => SafeExecution(() => MEOSExternalFunctions.geo_typename(type)); - - public static double geog_area(IntPtr gs, bool use_spheroid) - => SafeExecution(() => MEOSExternalFunctions.geog_area(gs, use_spheroid)); - - public static IntPtr geog_centroid(IntPtr gs, bool use_spheroid) - => SafeExecution(() => MEOSExternalFunctions.geog_centroid(gs, use_spheroid)); - - public static double geog_length(IntPtr gs, bool use_spheroid) - => SafeExecution(() => MEOSExternalFunctions.geog_length(gs, use_spheroid)); - - public static double geog_perimeter(IntPtr gs, bool use_spheroid) - => SafeExecution(() => MEOSExternalFunctions.geog_perimeter(gs, use_spheroid)); - - public static bool geom_azimuth(IntPtr gs1, IntPtr gs2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.geom_azimuth(gs1, gs2, result)); - - public static double geom_length(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geom_length(gs)); - - public static double geom_perimeter(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geom_perimeter(gs)); - - public static int line_numpoints(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.line_numpoints(gs)); - - public static IntPtr line_point_n(IntPtr geom, int n) - => SafeExecution(() => MEOSExternalFunctions.line_point_n(geom, n)); - - public static IntPtr geo_reverse(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_reverse(gs)); - - public static IntPtr geo_round(IntPtr gs, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.geo_round(gs, maxdd)); - - public static IntPtr geo_set_srid(IntPtr gs, int srid) - => SafeExecution(() => MEOSExternalFunctions.geo_set_srid(gs, srid)); - - public static int geo_srid(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_srid(gs)); - - public static IntPtr geo_transform(IntPtr geom, int srid_to) - => SafeExecution(() => MEOSExternalFunctions.geo_transform(geom, srid_to)); - - public static IntPtr geo_transform_pipeline(IntPtr gs, string pipeline, int srid_to, bool is_forward) - => SafeExecution(() => MEOSExternalFunctions.geo_transform_pipeline(gs, pipeline, srid_to, is_forward)); - - public static IntPtr geo_collect_garray(IntPtr gsarr, int count) - => SafeExecution(() => MEOSExternalFunctions.geo_collect_garray(gsarr, count)); - - public static IntPtr geo_makeline_garray(IntPtr gsarr, int count) - => SafeExecution(() => MEOSExternalFunctions.geo_makeline_garray(gsarr, count)); - - public static int geo_num_points(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_num_points(gs)); - - public static int geo_num_geos(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_num_geos(gs)); - - public static IntPtr geo_geo_n(IntPtr geom, int n) - => SafeExecution(() => MEOSExternalFunctions.geo_geo_n(geom, n)); - - public static IntPtr[] geo_pointarr(IntPtr gs) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_pointarr(gs, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr geo_points(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_points(gs)); - - public static IntPtr geom_array_union(IntPtr gsarr, int count) - => SafeExecution(() => MEOSExternalFunctions.geom_array_union(gsarr, count)); - - public static IntPtr geom_boundary(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geom_boundary(gs)); - - public static IntPtr geom_buffer(IntPtr gs, double size, string @params) - => SafeExecution(() => MEOSExternalFunctions.geom_buffer(gs, size, @params)); - - public static IntPtr geom_centroid(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geom_centroid(gs)); - - public static IntPtr geom_convex_hull(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geom_convex_hull(gs)); - - public static IntPtr geom_difference2d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_difference2d(gs1, gs2)); - - public static IntPtr geom_intersection2d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_intersection2d(gs1, gs2)); - - public static IntPtr geom_intersection2d_coll(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_intersection2d_coll(gs1, gs2)); - - public static IntPtr geom_min_bounding_radius(IntPtr geom, IntPtr radius) - => SafeExecution(() => MEOSExternalFunctions.geom_min_bounding_radius(geom, radius)); - - public static IntPtr geom_shortestline2d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_shortestline2d(gs1, gs2)); - - public static IntPtr geom_shortestline3d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_shortestline3d(gs1, gs2)); - - public static IntPtr geom_unary_union(IntPtr gs, double prec) - => SafeExecution(() => MEOSExternalFunctions.geom_unary_union(gs, prec)); - - public static IntPtr line_interpolate_point(IntPtr gs, double distance_fraction, bool repeat) - => SafeExecution(() => MEOSExternalFunctions.line_interpolate_point(gs, distance_fraction, repeat)); - - public static double line_locate_point(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.line_locate_point(gs1, gs2)); - - public static IntPtr line_substring(IntPtr gs, double from, double to) - => SafeExecution(() => MEOSExternalFunctions.line_substring(gs, from, to)); - - public static bool geog_dwithin(IntPtr g1, IntPtr g2, double tolerance, bool use_spheroid) - => SafeExecution(() => MEOSExternalFunctions.geog_dwithin(g1, g2, tolerance, use_spheroid)); - - public static bool geog_intersects(IntPtr gs1, IntPtr gs2, bool use_spheroid) - => SafeExecution(() => MEOSExternalFunctions.geog_intersects(gs1, gs2, use_spheroid)); - - public static bool geom_contains(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_contains(gs1, gs2)); - - public static bool geom_covers(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_covers(gs1, gs2)); - - public static bool geom_disjoint2d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_disjoint2d(gs1, gs2)); - - public static bool geom_dwithin(IntPtr gs1, IntPtr gs2, double tolerance) - => SafeExecution(() => MEOSExternalFunctions.geom_dwithin(gs1, gs2, tolerance)); - - public static bool geom_dwithin2d(IntPtr gs1, IntPtr gs2, double tolerance) - => SafeExecution(() => MEOSExternalFunctions.geom_dwithin2d(gs1, gs2, tolerance)); - - public static bool geom_dwithin3d(IntPtr gs1, IntPtr gs2, double tolerance) - => SafeExecution(() => MEOSExternalFunctions.geom_dwithin3d(gs1, gs2, tolerance)); - - public static bool geom_intersects(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_intersects(gs1, gs2)); - - public static bool geom_intersects2d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_intersects2d(gs1, gs2)); - - public static bool geom_intersects3d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_intersects3d(gs1, gs2)); - - public static bool geom_relate_pattern(IntPtr gs1, IntPtr gs2, string patt) - => SafeExecution(() => MEOSExternalFunctions.geom_relate_pattern(gs1, gs2, patt)); - - public static bool geom_touches(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_touches(gs1, gs2)); - - public static IntPtr[] geo_stboxes(IntPtr gs) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_stboxes(gs, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] geo_split_each_n_stboxes(IntPtr gs, int elem_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_split_each_n_stboxes(gs, elem_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] geo_split_n_stboxes(IntPtr gs, int box_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_split_n_stboxes(gs, box_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double geog_distance(IntPtr g1, IntPtr g2) - => SafeExecution(() => MEOSExternalFunctions.geog_distance(g1, g2)); - - public static double geom_distance2d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_distance2d(gs1, gs2)); - - public static double geom_distance3d(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geom_distance3d(gs1, gs2)); - - public static int geo_equals(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geo_equals(gs1, gs2)); - - public static bool geo_same(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geo_same(gs1, gs2)); - - public static IntPtr geogset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.geogset_in(str)); - - public static IntPtr geomset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.geomset_in(str)); - - public static string spatialset_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.spatialset_out(s, maxdd)); - - public static string spatialset_as_text(IntPtr set, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.spatialset_as_text(set, maxdd)); - - public static string spatialset_as_ewkt(IntPtr set, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.spatialset_as_ewkt(set, maxdd)); - - public static IntPtr geoset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.geoset_make(values, count)); - - public static IntPtr geo_to_set(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_to_set(gs)); - - public static IntPtr geoset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.geoset_end_value(s)); - - public static IntPtr geoset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.geoset_start_value(s)); - - public static bool geoset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.geoset_value_n(s, n, result)); - - public static IntPtr[] geoset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geoset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool contained_geo_set(IntPtr gs, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_geo_set(gs, s)); - - public static bool contains_set_geo(IntPtr s, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.contains_set_geo(s, gs)); - - public static IntPtr geo_union_transfn(IntPtr state, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_union_transfn(state, gs)); - - public static IntPtr intersection_geo_set(IntPtr gs, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_geo_set(gs, s)); - - public static IntPtr intersection_set_geo(IntPtr s, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_geo(s, gs)); - - public static IntPtr minus_geo_set(IntPtr gs, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_geo_set(gs, s)); - - public static IntPtr minus_set_geo(IntPtr s, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.minus_set_geo(s, gs)); - - public static IntPtr union_geo_set(IntPtr gs, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_geo_set(gs, s)); - - public static IntPtr union_set_geo(IntPtr s, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.union_set_geo(s, gs)); - - public static IntPtr spatialset_set_srid(IntPtr s, int srid) - => SafeExecution(() => MEOSExternalFunctions.spatialset_set_srid(s, srid)); - - public static int spatialset_srid(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.spatialset_srid(s)); - - public static IntPtr spatialset_transform(IntPtr s, int srid) - => SafeExecution(() => MEOSExternalFunctions.spatialset_transform(s, srid)); - - public static IntPtr spatialset_transform_pipeline(IntPtr s, string pipelinestr, int srid, bool is_forward) - => SafeExecution(() => MEOSExternalFunctions.spatialset_transform_pipeline(s, pipelinestr, srid, is_forward)); - - public static string stbox_as_hexwkb(IntPtr box, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.stbox_as_hexwkb(box, variant, size_out)); - - public static IntPtr stbox_as_wkb(IntPtr box, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.stbox_as_wkb(box, variant, size_out)); - - public static IntPtr stbox_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.stbox_from_hexwkb(hexwkb)); - - public static IntPtr stbox_from_wkb(IntPtr wkb, ulong size) - => SafeExecution(() => MEOSExternalFunctions.stbox_from_wkb(wkb, size)); - - public static IntPtr stbox_in(string str) - => SafeExecution(() => MEOSExternalFunctions.stbox_in(str)); - - public static string stbox_out(IntPtr box, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.stbox_out(box, maxdd)); - - public static IntPtr geo_timestamptz_to_stbox(IntPtr gs, long t) - => SafeExecution(() => MEOSExternalFunctions.geo_timestamptz_to_stbox(gs, t)); - - public static IntPtr geo_tstzspan_to_stbox(IntPtr gs, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.geo_tstzspan_to_stbox(gs, s)); - - public static IntPtr stbox_copy(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_copy(box)); - - public static IntPtr stbox_make(bool hasx, bool hasz, bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.stbox_make(hasx, hasz, geodetic, srid, xmin, xmax, ymin, ymax, zmin, zmax, s)); - - public static IntPtr geo_to_stbox(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_to_stbox(gs)); - - public static IntPtr spatialset_to_stbox(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.spatialset_to_stbox(s)); - - public static IntPtr stbox_to_box3d(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_to_box3d(box)); - - public static IntPtr stbox_to_gbox(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_to_gbox(box)); - - public static IntPtr stbox_to_geo(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_to_geo(box)); - - public static IntPtr stbox_to_tstzspan(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_to_tstzspan(box)); - - public static IntPtr timestamptz_to_stbox(long t) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_to_stbox(t)); - - public static IntPtr tstzset_to_stbox(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzset_to_stbox(s)); - - public static IntPtr tstzspan_to_stbox(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_to_stbox(s)); - - public static IntPtr tstzspanset_to_stbox(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_to_stbox(ss)); - - public static double stbox_area(IntPtr box, bool spheroid) - => SafeExecution(() => MEOSExternalFunctions.stbox_area(box, spheroid)); - - public static int stbox_hash(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_hash(box)); - - public static IntPtr stbox_hash_extended(IntPtr box, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.stbox_hash_extended(box, seed)); - - public static bool stbox_hast(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_hast(box)); - - public static bool stbox_hasx(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_hasx(box)); - - public static bool stbox_hasz(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_hasz(box)); - - public static bool stbox_isgeodetic(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_isgeodetic(box)); - - public static double stbox_perimeter(IntPtr box, bool spheroid) - => SafeExecution(() => MEOSExternalFunctions.stbox_perimeter(box, spheroid)); - - public static bool stbox_tmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_tmax(box, result)); - - public static bool stbox_tmax_inc(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_tmax_inc(box, result)); - - public static bool stbox_tmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_tmin(box, result)); - - public static bool stbox_tmin_inc(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_tmin_inc(box, result)); - - public static double stbox_volume(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_volume(box)); - - public static bool stbox_xmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_xmax(box, result)); - - public static bool stbox_xmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_xmin(box, result)); - - public static bool stbox_ymax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_ymax(box, result)); - - public static bool stbox_ymin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_ymin(box, result)); - - public static bool stbox_zmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_zmax(box, result)); - - public static bool stbox_zmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_zmin(box, result)); - - public static IntPtr stbox_expand_space(IntPtr box, double d) - => SafeExecution(() => MEOSExternalFunctions.stbox_expand_space(box, d)); - - public static IntPtr stbox_expand_time(IntPtr box, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.stbox_expand_time(box, interv)); - - public static IntPtr stbox_get_space(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_get_space(box)); - - public static IntPtr[] stbox_quad_split(IntPtr box) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.stbox_quad_split(box, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr stbox_round(IntPtr box, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.stbox_round(box, maxdd)); - - public static IntPtr stbox_shift_scale_time(IntPtr box, IntPtr shift, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.stbox_shift_scale_time(box, shift, duration)); - - public static IntPtr stboxarr_round(IntPtr boxarr, int count, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.stboxarr_round(boxarr, count, maxdd)); - - public static IntPtr stbox_set_srid(IntPtr box, int srid) - => SafeExecution(() => MEOSExternalFunctions.stbox_set_srid(box, srid)); - - public static int stbox_srid(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_srid(box)); - - public static IntPtr stbox_transform(IntPtr box, int srid) - => SafeExecution(() => MEOSExternalFunctions.stbox_transform(box, srid)); - - public static IntPtr stbox_transform_pipeline(IntPtr box, string pipelinestr, int srid, bool is_forward) - => SafeExecution(() => MEOSExternalFunctions.stbox_transform_pipeline(box, pipelinestr, srid, is_forward)); - - public static bool adjacent_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.adjacent_stbox_stbox(box1, box2)); - - public static bool contained_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.contained_stbox_stbox(box1, box2)); - - public static bool contains_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.contains_stbox_stbox(box1, box2)); - - public static bool overlaps_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_stbox_stbox(box1, box2)); - - public static bool same_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.same_stbox_stbox(box1, box2)); - - public static bool above_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.above_stbox_stbox(box1, box2)); - - public static bool after_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.after_stbox_stbox(box1, box2)); - - public static bool back_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.back_stbox_stbox(box1, box2)); - - public static bool before_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.before_stbox_stbox(box1, box2)); - - public static bool below_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.below_stbox_stbox(box1, box2)); - - public static bool front_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.front_stbox_stbox(box1, box2)); - - public static bool left_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.left_stbox_stbox(box1, box2)); - - public static bool overabove_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overabove_stbox_stbox(box1, box2)); - - public static bool overafter_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overafter_stbox_stbox(box1, box2)); - - public static bool overback_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overback_stbox_stbox(box1, box2)); - - public static bool overbefore_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overbefore_stbox_stbox(box1, box2)); - - public static bool overbelow_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overbelow_stbox_stbox(box1, box2)); - - public static bool overfront_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overfront_stbox_stbox(box1, box2)); - - public static bool overleft_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overleft_stbox_stbox(box1, box2)); - - public static bool overright_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overright_stbox_stbox(box1, box2)); - - public static bool right_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.right_stbox_stbox(box1, box2)); - - public static IntPtr union_stbox_stbox(IntPtr box1, IntPtr box2, bool strict) - => SafeExecution(() => MEOSExternalFunctions.union_stbox_stbox(box1, box2, strict)); - - public static IntPtr intersection_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.intersection_stbox_stbox(box1, box2)); - - public static int stbox_cmp(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_cmp(box1, box2)); - - public static bool stbox_eq(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_eq(box1, box2)); - - public static bool stbox_ge(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_ge(box1, box2)); - - public static bool stbox_gt(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_gt(box1, box2)); - - public static bool stbox_le(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_le(box1, box2)); - - public static bool stbox_lt(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_lt(box1, box2)); - - public static bool stbox_ne(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_ne(box1, box2)); - - public static string tspatial_out(IntPtr temp, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tspatial_out(temp, maxdd)); - - public static IntPtr tgeogpoint_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeogpoint_from_mfjson(str)); - - public static IntPtr tgeogpoint_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeogpoint_in(str)); - - public static IntPtr tgeography_from_mfjson(string mfjson) - => SafeExecution(() => MEOSExternalFunctions.tgeography_from_mfjson(mfjson)); - - public static IntPtr tgeography_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeography_in(str)); - - public static IntPtr tgeometry_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeometry_from_mfjson(str)); - - public static IntPtr tgeometry_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeometry_in(str)); - - public static IntPtr tgeompoint_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeompoint_from_mfjson(str)); - - public static IntPtr tgeompoint_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeompoint_in(str)); - - public static string tspatial_as_ewkt(IntPtr temp, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tspatial_as_ewkt(temp, maxdd)); - - public static string tspatial_as_text(IntPtr temp, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tspatial_as_text(temp, maxdd)); - - public static IntPtr tgeo_from_base_temp(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeo_from_base_temp(gs, temp)); - - public static IntPtr tgeoinst_make(IntPtr gs, long t) - => SafeExecution(() => MEOSExternalFunctions.tgeoinst_make(gs, t)); - - public static IntPtr tgeoseq_from_base_tstzset(IntPtr gs, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tgeoseq_from_base_tstzset(gs, s)); - - public static IntPtr tgeoseq_from_base_tstzspan(IntPtr gs, IntPtr s, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeoseq_from_base_tstzspan(gs, s, interp)); - - public static IntPtr tgeoseqset_from_base_tstzspanset(IntPtr gs, IntPtr ss, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeoseqset_from_base_tstzspanset(gs, ss, interp)); - - public static IntPtr tpoint_from_base_temp(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_from_base_temp(gs, temp)); - - public static IntPtr tpointinst_make(IntPtr gs, long t) - => SafeExecution(() => MEOSExternalFunctions.tpointinst_make(gs, t)); - - public static IntPtr tpointseq_from_base_tstzset(IntPtr gs, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_from_base_tstzset(gs, s)); - - public static IntPtr tpointseq_from_base_tstzspan(IntPtr gs, IntPtr s, int interp) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_from_base_tstzspan(gs, s, interp)); - - public static IntPtr tpointseq_make_coords(IntPtr xcoords, IntPtr ycoords, IntPtr zcoords, IntPtr times, int count, int srid, bool geodetic, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_make_coords(xcoords, ycoords, zcoords, times, count, srid, geodetic, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr tpointseqset_from_base_tstzspanset(IntPtr gs, IntPtr ss, int interp) - => SafeExecution(() => MEOSExternalFunctions.tpointseqset_from_base_tstzspanset(gs, ss, interp)); - - public static IntPtr box3d_to_stbox(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.box3d_to_stbox(box)); - - public static IntPtr gbox_to_stbox(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.gbox_to_stbox(box)); - - public static IntPtr geomeas_to_tpoint(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geomeas_to_tpoint(gs)); - - public static IntPtr tgeogpoint_to_tgeography(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeogpoint_to_tgeography(temp)); - - public static IntPtr tgeography_to_tgeogpoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeography_to_tgeogpoint(temp)); - - public static IntPtr tgeography_to_tgeometry(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeography_to_tgeometry(temp)); - - public static IntPtr tgeometry_to_tgeography(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeometry_to_tgeography(temp)); - - public static IntPtr tgeometry_to_tgeompoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeometry_to_tgeompoint(temp)); - - public static IntPtr tgeompoint_to_tgeometry(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeompoint_to_tgeometry(temp)); - - public static IntPtr tpoint_as_mvtgeom(IntPtr temp, IntPtr bounds, int extent, int buffer, bool clip_geom) - => SafeExecution(() => MEOSExternalFunctions.tpoint_as_mvtgeom(temp, bounds, extent, buffer, clip_geom)); - - public static bool tpoint_tfloat_to_geomeas(IntPtr tpoint, IntPtr measure, bool segmentize, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpoint_tfloat_to_geomeas(tpoint, measure, segmentize, result)); - - public static IntPtr tspatial_to_stbox(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tspatial_to_stbox(temp)); - - public static bool bearing_point_point(IntPtr gs1, IntPtr gs2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.bearing_point_point(gs1, gs2, result)); - - public static IntPtr bearing_tpoint_point(IntPtr temp, IntPtr gs, bool invert) - => SafeExecution(() => MEOSExternalFunctions.bearing_tpoint_point(temp, gs, invert)); - - public static IntPtr bearing_tpoint_tpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.bearing_tpoint_tpoint(temp1, temp2)); - - public static IntPtr tgeo_centroid(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeo_centroid(temp)); - - public static IntPtr tgeo_convex_hull(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeo_convex_hull(temp)); - - public static IntPtr tgeo_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeo_end_value(temp)); - - public static IntPtr tgeo_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeo_start_value(temp)); - - public static IntPtr tgeo_traversed_area(IntPtr temp, bool unary_union) - => SafeExecution(() => MEOSExternalFunctions.tgeo_traversed_area(temp, unary_union)); - - public static bool tgeo_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tgeo_value_at_timestamptz(temp, t, strict, result)); - - public static bool tgeo_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tgeo_value_n(temp, n, result)); - - public static IntPtr[] tgeo_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeo_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tpoint_angular_difference(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_angular_difference(temp)); - - public static IntPtr tpoint_azimuth(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_azimuth(temp)); - - public static IntPtr tpoint_cumulative_length(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_cumulative_length(temp)); - - public static bool tpoint_direction(IntPtr temp, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpoint_direction(temp, result)); - - public static IntPtr tpoint_get_x(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_get_x(temp)); - - public static IntPtr tpoint_get_y(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_get_y(temp)); - - public static IntPtr tpoint_get_z(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_get_z(temp)); - - public static bool tpoint_is_simple(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_is_simple(temp)); - - public static double tpoint_length(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_length(temp)); - - public static IntPtr tpoint_speed(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_speed(temp)); - - public static IntPtr tpoint_trajectory(IntPtr temp, bool unary_union) - => SafeExecution(() => MEOSExternalFunctions.tpoint_trajectory(temp, unary_union)); - - public static IntPtr tpoint_twcentroid(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_twcentroid(temp)); - - public static IntPtr tgeo_affine(IntPtr temp, IntPtr a) - => SafeExecution(() => MEOSExternalFunctions.tgeo_affine(temp, a)); - - public static IntPtr tgeo_scale(IntPtr temp, IntPtr scale, IntPtr sorigin) - => SafeExecution(() => MEOSExternalFunctions.tgeo_scale(temp, scale, sorigin)); - - public static IntPtr[] tpoint_make_simple(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tpoint_make_simple(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int tspatial_srid(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tspatial_srid(temp)); - - public static IntPtr tspatial_set_srid(IntPtr temp, int srid) - => SafeExecution(() => MEOSExternalFunctions.tspatial_set_srid(temp, srid)); - - public static IntPtr tspatial_transform(IntPtr temp, int srid) - => SafeExecution(() => MEOSExternalFunctions.tspatial_transform(temp, srid)); - - public static IntPtr tspatial_transform_pipeline(IntPtr temp, string pipelinestr, int srid, bool is_forward) - => SafeExecution(() => MEOSExternalFunctions.tspatial_transform_pipeline(temp, pipelinestr, srid, is_forward)); - - public static IntPtr tgeo_at_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tgeo_at_geom(temp, gs)); - - public static IntPtr tgeo_at_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tgeo_at_stbox(temp, box, border_inc)); - - public static IntPtr tgeo_at_value(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tgeo_at_value(temp, gs)); - - public static IntPtr tgeo_minus_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tgeo_minus_geom(temp, gs)); - - public static IntPtr tgeo_minus_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tgeo_minus_stbox(temp, box, border_inc)); - - public static IntPtr tgeo_minus_value(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tgeo_minus_value(temp, gs)); - - public static IntPtr tpoint_at_elevation(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tpoint_at_elevation(temp, s)); - - public static IntPtr tpoint_at_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tpoint_at_geom(temp, gs)); - - public static IntPtr tpoint_at_value(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tpoint_at_value(temp, gs)); - - public static IntPtr tpoint_minus_elevation(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tpoint_minus_elevation(temp, s)); - - public static IntPtr tpoint_minus_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tpoint_minus_geom(temp, gs)); - - public static IntPtr tpoint_minus_value(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tpoint_minus_value(temp, gs)); - - public static int always_eq_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_geo_tgeo(gs, temp)); - - public static int always_eq_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tgeo_geo(temp, gs)); - - public static int always_eq_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tgeo_tgeo(temp1, temp2)); - - public static int always_ne_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_geo_tgeo(gs, temp)); - - public static int always_ne_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tgeo_geo(temp, gs)); - - public static int always_ne_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tgeo_tgeo(temp1, temp2)); - - public static int ever_eq_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_geo_tgeo(gs, temp)); - - public static int ever_eq_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tgeo_geo(temp, gs)); - - public static int ever_eq_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tgeo_tgeo(temp1, temp2)); - - public static int ever_ne_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_geo_tgeo(gs, temp)); - - public static int ever_ne_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tgeo_geo(temp, gs)); - - public static int ever_ne_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tgeo_tgeo(temp1, temp2)); - - public static IntPtr teq_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_geo_tgeo(gs, temp)); - - public static IntPtr teq_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.teq_tgeo_geo(temp, gs)); - - public static IntPtr tne_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_geo_tgeo(gs, temp)); - - public static IntPtr tne_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tne_tgeo_geo(temp, gs)); - - public static IntPtr[] tgeo_stboxes(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeo_stboxes(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tgeo_space_boxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, bool bitmatrix, bool border_inc) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeo_space_boxes(temp, xsize, ysize, zsize, sorigin, bitmatrix, border_inc, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tgeo_space_time_boxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool bitmatrix, bool border_inc) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeo_space_time_boxes(temp, xsize, ysize, zsize, duration, sorigin, torigin, bitmatrix, border_inc, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tgeo_split_each_n_stboxes(IntPtr temp, int elem_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeo_split_each_n_stboxes(temp, elem_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tgeo_split_n_stboxes(IntPtr temp, int box_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeo_split_n_stboxes(temp, box_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool adjacent_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.adjacent_stbox_tspatial(box, temp)); - - public static bool adjacent_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tspatial_stbox(temp, box)); - - public static bool adjacent_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tspatial_tspatial(temp1, temp2)); - - public static bool contained_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.contained_stbox_tspatial(box, temp)); - - public static bool contained_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.contained_tspatial_stbox(temp, box)); - - public static bool contained_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contained_tspatial_tspatial(temp1, temp2)); - - public static bool contains_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.contains_stbox_tspatial(box, temp)); - - public static bool contains_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.contains_tspatial_stbox(temp, box)); - - public static bool contains_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contains_tspatial_tspatial(temp1, temp2)); - - public static bool overlaps_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overlaps_stbox_tspatial(box, temp)); - - public static bool overlaps_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tspatial_stbox(temp, box)); - - public static bool overlaps_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tspatial_tspatial(temp1, temp2)); - - public static bool same_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.same_stbox_tspatial(box, temp)); - - public static bool same_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.same_tspatial_stbox(temp, box)); - - public static bool same_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.same_tspatial_tspatial(temp1, temp2)); - - public static bool above_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.above_stbox_tspatial(box, temp)); - - public static bool above_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.above_tspatial_stbox(temp, box)); - - public static bool above_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.above_tspatial_tspatial(temp1, temp2)); - - public static bool after_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.after_stbox_tspatial(box, temp)); - - public static bool after_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.after_tspatial_stbox(temp, box)); - - public static bool after_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.after_tspatial_tspatial(temp1, temp2)); - - public static bool back_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.back_stbox_tspatial(box, temp)); - - public static bool back_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.back_tspatial_stbox(temp, box)); - - public static bool back_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.back_tspatial_tspatial(temp1, temp2)); - - public static bool before_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.before_stbox_tspatial(box, temp)); - - public static bool before_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.before_tspatial_stbox(temp, box)); - - public static bool before_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.before_tspatial_tspatial(temp1, temp2)); - - public static bool below_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.below_stbox_tspatial(box, temp)); - - public static bool below_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.below_tspatial_stbox(temp, box)); - - public static bool below_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.below_tspatial_tspatial(temp1, temp2)); - - public static bool front_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.front_stbox_tspatial(box, temp)); - - public static bool front_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.front_tspatial_stbox(temp, box)); - - public static bool front_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.front_tspatial_tspatial(temp1, temp2)); - - public static bool left_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.left_stbox_tspatial(box, temp)); - - public static bool left_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.left_tspatial_stbox(temp, box)); - - public static bool left_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.left_tspatial_tspatial(temp1, temp2)); - - public static bool overabove_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overabove_stbox_tspatial(box, temp)); - - public static bool overabove_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overabove_tspatial_stbox(temp, box)); - - public static bool overabove_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overabove_tspatial_tspatial(temp1, temp2)); - - public static bool overafter_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overafter_stbox_tspatial(box, temp)); - - public static bool overafter_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overafter_tspatial_stbox(temp, box)); - - public static bool overafter_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overafter_tspatial_tspatial(temp1, temp2)); - - public static bool overback_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overback_stbox_tspatial(box, temp)); - - public static bool overback_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overback_tspatial_stbox(temp, box)); - - public static bool overback_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overback_tspatial_tspatial(temp1, temp2)); - - public static bool overbefore_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overbefore_stbox_tspatial(box, temp)); - - public static bool overbefore_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overbefore_tspatial_stbox(temp, box)); - - public static bool overbefore_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overbefore_tspatial_tspatial(temp1, temp2)); - - public static bool overbelow_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overbelow_stbox_tspatial(box, temp)); - - public static bool overbelow_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overbelow_tspatial_stbox(temp, box)); - - public static bool overbelow_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overbelow_tspatial_tspatial(temp1, temp2)); - - public static bool overfront_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overfront_stbox_tspatial(box, temp)); - - public static bool overfront_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overfront_tspatial_stbox(temp, box)); - - public static bool overfront_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overfront_tspatial_tspatial(temp1, temp2)); - - public static bool overleft_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overleft_stbox_tspatial(box, temp)); - - public static bool overleft_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overleft_tspatial_stbox(temp, box)); - - public static bool overleft_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overleft_tspatial_tspatial(temp1, temp2)); - - public static bool overright_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.overright_stbox_tspatial(box, temp)); - - public static bool overright_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.overright_tspatial_stbox(temp, box)); - - public static bool overright_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overright_tspatial_tspatial(temp1, temp2)); - - public static bool right_stbox_tspatial(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.right_stbox_tspatial(box, temp)); - - public static bool right_tspatial_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.right_tspatial_stbox(temp, box)); - - public static bool right_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.right_tspatial_tspatial(temp1, temp2)); - - public static int acontains_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.acontains_geo_tgeo(gs, temp)); - - public static int acontains_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.acontains_tgeo_geo(temp, gs)); - - public static int acontains_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.acontains_tgeo_tgeo(temp1, temp2)); - - public static int acovers_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.acovers_geo_tgeo(gs, temp)); - - public static int acovers_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.acovers_tgeo_geo(temp, gs)); - - public static int acovers_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.acovers_tgeo_tgeo(temp1, temp2)); - - public static int adisjoint_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.adisjoint_geo_tgeo(gs, temp)); - - public static int adisjoint_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.adisjoint_tgeo_geo(temp, gs)); - - public static int adisjoint_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.adisjoint_tgeo_tgeo(temp1, temp2)); - - public static int adwithin_geo_tgeo(IntPtr gs, IntPtr temp, double dist) - => SafeExecution(() => MEOSExternalFunctions.adwithin_geo_tgeo(gs, temp, dist)); - - public static int adwithin_tgeo_geo(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.adwithin_tgeo_geo(temp, gs, dist)); - - public static int adwithin_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double dist) - => SafeExecution(() => MEOSExternalFunctions.adwithin_tgeo_tgeo(temp1, temp2, dist)); - - public static int aintersects_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.aintersects_geo_tgeo(gs, temp)); - - public static int aintersects_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.aintersects_tgeo_geo(temp, gs)); - - public static int aintersects_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.aintersects_tgeo_tgeo(temp1, temp2)); - - public static int atouches_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.atouches_geo_tgeo(gs, temp)); - - public static int atouches_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.atouches_tgeo_geo(temp, gs)); - - public static int atouches_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.atouches_tgeo_tgeo(temp1, temp2)); - - public static int atouches_tpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.atouches_tpoint_geo(temp, gs)); - - public static int econtains_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.econtains_geo_tgeo(gs, temp)); - - public static int econtains_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.econtains_tgeo_geo(temp, gs)); - - public static int econtains_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.econtains_tgeo_tgeo(temp1, temp2)); - - public static int ecovers_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ecovers_geo_tgeo(gs, temp)); - - public static int ecovers_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ecovers_tgeo_geo(temp, gs)); - - public static int ecovers_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ecovers_tgeo_tgeo(temp1, temp2)); - - public static int edisjoint_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.edisjoint_geo_tgeo(gs, temp)); - - public static int edisjoint_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.edisjoint_tgeo_geo(temp, gs)); - - public static int edisjoint_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.edisjoint_tgeo_tgeo(temp1, temp2)); - - public static int edwithin_geo_tgeo(IntPtr gs, IntPtr temp, double dist) - => SafeExecution(() => MEOSExternalFunctions.edwithin_geo_tgeo(gs, temp, dist)); - - public static int edwithin_tgeo_geo(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.edwithin_tgeo_geo(temp, gs, dist)); - - public static int edwithin_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double dist) - => SafeExecution(() => MEOSExternalFunctions.edwithin_tgeo_tgeo(temp1, temp2, dist)); - - public static int eintersects_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.eintersects_geo_tgeo(gs, temp)); - - public static int eintersects_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.eintersects_tgeo_geo(temp, gs)); - - public static int eintersects_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.eintersects_tgeo_tgeo(temp1, temp2)); - - public static int etouches_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.etouches_geo_tgeo(gs, temp)); - - public static int etouches_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.etouches_tgeo_geo(temp, gs)); - - public static int etouches_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.etouches_tgeo_tgeo(temp1, temp2)); - - public static int etouches_tpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.etouches_tpoint_geo(temp, gs)); - - public static IntPtr tcontains_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcontains_geo_tgeo(gs, temp)); - - public static IntPtr tcontains_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tcontains_tgeo_geo(temp, gs)); - - public static IntPtr tcontains_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tcontains_tgeo_tgeo(temp1, temp2)); - - public static IntPtr tcovers_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcovers_geo_tgeo(gs, temp)); - - public static IntPtr tcovers_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tcovers_tgeo_geo(temp, gs)); - - public static IntPtr tcovers_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tcovers_tgeo_tgeo(temp1, temp2)); - - public static IntPtr tdisjoint_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tdisjoint_geo_tgeo(gs, temp)); - - public static IntPtr tdisjoint_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tdisjoint_tgeo_geo(temp, gs)); - - public static IntPtr tdisjoint_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdisjoint_tgeo_tgeo(temp1, temp2)); - - public static IntPtr tdwithin_geo_tgeo(IntPtr gs, IntPtr temp, double dist) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_geo_tgeo(gs, temp, dist)); - - public static IntPtr tdwithin_tgeo_geo(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_tgeo_geo(temp, gs, dist)); - - public static IntPtr tdwithin_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double dist) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_tgeo_tgeo(temp1, temp2, dist)); - - public static IntPtr tintersects_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tintersects_geo_tgeo(gs, temp)); - - public static IntPtr tintersects_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tintersects_tgeo_geo(temp, gs)); - - public static IntPtr tintersects_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tintersects_tgeo_tgeo(temp1, temp2)); - - public static IntPtr ttouches_geo_tgeo(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttouches_geo_tgeo(gs, temp)); - - public static IntPtr ttouches_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ttouches_tgeo_geo(temp, gs)); - - public static IntPtr ttouches_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ttouches_tgeo_tgeo(temp1, temp2)); - - public static int[] edwithin_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.edwithin_tgeoarr_tgeoarr(arr1, count1, arr2, count2, dist, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int[] adwithin_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.adwithin_tgeoarr_tgeoarr(arr1, count1, arr2, count2, dist, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int[] eintersects_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.eintersects_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int[] aintersects_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.aintersects_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int[] etouches_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.etouches_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int[] atouches_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.atouches_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int[] edisjoint_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.edisjoint_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int[] adisjoint_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.adisjoint_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static (int[], IntPtr[]) tdwithin_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist) - { - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - IntPtr _out_periods = Marshal.AllocHGlobal(IntPtr.Size); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tdwithin_tgeoarr_tgeoarr(arr1, count1, arr2, count2, dist, _count_count, _out_periods)); - int _n = Marshal.ReadInt32(_count_count); - int[] _resultArr = new int[_n]; - Marshal.Copy(_resultPtr, _resultArr, 0, _n); - IntPtr __out_periods_arr = Marshal.ReadIntPtr(_out_periods); - IntPtr[] __out_periods_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_periods_out[_i] = Marshal.ReadIntPtr(__out_periods_arr, _i * IntPtr.Size); } - return (_resultArr, __out_periods_out); - } - finally - { - Marshal.FreeHGlobal(_count_count); - Marshal.FreeHGlobal(_out_periods); - } - } - - public static (int[], IntPtr[]) tintersects_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - IntPtr _out_periods = Marshal.AllocHGlobal(IntPtr.Size); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tintersects_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _count_count, _out_periods)); - int _n = Marshal.ReadInt32(_count_count); - int[] _resultArr = new int[_n]; - Marshal.Copy(_resultPtr, _resultArr, 0, _n); - IntPtr __out_periods_arr = Marshal.ReadIntPtr(_out_periods); - IntPtr[] __out_periods_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_periods_out[_i] = Marshal.ReadIntPtr(__out_periods_arr, _i * IntPtr.Size); } - return (_resultArr, __out_periods_out); - } - finally - { - Marshal.FreeHGlobal(_count_count); - Marshal.FreeHGlobal(_out_periods); - } - } - - public static (int[], IntPtr[]) ttouches_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - IntPtr _out_periods = Marshal.AllocHGlobal(IntPtr.Size); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.ttouches_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _count_count, _out_periods)); - int _n = Marshal.ReadInt32(_count_count); - int[] _resultArr = new int[_n]; - Marshal.Copy(_resultPtr, _resultArr, 0, _n); - IntPtr __out_periods_arr = Marshal.ReadIntPtr(_out_periods); - IntPtr[] __out_periods_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_periods_out[_i] = Marshal.ReadIntPtr(__out_periods_arr, _i * IntPtr.Size); } - return (_resultArr, __out_periods_out); - } - finally - { - Marshal.FreeHGlobal(_count_count); - Marshal.FreeHGlobal(_out_periods); - } - } - - public static (int[], IntPtr[]) tdisjoint_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - { - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - IntPtr _out_periods = Marshal.AllocHGlobal(IntPtr.Size); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tdisjoint_tgeoarr_tgeoarr(arr1, count1, arr2, count2, _count_count, _out_periods)); - int _n = Marshal.ReadInt32(_count_count); - int[] _resultArr = new int[_n]; - Marshal.Copy(_resultPtr, _resultArr, 0, _n); - IntPtr __out_periods_arr = Marshal.ReadIntPtr(_out_periods); - IntPtr[] __out_periods_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_periods_out[_i] = Marshal.ReadIntPtr(__out_periods_arr, _i * IntPtr.Size); } - return (_resultArr, __out_periods_out); - } - finally - { - Marshal.FreeHGlobal(_count_count); - Marshal.FreeHGlobal(_out_periods); - } - } - - public static IntPtr tdistance_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tgeo_geo(temp, gs)); - - public static IntPtr tdistance_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tgeo_tgeo(temp1, temp2)); - - public static double nad_stbox_geo(IntPtr box, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nad_stbox_geo(box, gs)); - - public static double nad_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.nad_stbox_stbox(box1, box2)); - - public static double stbox_spatial_distance(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_spatial_distance(box1, box2)); - - public static double nad_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nad_tgeo_geo(temp, gs)); - - public static double nad_tgeo_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_tgeo_stbox(temp, box)); - - public static double nad_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_tgeo_tgeo(temp1, temp2)); - - public static IntPtr nai_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nai_tgeo_geo(temp, gs)); - - public static IntPtr nai_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nai_tgeo_tgeo(temp1, temp2)); - - public static IntPtr shortestline_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tgeo_geo(temp, gs)); - - public static IntPtr shortestline_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tgeo_tgeo(temp1, temp2)); - - public static double mindistance_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double threshold) - => SafeExecution(() => MEOSExternalFunctions.mindistance_tgeo_tgeo(temp1, temp2, threshold)); - - public static double mindistance_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2) - => SafeExecution(() => MEOSExternalFunctions.mindistance_tgeoarr_tgeoarr(arr1, count1, arr2, count2)); - - public static IntPtr tpoint_tcentroid_finalfn(IntPtr state) - => SafeExecution(() => MEOSExternalFunctions.tpoint_tcentroid_finalfn(state)); - - public static IntPtr tpoint_tcentroid_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpoint_tcentroid_transfn(state, temp)); - - public static IntPtr tspatial_extent_transfn(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tspatial_extent_transfn(box, temp)); - - public static IntPtr stbox_get_space_tile(IntPtr point, double xsize, double ysize, double zsize, IntPtr sorigin) - => SafeExecution(() => MEOSExternalFunctions.stbox_get_space_tile(point, xsize, ysize, zsize, sorigin)); - - public static IntPtr stbox_get_space_time_tile(IntPtr point, long t, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin) - => SafeExecution(() => MEOSExternalFunctions.stbox_get_space_time_tile(point, t, xsize, ysize, zsize, duration, sorigin, torigin)); - - public static IntPtr stbox_get_time_tile(long t, IntPtr duration, long torigin) - => SafeExecution(() => MEOSExternalFunctions.stbox_get_time_tile(t, duration, torigin)); - - public static IntPtr[] stbox_space_tiles(IntPtr bounds, double xsize, double ysize, double zsize, IntPtr sorigin, bool border_inc) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.stbox_space_tiles(bounds, xsize, ysize, zsize, sorigin, border_inc, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] stbox_space_time_tiles(IntPtr bounds, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool border_inc) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.stbox_space_time_tiles(bounds, xsize, ysize, zsize, duration, sorigin, torigin, border_inc, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] stbox_time_tiles(IntPtr bounds, IntPtr duration, long torigin, bool border_inc) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.stbox_time_tiles(bounds, duration, torigin, border_inc, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tgeo_space_split(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, bool bitmatrix, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tgeo_space_split(temp, xsize, ysize, zsize, sorigin, bitmatrix, border_inc)); - - public static IntPtr tgeo_space_time_split(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool bitmatrix, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tgeo_space_time_split(temp, xsize, ysize, zsize, duration, sorigin, torigin, bitmatrix, border_inc)); - - public static int[] geo_cluster_kmeans(IntPtr geoms, uint ngeoms, uint k) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_cluster_kmeans(geoms, ngeoms, k, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - int[] _out = new int[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] geo_cluster_dbscan(IntPtr geoms, uint ngeoms, double tolerance, int minpoints) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_cluster_dbscan(geoms, ngeoms, tolerance, minpoints, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] geo_cluster_intersecting(IntPtr geoms, uint ngeoms) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_cluster_intersecting(geoms, ngeoms, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] geo_cluster_within(IntPtr geoms, uint ngeoms, double tolerance) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_cluster_within(geoms, ngeoms, tolerance, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static string cbuffer_as_ewkt(IntPtr cb, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_as_ewkt(cb, maxdd)); - - public static string cbuffer_as_hexwkb(IntPtr cb, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_as_hexwkb(cb, variant, size_out)); - - public static string cbuffer_as_text(IntPtr cb, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_as_text(cb, maxdd)); - - public static IntPtr cbuffer_as_wkb(IntPtr cb, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_as_wkb(cb, variant, size_out)); - - public static IntPtr cbuffer_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_from_hexwkb(hexwkb)); - - public static IntPtr cbuffer_from_wkb(IntPtr wkb, ulong size) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_from_wkb(wkb, size)); - - public static IntPtr cbuffer_in(string str) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_in(str)); - - public static string cbuffer_out(IntPtr cb, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_out(cb, maxdd)); - - public static IntPtr cbuffer_copy(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_copy(cb)); - - public static IntPtr cbuffer_make(IntPtr point, double radius) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_make(point, radius)); - - public static IntPtr cbuffer_to_geom(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_to_geom(cb)); - - public static IntPtr cbuffer_to_stbox(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_to_stbox(cb)); - - public static IntPtr cbufferarr_to_geom(IntPtr cbarr, int count) - => SafeExecution(() => MEOSExternalFunctions.cbufferarr_to_geom(cbarr, count)); - - public static IntPtr geom_to_cbuffer(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geom_to_cbuffer(gs)); - - public static int cbuffer_hash(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_hash(cb)); - - public static IntPtr cbuffer_hash_extended(IntPtr cb, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_hash_extended(cb, seed)); - - public static IntPtr cbuffer_point(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_point(cb)); - - public static double cbuffer_radius(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_radius(cb)); - - public static IntPtr cbuffer_round(IntPtr cb, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_round(cb, maxdd)); - - public static IntPtr cbufferarr_round(IntPtr cbarr, int count, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.cbufferarr_round(cbarr, count, maxdd)); - - public static void cbuffer_set_srid(IntPtr cb, int srid) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_set_srid(cb, srid)); - - public static int cbuffer_srid(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_srid(cb)); - - public static IntPtr cbuffer_transform(IntPtr cb, int srid) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_transform(cb, srid)); - - public static IntPtr cbuffer_transform_pipeline(IntPtr cb, string pipelinestr, int srid, bool is_forward) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_transform_pipeline(cb, pipelinestr, srid, is_forward)); - - public static int contains_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.contains_cbuffer_cbuffer(cb1, cb2)); - - public static int covers_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.covers_cbuffer_cbuffer(cb1, cb2)); - - public static int disjoint_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.disjoint_cbuffer_cbuffer(cb1, cb2)); - - public static int dwithin_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2, double dist) - => SafeExecution(() => MEOSExternalFunctions.dwithin_cbuffer_cbuffer(cb1, cb2, dist)); - - public static int intersects_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.intersects_cbuffer_cbuffer(cb1, cb2)); - - public static int touches_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.touches_cbuffer_cbuffer(cb1, cb2)); - - public static IntPtr cbuffer_tstzspan_to_stbox(IntPtr cb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_tstzspan_to_stbox(cb, s)); - - public static IntPtr cbuffer_timestamptz_to_stbox(IntPtr cb, long t) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_timestamptz_to_stbox(cb, t)); - - public static double distance_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.distance_cbuffer_cbuffer(cb1, cb2)); - - public static double distance_cbuffer_geo(IntPtr cb, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.distance_cbuffer_geo(cb, gs)); - - public static double distance_cbuffer_stbox(IntPtr cb, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.distance_cbuffer_stbox(cb, box)); - - public static double nad_cbuffer_stbox(IntPtr cb, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_cbuffer_stbox(cb, box)); - - public static int cbuffer_cmp(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_cmp(cb1, cb2)); - - public static bool cbuffer_eq(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_eq(cb1, cb2)); - - public static bool cbuffer_ge(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_ge(cb1, cb2)); - - public static bool cbuffer_gt(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_gt(cb1, cb2)); - - public static bool cbuffer_le(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_le(cb1, cb2)); - - public static bool cbuffer_lt(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_lt(cb1, cb2)); - - public static bool cbuffer_ne(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_ne(cb1, cb2)); - - public static bool cbuffer_nsame(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_nsame(cb1, cb2)); - - public static bool cbuffer_same(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_same(cb1, cb2)); - - public static IntPtr cbufferset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.cbufferset_in(str)); - - public static string cbufferset_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.cbufferset_out(s, maxdd)); - - public static IntPtr cbufferset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.cbufferset_make(values, count)); - - public static IntPtr cbuffer_to_set(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_to_set(cb)); - - public static IntPtr cbufferset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.cbufferset_end_value(s)); - - public static IntPtr cbufferset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.cbufferset_start_value(s)); - - public static bool cbufferset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.cbufferset_value_n(s, n, result)); - - public static IntPtr[] cbufferset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.cbufferset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr cbuffer_union_transfn(IntPtr state, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_union_transfn(state, cb)); - - public static bool contained_cbuffer_set(IntPtr cb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_cbuffer_set(cb, s)); - - public static bool contains_set_cbuffer(IntPtr s, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.contains_set_cbuffer(s, cb)); - - public static IntPtr intersection_cbuffer_set(IntPtr cb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_cbuffer_set(cb, s)); - - public static IntPtr intersection_set_cbuffer(IntPtr s, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_cbuffer(s, cb)); - - public static IntPtr minus_cbuffer_set(IntPtr cb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_cbuffer_set(cb, s)); - - public static IntPtr minus_set_cbuffer(IntPtr s, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.minus_set_cbuffer(s, cb)); - - public static IntPtr union_cbuffer_set(IntPtr cb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_cbuffer_set(cb, s)); - - public static IntPtr union_set_cbuffer(IntPtr s, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.union_set_cbuffer(s, cb)); - - public static IntPtr tcbuffer_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_in(str)); - - public static IntPtr tcbuffer_from_mfjson(string mfjson) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_from_mfjson(mfjson)); - - public static IntPtr tcbufferinst_make(IntPtr cb, long t) - => SafeExecution(() => MEOSExternalFunctions.tcbufferinst_make(cb, t)); - - public static IntPtr tcbuffer_make(IntPtr tpoint, IntPtr tfloat) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_make(tpoint, tfloat)); - - public static IntPtr tcbuffer_from_base_temp(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_from_base_temp(cb, temp)); - - public static IntPtr tcbufferseq_from_base_tstzset(IntPtr cb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tcbufferseq_from_base_tstzset(cb, s)); - - public static IntPtr tcbufferseq_from_base_tstzspan(IntPtr cb, IntPtr s, int interp) - => SafeExecution(() => MEOSExternalFunctions.tcbufferseq_from_base_tstzspan(cb, s, interp)); - - public static IntPtr tcbufferseqset_from_base_tstzspanset(IntPtr cb, IntPtr ss, int interp) - => SafeExecution(() => MEOSExternalFunctions.tcbufferseqset_from_base_tstzspanset(cb, ss, interp)); - - public static IntPtr tcbuffer_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_end_value(temp)); - - public static IntPtr tcbuffer_points(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_points(temp)); - - public static IntPtr tcbuffer_radius(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_radius(temp)); - - public static IntPtr tcbuffer_traversed_area(IntPtr temp, bool unary_union) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_traversed_area(temp, unary_union)); - - public static IntPtr tcbuffer_convex_hull(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_convex_hull(temp)); - - public static IntPtr tcbuffer_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_start_value(temp)); - - public static bool tcbuffer_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_value_at_timestamptz(temp, t, strict, value)); - - public static bool tcbuffer_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_value_n(temp, n, result)); - - public static IntPtr[] tcbuffer_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tcbuffer_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tcbuffer_to_tfloat(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_to_tfloat(temp)); - - public static IntPtr tcbuffer_to_tgeompoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_to_tgeompoint(temp)); - - public static IntPtr tgeometry_to_tcbuffer(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeometry_to_tcbuffer(temp)); - - public static IntPtr tcbuffer_expand(IntPtr temp, double dist) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_expand(temp, dist)); - - public static IntPtr tcbuffer_at_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_at_cbuffer(temp, cb)); - - public static IntPtr tcbuffer_at_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_at_geom(temp, gs)); - - public static IntPtr tcbuffer_at_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_at_stbox(temp, box, border_inc)); - - public static IntPtr tcbuffer_minus_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_minus_cbuffer(temp, cb)); - - public static IntPtr tcbuffer_minus_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_minus_geom(temp, gs)); - - public static IntPtr tcbuffer_minus_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_minus_stbox(temp, box, border_inc)); - - public static IntPtr tdistance_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr tdistance_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tcbuffer_geo(temp, gs)); - - public static IntPtr tdistance_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tcbuffer_tcbuffer(temp1, temp2)); - - public static double nad_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.nad_tcbuffer_cbuffer(temp, cb)); - - public static double nad_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nad_tcbuffer_geo(temp, gs)); - - public static double nad_tcbuffer_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_tcbuffer_stbox(temp, box)); - - public static double nad_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_tcbuffer_tcbuffer(temp1, temp2)); - - public static double mindistance_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double threshold) - => SafeExecution(() => MEOSExternalFunctions.mindistance_tcbuffer_tcbuffer(temp1, temp2, threshold)); - - public static IntPtr nai_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.nai_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr nai_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nai_tcbuffer_geo(temp, gs)); - - public static IntPtr nai_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nai_tcbuffer_tcbuffer(temp1, temp2)); - - public static IntPtr shortestline_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr shortestline_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tcbuffer_geo(temp, gs)); - - public static IntPtr shortestline_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tcbuffer_tcbuffer(temp1, temp2)); - - public static int always_eq_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_cbuffer_tcbuffer(cb, temp)); - - public static int always_eq_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tcbuffer_cbuffer(temp, cb)); - - public static int always_eq_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tcbuffer_tcbuffer(temp1, temp2)); - - public static int always_ne_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_cbuffer_tcbuffer(cb, temp)); - - public static int always_ne_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tcbuffer_cbuffer(temp, cb)); - - public static int always_ne_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tcbuffer_tcbuffer(temp1, temp2)); - - public static int ever_eq_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_cbuffer_tcbuffer(cb, temp)); - - public static int ever_eq_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tcbuffer_cbuffer(temp, cb)); - - public static int ever_eq_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tcbuffer_tcbuffer(temp1, temp2)); - - public static int ever_ne_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_cbuffer_tcbuffer(cb, temp)); - - public static int ever_ne_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tcbuffer_cbuffer(temp, cb)); - - public static int ever_ne_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tcbuffer_tcbuffer(temp1, temp2)); - - public static IntPtr teq_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_cbuffer_tcbuffer(cb, temp)); - - public static IntPtr teq_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.teq_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr tne_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_cbuffer_tcbuffer(cb, temp)); - - public static IntPtr tne_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.tne_tcbuffer_cbuffer(temp, cb)); - - public static int acontains_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.acontains_cbuffer_tcbuffer(cb, temp)); - - public static int acontains_geo_tcbuffer(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.acontains_geo_tcbuffer(gs, temp)); - - public static int acontains_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.acontains_tcbuffer_cbuffer(temp, cb)); - - public static int acontains_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.acontains_tcbuffer_geo(temp, gs)); - - public static int acovers_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.acovers_cbuffer_tcbuffer(cb, temp)); - - public static int acovers_geo_tcbuffer(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.acovers_geo_tcbuffer(gs, temp)); - - public static int acovers_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.acovers_tcbuffer_cbuffer(temp, cb)); - - public static int acovers_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.acovers_tcbuffer_geo(temp, gs)); - - public static int acovers_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.acovers_tcbuffer_tcbuffer(temp1, temp2)); - - public static int adisjoint_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.adisjoint_tcbuffer_geo(temp, gs)); - - public static int adisjoint_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.adisjoint_tcbuffer_cbuffer(temp, cb)); - - public static int adisjoint_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.adisjoint_tcbuffer_tcbuffer(temp1, temp2)); - - public static int adwithin_tcbuffer_geo(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.adwithin_tcbuffer_geo(temp, gs, dist)); - - public static int adwithin_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, double dist) - => SafeExecution(() => MEOSExternalFunctions.adwithin_tcbuffer_cbuffer(temp, cb, dist)); - - public static int adwithin_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double dist) - => SafeExecution(() => MEOSExternalFunctions.adwithin_tcbuffer_tcbuffer(temp1, temp2, dist)); - - public static int aintersects_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.aintersects_tcbuffer_geo(temp, gs)); - - public static int aintersects_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.aintersects_tcbuffer_cbuffer(temp, cb)); - - public static int aintersects_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.aintersects_tcbuffer_tcbuffer(temp1, temp2)); - - public static int atouches_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.atouches_tcbuffer_geo(temp, gs)); - - public static int atouches_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.atouches_tcbuffer_cbuffer(temp, cb)); - - public static int atouches_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.atouches_tcbuffer_tcbuffer(temp1, temp2)); - - public static int econtains_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.econtains_cbuffer_tcbuffer(cb, temp)); - - public static int econtains_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.econtains_tcbuffer_cbuffer(temp, cb)); - - public static int econtains_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.econtains_tcbuffer_geo(temp, gs)); - - public static int ecovers_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ecovers_cbuffer_tcbuffer(cb, temp)); - - public static int ecovers_geo_tcbuffer(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ecovers_geo_tcbuffer(gs, temp)); - - public static int ecovers_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.ecovers_tcbuffer_cbuffer(temp, cb)); - - public static int ecovers_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ecovers_tcbuffer_geo(temp, gs)); - - public static int ecovers_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ecovers_tcbuffer_tcbuffer(temp1, temp2)); - - public static int edisjoint_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.edisjoint_tcbuffer_geo(temp, gs)); - - public static int edisjoint_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.edisjoint_tcbuffer_cbuffer(temp, cb)); - - public static int edwithin_tcbuffer_geo(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.edwithin_tcbuffer_geo(temp, gs, dist)); - - public static int edwithin_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, double dist) - => SafeExecution(() => MEOSExternalFunctions.edwithin_tcbuffer_cbuffer(temp, cb, dist)); - - public static int edwithin_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double dist) - => SafeExecution(() => MEOSExternalFunctions.edwithin_tcbuffer_tcbuffer(temp1, temp2, dist)); - - public static int eintersects_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.eintersects_tcbuffer_geo(temp, gs)); - - public static int eintersects_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.eintersects_tcbuffer_cbuffer(temp, cb)); - - public static int eintersects_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.eintersects_tcbuffer_tcbuffer(temp1, temp2)); - - public static int etouches_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.etouches_tcbuffer_geo(temp, gs)); - - public static int etouches_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.etouches_tcbuffer_cbuffer(temp, cb)); - - public static int etouches_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.etouches_tcbuffer_tcbuffer(temp1, temp2)); - - public static IntPtr tcontains_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcontains_cbuffer_tcbuffer(cb, temp)); - - public static IntPtr tcontains_geo_tcbuffer(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcontains_geo_tcbuffer(gs, temp)); - - public static IntPtr tcontains_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tcontains_tcbuffer_geo(temp, gs)); - - public static IntPtr tcontains_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.tcontains_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr tcontains_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tcontains_tcbuffer_tcbuffer(temp1, temp2)); - - public static IntPtr tcovers_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcovers_cbuffer_tcbuffer(cb, temp)); - - public static IntPtr tcovers_geo_tcbuffer(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcovers_geo_tcbuffer(gs, temp)); - - public static IntPtr tcovers_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tcovers_tcbuffer_geo(temp, gs)); - - public static IntPtr tcovers_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.tcovers_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr tcovers_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tcovers_tcbuffer_tcbuffer(temp1, temp2)); - - public static IntPtr tdwithin_geo_tcbuffer(IntPtr gs, IntPtr temp, double dist) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_geo_tcbuffer(gs, temp, dist)); - - public static IntPtr tdwithin_tcbuffer_geo(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_tcbuffer_geo(temp, gs, dist)); - - public static IntPtr tdwithin_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, double dist) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_tcbuffer_cbuffer(temp, cb, dist)); - - public static IntPtr tdwithin_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double dist) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_tcbuffer_tcbuffer(temp1, temp2, dist)); - - public static IntPtr tdisjoint_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tdisjoint_cbuffer_tcbuffer(cb, temp)); - - public static IntPtr tdisjoint_geo_tcbuffer(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tdisjoint_geo_tcbuffer(gs, temp)); - - public static IntPtr tdisjoint_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tdisjoint_tcbuffer_geo(temp, gs)); - - public static IntPtr tdisjoint_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.tdisjoint_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr tdisjoint_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdisjoint_tcbuffer_tcbuffer(temp1, temp2)); - - public static IntPtr tintersects_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tintersects_cbuffer_tcbuffer(cb, temp)); - - public static IntPtr tintersects_geo_tcbuffer(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tintersects_geo_tcbuffer(gs, temp)); - - public static IntPtr tintersects_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tintersects_tcbuffer_geo(temp, gs)); - - public static IntPtr tintersects_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.tintersects_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr tintersects_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tintersects_tcbuffer_tcbuffer(temp1, temp2)); - - public static IntPtr ttouches_geo_tcbuffer(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttouches_geo_tcbuffer(gs, temp)); - - public static IntPtr ttouches_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ttouches_tcbuffer_geo(temp, gs)); - - public static IntPtr ttouches_cbuffer_tcbuffer(IntPtr cb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttouches_cbuffer_tcbuffer(cb, temp)); - - public static IntPtr ttouches_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.ttouches_tcbuffer_cbuffer(temp, cb)); - - public static IntPtr ttouches_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ttouches_tcbuffer_tcbuffer(temp1, temp2)); - - public static bool ensure_valid_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_cbuffer_cbuffer(cb1, cb2)); - - public static bool ensure_valid_cbuffer_geo(IntPtr cb, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_cbuffer_geo(cb, gs)); - - public static bool ensure_valid_cbuffer_stbox(IntPtr cb, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_cbuffer_stbox(cb, box)); - - public static bool ensure_valid_cbufferset_cbuffer(IntPtr s, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_cbufferset_cbuffer(s, cb)); - - public static bool cbuffer_collinear(IntPtr cb1, IntPtr cb2, IntPtr cbuf3, double ratio) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_collinear(cb1, cb2, cbuf3, ratio)); - - public static IntPtr cbuffersegm_interpolate(IntPtr start, IntPtr end, IntPtr ratio) - => SafeExecution(() => MEOSExternalFunctions.cbuffersegm_interpolate(start, end, ratio)); - - public static IntPtr cbuffersegm_locate(IntPtr start, IntPtr end, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.cbuffersegm_locate(start, end, value)); - - public static IntPtr cbuffer_parse(IntPtr str, bool end) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_parse(str, end)); - - public static string cbuffer_wkt_out(long value, int maxdd, bool extended) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_wkt_out(value, maxdd, extended)); - - public static IntPtr cbuffer_point_p(IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_point_p(cb)); - - public static long datum_cbuffer_round(long buffer, long size) - => SafeExecution(() => MEOSExternalFunctions.datum_cbuffer_round(buffer, size)); - - public static IntPtr cbuffer_transf_pj(IntPtr cb, int srid_to, IntPtr pj) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_transf_pj(cb, srid_to, pj)); - - public static double cbuffer_distance(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_distance(cb1, cb2)); - - public static long datum_cbuffer_distance(long cb1, long cb2) - => SafeExecution(() => MEOSExternalFunctions.datum_cbuffer_distance(cb1, cb2)); - - public static int cbuffersegm_distance_turnpt(IntPtr start1, IntPtr end1, IntPtr start2, IntPtr end2, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.cbuffersegm_distance_turnpt(start1, end1, start2, end2, lower, upper, t1, t2)); - - public static int cbuffer_contains(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_contains(cb1, cb2)); - - public static int cbuffer_covers(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_covers(cb1, cb2)); - - public static int cbuffer_disjoint(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_disjoint(cb1, cb2)); - - public static int cbuffer_intersects(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_intersects(cb1, cb2)); - - public static int cbuffer_dwithin(IntPtr cb1, IntPtr cb2, double dist) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_dwithin(cb1, cb2, dist)); - - public static int cbuffer_touches(IntPtr cb1, IntPtr cb2) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_touches(cb1, cb2)); - - public static long datum_cbuffer_contains(long cb1, long cb2) - => SafeExecution(() => MEOSExternalFunctions.datum_cbuffer_contains(cb1, cb2)); - - public static long datum_cbuffer_covers(long cb1, long cb2) - => SafeExecution(() => MEOSExternalFunctions.datum_cbuffer_covers(cb1, cb2)); - - public static long datum_cbuffer_disjoint(long cb1, long cb2) - => SafeExecution(() => MEOSExternalFunctions.datum_cbuffer_disjoint(cb1, cb2)); - - public static long datum_cbuffer_intersects(long cb1, long cb2) - => SafeExecution(() => MEOSExternalFunctions.datum_cbuffer_intersects(cb1, cb2)); - - public static long datum_cbuffer_dwithin(long cb1, long cb2, long dist) - => SafeExecution(() => MEOSExternalFunctions.datum_cbuffer_dwithin(cb1, cb2, dist)); - - public static long datum_cbuffer_touches(long cb1, long cb2) - => SafeExecution(() => MEOSExternalFunctions.datum_cbuffer_touches(cb1, cb2)); - - public static bool temptype_subtype(int subtype) - => SafeExecution(() => MEOSExternalFunctions.temptype_subtype(subtype)); - - public static bool temptype_subtype_all(int subtype) - => SafeExecution(() => MEOSExternalFunctions.temptype_subtype_all(subtype)); - - public static string tempsubtype_name(int subtype) - => SafeExecution(() => MEOSExternalFunctions.tempsubtype_name(subtype)); - - public static bool tempsubtype_from_string(string str, IntPtr subtype) - => SafeExecution(() => MEOSExternalFunctions.tempsubtype_from_string(str, subtype)); - - public static string meosoper_name(IntPtr oper) - => SafeExecution(() => MEOSExternalFunctions.meosoper_name(oper)); - - public static IntPtr meosoper_from_string(string name) - => SafeExecution(() => MEOSExternalFunctions.meosoper_from_string(name)); - - public static string interptype_name(int interp) - => SafeExecution(() => MEOSExternalFunctions.interptype_name(interp)); - - public static int interptype_from_string(string interp_str) - => SafeExecution(() => MEOSExternalFunctions.interptype_from_string(interp_str)); - - public static int meos_typeof_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.meos_typeof_hexwkb(hexwkb)); - - public static string meostype_name(int type) - => SafeExecution(() => MEOSExternalFunctions.meostype_name(type)); - - public static int temptype_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.temptype_basetype(type)); - - public static int settype_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.settype_basetype(type)); - - public static int spantype_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.spantype_basetype(type)); - - public static int spantype_spansettype(int type) - => SafeExecution(() => MEOSExternalFunctions.spantype_spansettype(type)); - - public static int spansettype_spantype(int type) - => SafeExecution(() => MEOSExternalFunctions.spansettype_spantype(type)); - - public static int basetype_spantype(int type) - => SafeExecution(() => MEOSExternalFunctions.basetype_spantype(type)); - - public static int basetype_settype(int type) - => SafeExecution(() => MEOSExternalFunctions.basetype_settype(type)); - - public static bool tnumber_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.tnumber_basetype(type)); - - public static bool geo_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.geo_basetype(type)); - - public static bool meos_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.meos_basetype(type)); - - public static bool alphanum_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.alphanum_basetype(type)); - - public static bool alphanum_temptype(int type) - => SafeExecution(() => MEOSExternalFunctions.alphanum_temptype(type)); - - public static bool time_type(int type) - => SafeExecution(() => MEOSExternalFunctions.time_type(type)); - - public static bool set_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.set_basetype(type)); - - public static bool set_type(int type) - => SafeExecution(() => MEOSExternalFunctions.set_type(type)); - - public static bool numset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.numset_type(type)); - - public static bool ensure_numset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_numset_type(type)); - - public static bool timeset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.timeset_type(type)); - - public static bool set_spantype(int type) - => SafeExecution(() => MEOSExternalFunctions.set_spantype(type)); - - public static bool ensure_set_spantype(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_set_spantype(type)); - - public static bool alphanumset_type(int settype) - => SafeExecution(() => MEOSExternalFunctions.alphanumset_type(settype)); - - public static bool geoset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.geoset_type(type)); - - public static bool ensure_geoset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_geoset_type(type)); - - public static bool spatialset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.spatialset_type(type)); - - public static bool ensure_spatialset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_spatialset_type(type)); - - public static bool span_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.span_basetype(type)); - - public static bool span_canon_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.span_canon_basetype(type)); - - public static bool span_type(int type) - => SafeExecution(() => MEOSExternalFunctions.span_type(type)); - - public static bool type_span_bbox(int type) - => SafeExecution(() => MEOSExternalFunctions.type_span_bbox(type)); - - public static bool span_tbox_type(int type) - => SafeExecution(() => MEOSExternalFunctions.span_tbox_type(type)); - - public static bool ensure_span_tbox_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_span_tbox_type(type)); - - public static bool numspan_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.numspan_basetype(type)); - - public static bool numspan_type(int type) - => SafeExecution(() => MEOSExternalFunctions.numspan_type(type)); - - public static bool ensure_numspan_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_numspan_type(type)); - - public static bool timespan_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.timespan_basetype(type)); - - public static bool timespan_type(int type) - => SafeExecution(() => MEOSExternalFunctions.timespan_type(type)); - - public static bool spanset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.spanset_type(type)); - - public static bool timespanset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.timespanset_type(type)); - - public static bool ensure_timespanset_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_timespanset_type(type)); - - public static bool temporal_type(int type) - => SafeExecution(() => MEOSExternalFunctions.temporal_type(type)); - - public static bool temporal_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.temporal_basetype(type)); - - public static bool temptype_supports_linear(int type) - => SafeExecution(() => MEOSExternalFunctions.temptype_supports_linear(type)); - - public static bool basetype_byvalue(int type) - => SafeExecution(() => MEOSExternalFunctions.basetype_byvalue(type)); - - public static bool basetype_varlength(int type) - => SafeExecution(() => MEOSExternalFunctions.basetype_varlength(type)); - - public static short meostype_length(int type) - => SafeExecution(() => MEOSExternalFunctions.meostype_length(type)); - - public static bool talphanum_type(int type) - => SafeExecution(() => MEOSExternalFunctions.talphanum_type(type)); - - public static bool talpha_type(int type) - => SafeExecution(() => MEOSExternalFunctions.talpha_type(type)); - - public static bool tnumber_type(int type) - => SafeExecution(() => MEOSExternalFunctions.tnumber_type(type)); - - public static bool ensure_tnumber_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tnumber_type(type)); - - public static bool ensure_tnumber_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tnumber_basetype(type)); - - public static bool tnumber_spantype(int type) - => SafeExecution(() => MEOSExternalFunctions.tnumber_spantype(type)); - - public static bool spatial_basetype(int type) - => SafeExecution(() => MEOSExternalFunctions.spatial_basetype(type)); - - public static bool tspatial_type(int type) - => SafeExecution(() => MEOSExternalFunctions.tspatial_type(type)); - - public static bool ensure_tspatial_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tspatial_type(type)); - - public static bool tpoint_type(int type) - => SafeExecution(() => MEOSExternalFunctions.tpoint_type(type)); - - public static bool ensure_tpoint_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tpoint_type(type)); - - public static bool tgeo_type(int type) - => SafeExecution(() => MEOSExternalFunctions.tgeo_type(type)); - - public static bool ensure_tgeo_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tgeo_type(type)); - - public static bool tgeo_type_all(int type) - => SafeExecution(() => MEOSExternalFunctions.tgeo_type_all(type)); - - public static bool ensure_tgeo_type_all(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tgeo_type_all(type)); - - public static bool tgeometry_type(int type) - => SafeExecution(() => MEOSExternalFunctions.tgeometry_type(type)); - - public static bool ensure_tgeometry_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tgeometry_type(type)); - - public static bool tgeodetic_type(int type) - => SafeExecution(() => MEOSExternalFunctions.tgeodetic_type(type)); - - public static bool ensure_tgeodetic_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tgeodetic_type(type)); - - public static bool ensure_tnumber_tpoint_type(int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_tnumber_tpoint_type(type)); - - public static IntPtr gsl_get_generation_rng() - => SafeExecution(() => MEOSExternalFunctions.gsl_get_generation_rng()); - - public static IntPtr gsl_get_aggregation_rng() - => SafeExecution(() => MEOSExternalFunctions.gsl_get_aggregation_rng()); - - public static long datum_ceil(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_ceil(d)); - - public static long datum_degrees(long d, long normalize) - => SafeExecution(() => MEOSExternalFunctions.datum_degrees(d, normalize)); - - public static long datum_float_round(long value, long size) - => SafeExecution(() => MEOSExternalFunctions.datum_float_round(value, size)); - - public static long datum_floor(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_floor(d)); - - public static int datum_hash(long d, int basetype) - => SafeExecution(() => MEOSExternalFunctions.datum_hash(d, basetype)); - - public static IntPtr datum_hash_extended(long d, int basetype, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.datum_hash_extended(d, basetype, seed)); - - public static long datum_radians(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_radians(d)); - - public static void floatspan_round_set(IntPtr s, int maxdd, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.floatspan_round_set(s, maxdd, result)); - - public static IntPtr set_in(string str, int basetype) - => SafeExecution(() => MEOSExternalFunctions.set_in(str, basetype)); - - public static string set_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.set_out(s, maxdd)); - - public static IntPtr span_in(string str, int spantype) - => SafeExecution(() => MEOSExternalFunctions.span_in(str, spantype)); - - public static string span_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.span_out(s, maxdd)); - - public static IntPtr spanset_in(string str, int spantype) - => SafeExecution(() => MEOSExternalFunctions.spanset_in(str, spantype)); - - public static string spanset_out(IntPtr ss, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.spanset_out(ss, maxdd)); - - public static IntPtr set_make(IntPtr values, int count, int basetype, bool order) - => SafeExecution(() => MEOSExternalFunctions.set_make(values, count, basetype, order)); - - public static IntPtr set_make_exp(IntPtr values, int count, int maxcount, int basetype, bool order) - => SafeExecution(() => MEOSExternalFunctions.set_make_exp(values, count, maxcount, basetype, order)); - - public static IntPtr set_make_free(IntPtr values, int count, int basetype, bool order) - => SafeExecution(() => MEOSExternalFunctions.set_make_free(values, count, basetype, order)); - - public static IntPtr span_make(long lower, long upper, bool lower_inc, bool upper_inc, int basetype) - => SafeExecution(() => MEOSExternalFunctions.span_make(lower, upper, lower_inc, upper_inc, basetype)); - - public static void span_set(long lower, long upper, bool lower_inc, bool upper_inc, int basetype, int spantype, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_set(lower, upper, lower_inc, upper_inc, basetype, spantype, s)); - - public static IntPtr spanset_make_exp(IntPtr spans, int count, int maxcount, bool normalize, bool order) - => SafeExecution(() => MEOSExternalFunctions.spanset_make_exp(spans, count, maxcount, normalize, order)); - - public static IntPtr spanset_make_free(IntPtr spans, int count, bool normalize, bool order) - => SafeExecution(() => MEOSExternalFunctions.spanset_make_free(spans, count, normalize, order)); - - public static IntPtr set_span(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_span(s)); - - public static IntPtr set_spanset(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_spanset(s)); - - public static void value_set_span(long value, int basetype, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.value_set_span(value, basetype, s)); - - public static IntPtr value_set(long d, int basetype) - => SafeExecution(() => MEOSExternalFunctions.value_set(d, basetype)); - - public static IntPtr value_span(long d, int basetype) - => SafeExecution(() => MEOSExternalFunctions.value_span(d, basetype)); - - public static IntPtr value_spanset(long d, int basetype) - => SafeExecution(() => MEOSExternalFunctions.value_spanset(d, basetype)); - - public static long numspan_width(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.numspan_width(s)); - - public static long numspanset_width(IntPtr ss, bool boundspan) - => SafeExecution(() => MEOSExternalFunctions.numspanset_width(ss, boundspan)); - - public static long set_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_end_value(s)); - - public static int set_mem_size(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_mem_size(s)); - - public static void set_set_subspan(IntPtr s, int minidx, int maxidx, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.set_set_subspan(s, minidx, maxidx, result)); - - public static void set_set_span(IntPtr s, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.set_set_span(s, result)); - - public static long set_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_start_value(s)); - - public static bool set_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.set_value_n(s, n, result)); - - public static IntPtr set_vals(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_vals(s)); - - public static long[] set_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.set_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static long spanset_lower(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_lower(ss)); - - public static int spanset_mem_size(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_mem_size(ss)); - - public static IntPtr[] spanset_sps(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.spanset_sps(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static long spanset_upper(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_upper(ss)); - - public static void datespan_set_tstzspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.datespan_set_tstzspan(s1, s2)); - - public static void bigintspan_set_floatspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_set_floatspan(s1, s2)); - - public static void bigintspan_set_intspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.bigintspan_set_intspan(s1, s2)); - - public static void floatspan_set_bigintspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.floatspan_set_bigintspan(s1, s2)); - - public static void floatspan_set_intspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.floatspan_set_intspan(s1, s2)); - - public static void intspan_set_bigintspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.intspan_set_bigintspan(s1, s2)); - - public static void intspan_set_floatspan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.intspan_set_floatspan(s1, s2)); - - public static IntPtr numset_shift_scale(IntPtr s, long shift, long width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.numset_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr numspan_expand(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.numspan_expand(s, value)); - - public static IntPtr numspan_shift_scale(IntPtr s, long shift, long width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.numspan_shift_scale(s, shift, width, hasshift, haswidth)); - - public static IntPtr numspanset_shift_scale(IntPtr ss, long shift, long width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.numspanset_shift_scale(ss, shift, width, hasshift, haswidth)); - - public static IntPtr set_compact(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_compact(s)); - - public static void span_expand(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_expand(s1, s2)); - - public static IntPtr spanset_compact(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.spanset_compact(ss)); - - public static IntPtr tbox_expand_value(IntPtr box, long value, int basetyp) - => SafeExecution(() => MEOSExternalFunctions.tbox_expand_value(box, value, basetyp)); - - public static IntPtr textcat_textset_text_common(IntPtr s, IntPtr txt, bool invert) - => SafeExecution(() => MEOSExternalFunctions.textcat_textset_text_common(s, txt, invert)); - - public static void tstzspan_set_datespan(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_set_datespan(s1, s2)); - - public static bool adjacent_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.adjacent_span_value(s, value)); - - public static bool adjacent_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.adjacent_spanset_value(ss, value)); - - public static bool adjacent_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.adjacent_value_spanset(value, ss)); - - public static bool contained_value_set(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_value_set(value, s)); - - public static bool contained_value_span(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_value_span(value, s)); - - public static bool contained_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.contained_value_spanset(value, ss)); - - public static bool contains_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.contains_set_value(s, value)); - - public static bool contains_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.contains_span_value(s, value)); - - public static bool contains_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.contains_spanset_value(ss, value)); - - public static bool ovadj_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.ovadj_span_span(s1, s2)); - - public static bool left_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.left_set_value(s, value)); - - public static bool left_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.left_span_value(s, value)); - - public static bool left_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.left_spanset_value(ss, value)); - - public static bool left_value_set(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_value_set(value, s)); - - public static bool left_value_span(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.left_value_span(value, s)); - - public static bool left_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.left_value_spanset(value, ss)); - - public static bool lfnadj_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.lfnadj_span_span(s1, s2)); - - public static bool overleft_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.overleft_set_value(s, value)); - - public static bool overleft_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.overleft_span_value(s, value)); - - public static bool overleft_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.overleft_spanset_value(ss, value)); - - public static bool overleft_value_set(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_value_set(value, s)); - - public static bool overleft_value_span(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overleft_value_span(value, s)); - - public static bool overleft_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overleft_value_spanset(value, ss)); - - public static bool overright_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.overright_set_value(s, value)); - - public static bool overright_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.overright_span_value(s, value)); - - public static bool overright_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.overright_spanset_value(ss, value)); - - public static bool overright_value_set(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_value_set(value, s)); - - public static bool overright_value_span(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.overright_value_span(value, s)); - - public static bool overright_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.overright_value_spanset(value, ss)); - - public static bool right_value_set(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_value_set(value, s)); - - public static bool right_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.right_set_value(s, value)); - - public static bool right_value_span(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.right_value_span(value, s)); - - public static bool right_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.right_value_spanset(value, ss)); - - public static bool right_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.right_span_value(s, value)); - - public static bool right_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.right_spanset_value(ss, value)); - - public static bool bbox_type(int bboxtype) - => SafeExecution(() => MEOSExternalFunctions.bbox_type(bboxtype)); - - public static ulong bbox_get_size(int bboxtype) - => SafeExecution(() => MEOSExternalFunctions.bbox_get_size(bboxtype)); - - public static int bbox_max_dims(int bboxtype) - => SafeExecution(() => MEOSExternalFunctions.bbox_max_dims(bboxtype)); - - public static bool temporal_bbox_eq(IntPtr box1, IntPtr box2, int temptype) - => SafeExecution(() => MEOSExternalFunctions.temporal_bbox_eq(box1, box2, temptype)); - - public static int temporal_bbox_cmp(IntPtr box1, IntPtr box2, int temptype) - => SafeExecution(() => MEOSExternalFunctions.temporal_bbox_cmp(box1, box2, temptype)); - - public static void bbox_union_span_span(IntPtr s1, IntPtr s2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.bbox_union_span_span(s1, s2, result)); - - public static bool inter_span_span(IntPtr s1, IntPtr s2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.inter_span_span(s1, s2, result)); - - public static IntPtr intersection_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_value(s, value)); - - public static IntPtr intersection_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.intersection_span_value(s, value)); - - public static IntPtr intersection_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.intersection_spanset_value(ss, value)); - - public static IntPtr intersection_value_set(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_value_set(value, s)); - - public static IntPtr intersection_value_span(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_value_span(value, s)); - - public static IntPtr intersection_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.intersection_value_spanset(value, ss)); - - public static int mi_span_span(IntPtr s1, IntPtr s2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.mi_span_span(s1, s2, result)); - - public static IntPtr minus_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.minus_set_value(s, value)); - - public static IntPtr minus_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.minus_span_value(s, value)); - - public static IntPtr minus_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.minus_spanset_value(ss, value)); - - public static IntPtr minus_value_set(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_value_set(value, s)); - - public static IntPtr minus_value_span(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_value_span(value, s)); - - public static IntPtr minus_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.minus_value_spanset(value, ss)); - - public static IntPtr union_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.union_set_value(s, value)); - - public static IntPtr union_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.union_span_value(s, value)); - - public static IntPtr union_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.union_spanset_value(ss, value)); - - public static IntPtr union_value_set(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_value_set(value, s)); - - public static IntPtr union_value_span(long value, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_value_span(value, s)); - - public static IntPtr union_value_spanset(long value, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.union_value_spanset(value, ss)); - - public static long distance_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_set_set(s1, s2)); - - public static long distance_set_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.distance_set_value(s, value)); - - public static long distance_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.distance_span_span(s1, s2)); - - public static long distance_span_value(IntPtr s, long value) - => SafeExecution(() => MEOSExternalFunctions.distance_span_value(s, value)); - - public static long distance_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.distance_spanset_span(ss, s)); - - public static long distance_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.distance_spanset_spanset(ss1, ss2)); - - public static long distance_spanset_value(IntPtr ss, long value) - => SafeExecution(() => MEOSExternalFunctions.distance_spanset_value(ss, value)); - - public static long distance_value_value(long l, long r, int basetype) - => SafeExecution(() => MEOSExternalFunctions.distance_value_value(l, r, basetype)); - - public static IntPtr spanbase_extent_transfn(IntPtr state, long value, int basetype) - => SafeExecution(() => MEOSExternalFunctions.spanbase_extent_transfn(state, value, basetype)); - - public static IntPtr value_union_transfn(IntPtr state, long value, int basetype) - => SafeExecution(() => MEOSExternalFunctions.value_union_transfn(state, value, basetype)); - - public static IntPtr number_tstzspan_to_tbox(long d, int basetype, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.number_tstzspan_to_tbox(d, basetype, s)); - - public static IntPtr number_timestamptz_to_tbox(long d, int basetype, long t) - => SafeExecution(() => MEOSExternalFunctions.number_timestamptz_to_tbox(d, basetype, t)); - - public static void tbox_set(IntPtr s, IntPtr p, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_set(s, p, box)); - - public static void float_set_tbox(double d, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.float_set_tbox(d, box)); - - public static void int_set_tbox(int i, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.int_set_tbox(i, box)); - - public static void number_set_tbox(long d, int basetype, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.number_set_tbox(d, basetype, box)); - - public static IntPtr number_tbox(long value, int basetype) - => SafeExecution(() => MEOSExternalFunctions.number_tbox(value, basetype)); - - public static void numset_set_tbox(IntPtr s, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.numset_set_tbox(s, box)); - - public static void numspan_set_tbox(IntPtr span, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.numspan_set_tbox(span, box)); - - public static void timestamptz_set_tbox(long t, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_set_tbox(t, box)); - - public static void tstzset_set_tbox(IntPtr s, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tstzset_set_tbox(s, box)); - - public static void tstzspan_set_tbox(IntPtr s, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_set_tbox(s, box)); - - public static IntPtr tbox_shift_scale_value(IntPtr box, long shift, long width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.tbox_shift_scale_value(box, shift, width, hasshift, haswidth)); - - public static void tbox_expand(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_expand(box1, box2)); - - public static bool inter_tbox_tbox(IntPtr box1, IntPtr box2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.inter_tbox_tbox(box1, box2, result)); - - public static IntPtr tboolinst_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tboolinst_from_mfjson(mfjson)); - - public static IntPtr tboolinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tboolinst_in(str)); - - public static IntPtr tboolseq_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tboolseq_from_mfjson(mfjson)); - - public static IntPtr tboolseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tboolseq_in(str, interp)); - - public static IntPtr tboolseqset_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tboolseqset_from_mfjson(mfjson)); - - public static IntPtr tboolseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tboolseqset_in(str)); - - public static IntPtr temporal_in(string str, int temptype) - => SafeExecution(() => MEOSExternalFunctions.temporal_in(str, temptype)); - - public static string temporal_out(IntPtr temp, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.temporal_out(temp, maxdd)); - - public static IntPtr temparr_out(IntPtr temparr, int count, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.temparr_out(temparr, count, maxdd)); - - public static IntPtr tfloatinst_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tfloatinst_from_mfjson(mfjson)); - - public static IntPtr tfloatinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tfloatinst_in(str)); - - public static IntPtr tfloatseq_from_mfjson(IntPtr mfjson, int interp) - => SafeExecution(() => MEOSExternalFunctions.tfloatseq_from_mfjson(mfjson, interp)); - - public static IntPtr tfloatseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tfloatseq_in(str, interp)); - - public static IntPtr tfloatseqset_from_mfjson(IntPtr mfjson, int interp) - => SafeExecution(() => MEOSExternalFunctions.tfloatseqset_from_mfjson(mfjson, interp)); - - public static IntPtr tfloatseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tfloatseqset_in(str)); - - public static IntPtr tinstant_from_mfjson(IntPtr mfjson, bool spatial, int srid, int temptype) - => SafeExecution(() => MEOSExternalFunctions.tinstant_from_mfjson(mfjson, spatial, srid, temptype)); - - public static IntPtr tinstant_in(string str, int temptype) - => SafeExecution(() => MEOSExternalFunctions.tinstant_in(str, temptype)); - - public static string tinstant_out(IntPtr inst, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tinstant_out(inst, maxdd)); - - public static IntPtr tbigintinst_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tbigintinst_from_mfjson(mfjson)); - - public static IntPtr tbigintinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tbigintinst_in(str)); - - public static IntPtr tbigintseq_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tbigintseq_from_mfjson(mfjson)); - - public static IntPtr tbigintseqset_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tbigintseqset_from_mfjson(mfjson)); - - public static IntPtr tbigintseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tbigintseqset_in(str)); - - public static IntPtr tintinst_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tintinst_from_mfjson(mfjson)); - - public static IntPtr tintinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tintinst_in(str)); - - public static IntPtr tintseq_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tintseq_from_mfjson(mfjson)); - - public static IntPtr tintseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tintseq_in(str, interp)); - - public static IntPtr tintseqset_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tintseqset_from_mfjson(mfjson)); - - public static IntPtr tintseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tintseqset_in(str)); - - public static IntPtr tsequence_from_mfjson(IntPtr mfjson, bool spatial, int srid, int temptype, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequence_from_mfjson(mfjson, spatial, srid, temptype, interp)); - - public static IntPtr tsequence_in(string str, int temptype, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequence_in(str, temptype, interp)); - - public static string tsequence_out(IntPtr seq, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tsequence_out(seq, maxdd)); - - public static IntPtr tsequenceset_from_mfjson(IntPtr mfjson, bool spatial, int srid, int temptype, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_from_mfjson(mfjson, spatial, srid, temptype, interp)); - - public static IntPtr tsequenceset_in(string str, int temptype, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_in(str, temptype, interp)); - - public static string tsequenceset_out(IntPtr ss, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_out(ss, maxdd)); - - public static IntPtr ttextinst_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.ttextinst_from_mfjson(mfjson)); - - public static IntPtr ttextinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.ttextinst_in(str)); - - public static IntPtr ttextseq_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.ttextseq_from_mfjson(mfjson)); - - public static IntPtr ttextseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.ttextseq_in(str, interp)); - - public static IntPtr ttextseqset_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.ttextseqset_from_mfjson(mfjson)); - - public static IntPtr ttextseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.ttextseqset_in(str)); - - public static IntPtr temporal_from_mfjson(string mfjson, int temptype) - => SafeExecution(() => MEOSExternalFunctions.temporal_from_mfjson(mfjson, temptype)); - - public static IntPtr temporal_from_base_temp(long value, int temptype, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_from_base_temp(value, temptype, temp)); - - public static IntPtr tinstant_copy(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tinstant_copy(inst)); - - public static IntPtr tinstant_make(long value, int temptype, long t) - => SafeExecution(() => MEOSExternalFunctions.tinstant_make(value, temptype, t)); - - public static IntPtr tinstant_make_free(long value, int temptype, long t) - => SafeExecution(() => MEOSExternalFunctions.tinstant_make_free(value, temptype, t)); - - public static IntPtr tsequence_copy(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_copy(seq)); - - public static IntPtr tsequence_from_base_temp(long value, int temptype, IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_from_base_temp(value, temptype, seq)); - - public static IntPtr tsequence_from_base_tstzset(long value, int temptype, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tsequence_from_base_tstzset(value, temptype, s)); - - public static IntPtr tsequence_from_base_tstzspan(long value, int temptype, IntPtr s, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequence_from_base_tstzspan(value, temptype, s, interp)); - - public static IntPtr tsequence_make_exp(IntPtr instants, int count, int maxcount, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.tsequence_make_exp(instants, count, maxcount, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr tsequence_make_free(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.tsequence_make_free(instants, count, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr tsequenceset_copy(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_copy(ss)); - - public static IntPtr tseqsetarr_to_tseqset(IntPtr seqsets, int count, int totalseqs) - => SafeExecution(() => MEOSExternalFunctions.tseqsetarr_to_tseqset(seqsets, count, totalseqs)); - - public static IntPtr tsequenceset_from_base_temp(long value, int temptype, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_from_base_temp(value, temptype, ss)); - - public static IntPtr tsequenceset_from_base_tstzspanset(long value, int temptype, IntPtr ss, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_from_base_tstzspanset(value, temptype, ss, interp)); - - public static IntPtr tsequenceset_make_exp(IntPtr sequences, int count, int maxcount, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_make_exp(sequences, count, maxcount, normalize)); - - public static IntPtr tsequenceset_make_free(IntPtr sequences, int count, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_make_free(sequences, count, normalize)); - - public static void temporal_set_tstzspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.temporal_set_tstzspan(temp, s)); - - public static void tinstant_set_tstzspan(IntPtr inst, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tinstant_set_tstzspan(inst, s)); - - public static void tnumber_set_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tnumber_set_tbox(temp, box)); - - public static void tnumberinst_set_tbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_set_tbox(inst, box)); - - public static void tnumberseq_set_tbox(IntPtr seq, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_set_tbox(seq, box)); - - public static void tnumberseqset_set_tbox(IntPtr ss, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_set_tbox(ss, box)); - - public static void tsequence_set_tstzspan(IntPtr seq, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tsequence_set_tstzspan(seq, s)); - - public static void tsequenceset_set_tstzspan(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_set_tstzspan(ss, s)); - - public static IntPtr temporal_end_inst(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_end_inst(temp)); - - public static long temporal_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_end_value(temp)); - - public static IntPtr temporal_inst_n(IntPtr temp, int n) - => SafeExecution(() => MEOSExternalFunctions.temporal_inst_n(temp, n)); - - public static IntPtr[] temporal_insts_p(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_insts_p(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr temporal_max_inst_p(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_max_inst_p(temp)); - - public static long temporal_max_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_max_value(temp)); - - public static ulong temporal_mem_size(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_mem_size(temp)); - - public static IntPtr temporal_min_inst_p(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_min_inst_p(temp)); - - public static long temporal_min_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_min_value(temp)); - - public static IntPtr[] temporal_sequences_p(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_sequences_p(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static void temporal_set_bbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.temporal_set_bbox(temp, box)); - - public static IntPtr temporal_start_inst(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_start_inst(temp)); - - public static long temporal_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_start_value(temp)); - - public static long[] temporal_values_p(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_values_p(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool temporal_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.temporal_value_n(temp, n, result)); - - public static long[] temporal_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int tinstant_hash(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tinstant_hash(inst)); - - public static IntPtr[] tinstant_insts(IntPtr inst) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tinstant_insts(inst, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static void tinstant_set_bbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tinstant_set_bbox(inst, box)); - - public static IntPtr tinstant_time(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tinstant_time(inst)); - - public static long[] tinstant_timestamps(IntPtr inst) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tinstant_timestamps(inst, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static long tinstant_value_p(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tinstant_value_p(inst)); - - public static long tinstant_value(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tinstant_value(inst)); - - public static bool tinstant_value_at_timestamptz(IntPtr inst, long t, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tinstant_value_at_timestamptz(inst, t, result)); - - public static long[] tinstant_values_p(IntPtr inst) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tinstant_values_p(inst, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static void tnumber_set_span(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tnumber_set_span(temp, s)); - - public static IntPtr tnumberinst_valuespans(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_valuespans(inst)); - - public static double tnumberseq_avg_val(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_avg_val(seq)); - - public static IntPtr tnumberseq_valuespans(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_valuespans(seq)); - - public static double tnumberseqset_avg_val(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_avg_val(ss)); - - public static IntPtr tnumberseqset_valuespans(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_valuespans(ss)); - - public static IntPtr tsequence_duration(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_duration(seq)); - - public static long tsequence_end_timestamptz(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_end_timestamptz(seq)); - - public static int tsequence_hash(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_hash(seq)); - - public static IntPtr[] tsequence_insts_p(IntPtr seq) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequence_insts_p(seq, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tsequence_max_inst_p(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_max_inst_p(seq)); - - public static long tsequence_max_val(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_max_val(seq)); - - public static IntPtr tsequence_min_inst_p(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_min_inst_p(seq)); - - public static long tsequence_min_val(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_min_val(seq)); - - public static IntPtr[] tsequence_segments(IntPtr seq) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequence_segments(seq, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tsequence_seqs(IntPtr seq) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequence_seqs(seq, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static long tsequence_start_timestamptz(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_start_timestamptz(seq)); - - public static IntPtr tsequence_time(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_time(seq)); - - public static long[] tsequence_timestamps(IntPtr seq) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequence_timestamps(seq, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool tsequence_value_at_timestamptz(IntPtr seq, long t, bool strict, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tsequence_value_at_timestamptz(seq, t, strict, result)); - - public static long[] tsequence_values_p(IntPtr seq) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequence_values_p(seq, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tsequenceset_duration(IntPtr ss, bool boundspan) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_duration(ss, boundspan)); - - public static long tsequenceset_end_timestamptz(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_end_timestamptz(ss)); - - public static int tsequenceset_hash(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_hash(ss)); - - public static IntPtr tsequenceset_inst_n(IntPtr ss, int n) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_inst_n(ss, n)); - - public static IntPtr[] tsequenceset_insts_p(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequenceset_insts_p(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tsequenceset_max_inst_p(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_max_inst_p(ss)); - - public static long tsequenceset_max_val(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_max_val(ss)); - - public static IntPtr tsequenceset_min_inst_p(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_min_inst_p(ss)); - - public static long tsequenceset_min_val(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_min_val(ss)); - - public static int tsequenceset_num_instants(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_num_instants(ss)); - - public static int tsequenceset_num_timestamps(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_num_timestamps(ss)); - - public static IntPtr[] tsequenceset_segments(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequenceset_segments(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tsequenceset_sequences_p(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_sequences_p(ss)); - - public static long tsequenceset_start_timestamptz(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_start_timestamptz(ss)); - - public static IntPtr tsequenceset_time(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_time(ss)); - - public static bool tsequenceset_timestamptz_n(IntPtr ss, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_timestamptz_n(ss, n, result)); - - public static long[] tsequenceset_timestamps(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequenceset_timestamps(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool tsequenceset_value_at_timestamptz(IntPtr ss, long t, bool strict, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_value_at_timestamptz(ss, t, strict, result)); - - public static bool tsequenceset_value_n(IntPtr ss, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_value_n(ss, n, result)); - - public static bool tsequenceset_value_n_p(IntPtr ss, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_value_n_p(ss, n, result)); - - public static long[] tsequenceset_values_p(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tsequenceset_values_p(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - long[] _out = new long[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static void temporal_restart(IntPtr temp, int count) - => SafeExecution(() => MEOSExternalFunctions.temporal_restart(temp, count)); - - public static IntPtr temporal_tsequence(IntPtr temp, int interp) - => SafeExecution(() => MEOSExternalFunctions.temporal_tsequence(temp, interp)); - - public static IntPtr temporal_tsequenceset(IntPtr temp, int interp) - => SafeExecution(() => MEOSExternalFunctions.temporal_tsequenceset(temp, interp)); - - public static IntPtr tinstant_shift_time(IntPtr inst, IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.tinstant_shift_time(inst, interv)); - - public static IntPtr tinstant_to_tsequence(IntPtr inst, int interp) - => SafeExecution(() => MEOSExternalFunctions.tinstant_to_tsequence(inst, interp)); - - public static IntPtr tinstant_to_tsequence_free(IntPtr inst, int interp) - => SafeExecution(() => MEOSExternalFunctions.tinstant_to_tsequence_free(inst, interp)); - - public static IntPtr tinstant_to_tsequenceset(IntPtr inst, int interp) - => SafeExecution(() => MEOSExternalFunctions.tinstant_to_tsequenceset(inst, interp)); - - public static IntPtr tnumber_shift_scale_value(IntPtr temp, long shift, long width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.tnumber_shift_scale_value(temp, shift, width, hasshift, haswidth)); - - public static IntPtr tnumberinst_shift_value(IntPtr inst, long shift) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_shift_value(inst, shift)); - - public static IntPtr tnumberseq_shift_scale_value(IntPtr seq, long shift, long width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_shift_scale_value(seq, shift, width, hasshift, haswidth)); - - public static IntPtr tnumberseqset_shift_scale_value(IntPtr ss, long start, long width, bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_shift_scale_value(ss, start, width, hasshift, haswidth)); - - public static void tsequence_restart(IntPtr seq, int count) - => SafeExecution(() => MEOSExternalFunctions.tsequence_restart(seq, count)); - - public static IntPtr tsequence_set_interp(IntPtr seq, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequence_set_interp(seq, interp)); - - public static IntPtr tsequence_shift_scale_time(IntPtr seq, IntPtr shift, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.tsequence_shift_scale_time(seq, shift, duration)); - - public static IntPtr tsequence_subseq(IntPtr seq, int from, int to, bool lower_inc, bool upper_inc) - => SafeExecution(() => MEOSExternalFunctions.tsequence_subseq(seq, from, to, lower_inc, upper_inc)); - - public static IntPtr tsequence_to_tinstant(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_to_tinstant(seq)); - - public static IntPtr tsequence_to_tsequenceset(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_to_tsequenceset(seq)); - - public static IntPtr tsequence_to_tsequenceset_free(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_to_tsequenceset_free(seq)); - - public static IntPtr tsequence_to_tsequenceset_interp(IntPtr seq, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequence_to_tsequenceset_interp(seq, interp)); - - public static void tsequenceset_restart(IntPtr ss, int count) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_restart(ss, count)); - - public static IntPtr tsequenceset_set_interp(IntPtr ss, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_set_interp(ss, interp)); - - public static IntPtr tsequenceset_shift_scale_time(IntPtr ss, IntPtr start, IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_shift_scale_time(ss, start, duration)); - - public static IntPtr tsequenceset_to_discrete(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_to_discrete(ss)); - - public static IntPtr tsequenceset_to_linear(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_to_linear(ss)); - - public static IntPtr tsequenceset_to_step(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_to_step(ss)); - - public static IntPtr tsequenceset_to_tinstant(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_to_tinstant(ss)); - - public static IntPtr tsequenceset_to_tsequence(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_to_tsequence(ss)); - - public static IntPtr tinstant_merge(IntPtr inst1, IntPtr inst2) - => SafeExecution(() => MEOSExternalFunctions.tinstant_merge(inst1, inst2)); - - public static IntPtr tinstant_merge_array(IntPtr instants, int count) - => SafeExecution(() => MEOSExternalFunctions.tinstant_merge_array(instants, count)); - - public static IntPtr tsequence_append_tinstant(IntPtr seq, IntPtr inst, double maxdist, IntPtr maxt, bool expand) - => SafeExecution(() => MEOSExternalFunctions.tsequence_append_tinstant(seq, inst, maxdist, maxt, expand)); - - public static IntPtr tsequence_append_tsequence(IntPtr seq1, IntPtr seq2, bool expand) - => SafeExecution(() => MEOSExternalFunctions.tsequence_append_tsequence(seq1, seq2, expand)); - - public static IntPtr tsequence_delete_timestamptz(IntPtr seq, long t, bool connect) - => SafeExecution(() => MEOSExternalFunctions.tsequence_delete_timestamptz(seq, t, connect)); - - public static IntPtr tsequence_delete_tstzset(IntPtr seq, IntPtr s, bool connect) - => SafeExecution(() => MEOSExternalFunctions.tsequence_delete_tstzset(seq, s, connect)); - - public static IntPtr tsequence_delete_tstzspan(IntPtr seq, IntPtr s, bool connect) - => SafeExecution(() => MEOSExternalFunctions.tsequence_delete_tstzspan(seq, s, connect)); - - public static IntPtr tsequence_delete_tstzspanset(IntPtr seq, IntPtr ss, bool connect) - => SafeExecution(() => MEOSExternalFunctions.tsequence_delete_tstzspanset(seq, ss, connect)); - - public static IntPtr tsequence_insert(IntPtr seq1, IntPtr seq2, bool connect) - => SafeExecution(() => MEOSExternalFunctions.tsequence_insert(seq1, seq2, connect)); - - public static IntPtr tsequence_merge(IntPtr seq1, IntPtr seq2) - => SafeExecution(() => MEOSExternalFunctions.tsequence_merge(seq1, seq2)); - - public static IntPtr tsequence_merge_array(IntPtr sequences, int count) - => SafeExecution(() => MEOSExternalFunctions.tsequence_merge_array(sequences, count)); - - public static IntPtr tsequenceset_append_tinstant(IntPtr ss, IntPtr inst, double maxdist, IntPtr maxt, bool expand) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_append_tinstant(ss, inst, maxdist, maxt, expand)); - - public static IntPtr tsequenceset_append_tsequence(IntPtr ss, IntPtr seq, bool expand) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_append_tsequence(ss, seq, expand)); - - public static IntPtr tsequenceset_delete_timestamptz(IntPtr ss, long t) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_delete_timestamptz(ss, t)); - - public static IntPtr tsequenceset_delete_tstzset(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_delete_tstzset(ss, s)); - - public static IntPtr tsequenceset_delete_tstzspan(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_delete_tstzspan(ss, s)); - - public static IntPtr tsequenceset_delete_tstzspanset(IntPtr ss, IntPtr ps) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_delete_tstzspanset(ss, ps)); - - public static IntPtr tsequenceset_insert(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_insert(ss1, ss2)); - - public static IntPtr tsequenceset_merge(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_merge(ss1, ss2)); - - public static IntPtr tsequenceset_merge_array(IntPtr seqsets, int count) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_merge_array(seqsets, count)); - - public static void tsequence_expand_bbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tsequence_expand_bbox(seq, inst)); - - public static void tsequence_set_bbox(IntPtr seq, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tsequence_set_bbox(seq, box)); - - public static void tsequenceset_expand_bbox(IntPtr ss, IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_expand_bbox(ss, seq)); - - public static void tsequenceset_set_bbox(IntPtr ss, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_set_bbox(ss, box)); - - public static IntPtr tcontseq_after_timestamptz(IntPtr seq, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_after_timestamptz(seq, t, strict)); - - public static IntPtr tcontseq_before_timestamptz(IntPtr seq, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_before_timestamptz(seq, t, strict)); - - public static IntPtr tcontseq_restrict_minmax(IntPtr seq, bool min, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_restrict_minmax(seq, min, atfunc)); - - public static IntPtr tdiscseq_after_timestamptz(IntPtr seq, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_after_timestamptz(seq, t, strict)); - - public static IntPtr tdiscseq_before_timestamptz(IntPtr seq, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_before_timestamptz(seq, t, strict)); - - public static IntPtr tdiscseq_restrict_minmax(IntPtr seq, bool min, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_restrict_minmax(seq, min, atfunc)); - - public static bool temporal_bbox_restrict_set(IntPtr temp, IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.temporal_bbox_restrict_set(temp, set)); - - public static IntPtr temporal_restrict_minmax(IntPtr temp, bool min, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.temporal_restrict_minmax(temp, min, atfunc)); - - public static IntPtr temporal_restrict_timestamptz(IntPtr temp, long t, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.temporal_restrict_timestamptz(temp, t, atfunc)); - - public static IntPtr temporal_restrict_tstzset(IntPtr temp, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.temporal_restrict_tstzset(temp, s, atfunc)); - - public static IntPtr temporal_restrict_tstzspan(IntPtr temp, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.temporal_restrict_tstzspan(temp, s, atfunc)); - - public static IntPtr temporal_restrict_tstzspanset(IntPtr temp, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.temporal_restrict_tstzspanset(temp, ss, atfunc)); - - public static IntPtr temporal_restrict_value(IntPtr temp, long value, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.temporal_restrict_value(temp, value, atfunc)); - - public static IntPtr temporal_restrict_values(IntPtr temp, IntPtr set, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.temporal_restrict_values(temp, set, atfunc)); - - public static bool temporal_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.temporal_value_at_timestamptz(temp, t, strict, result)); - - public static IntPtr tinstant_after_timestamptz(IntPtr inst, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.tinstant_after_timestamptz(inst, t, strict)); - - public static IntPtr tinstant_before_timestamptz(IntPtr inst, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.tinstant_before_timestamptz(inst, t, strict)); - - public static IntPtr tinstant_restrict_tstzspan(IntPtr inst, IntPtr period, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_tstzspan(inst, period, atfunc)); - - public static IntPtr tinstant_restrict_tstzspanset(IntPtr inst, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_tstzspanset(inst, ss, atfunc)); - - public static IntPtr tinstant_restrict_timestamptz(IntPtr inst, long t, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_timestamptz(inst, t, atfunc)); - - public static IntPtr tinstant_restrict_tstzset(IntPtr inst, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_tstzset(inst, s, atfunc)); - - public static IntPtr tinstant_restrict_value(IntPtr inst, long value, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_value(inst, value, atfunc)); - - public static IntPtr tinstant_restrict_values(IntPtr inst, IntPtr set, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_values(inst, set, atfunc)); - - public static IntPtr tnumber_restrict_span(IntPtr temp, IntPtr span, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumber_restrict_span(temp, span, atfunc)); - - public static IntPtr tnumber_restrict_spanset(IntPtr temp, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumber_restrict_spanset(temp, ss, atfunc)); - - public static IntPtr tnumberinst_restrict_span(IntPtr inst, IntPtr span, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_restrict_span(inst, span, atfunc)); - - public static IntPtr tnumberinst_restrict_spanset(IntPtr inst, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_restrict_spanset(inst, ss, atfunc)); - - public static IntPtr tnumberseqset_restrict_span(IntPtr ss, IntPtr span, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_restrict_span(ss, span, atfunc)); - - public static IntPtr tnumberseqset_restrict_spanset(IntPtr ss, IntPtr spanset, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_restrict_spanset(ss, spanset, atfunc)); - - public static IntPtr tsequence_at_timestamptz(IntPtr seq, long t) - => SafeExecution(() => MEOSExternalFunctions.tsequence_at_timestamptz(seq, t)); - - public static IntPtr tsequence_restrict_tstzspan(IntPtr seq, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequence_restrict_tstzspan(seq, s, atfunc)); - - public static IntPtr tsequence_restrict_tstzspanset(IntPtr seq, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequence_restrict_tstzspanset(seq, ss, atfunc)); - - public static IntPtr tsequenceset_after_timestamptz(IntPtr ss, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_after_timestamptz(ss, t, strict)); - - public static IntPtr tsequenceset_before_timestamptz(IntPtr ss, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_before_timestamptz(ss, t, strict)); - - public static IntPtr tsequenceset_restrict_minmax(IntPtr ss, bool min, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_restrict_minmax(ss, min, atfunc)); - - public static IntPtr tsequenceset_restrict_tstzspan(IntPtr ss, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_restrict_tstzspan(ss, s, atfunc)); - - public static IntPtr tsequenceset_restrict_tstzspanset(IntPtr ss, IntPtr ps, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_restrict_tstzspanset(ss, ps, atfunc)); - - public static IntPtr tsequenceset_restrict_timestamptz(IntPtr ss, long t, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_restrict_timestamptz(ss, t, atfunc)); - - public static IntPtr tsequenceset_restrict_tstzset(IntPtr ss, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_restrict_tstzset(ss, s, atfunc)); - - public static IntPtr tsequenceset_restrict_value(IntPtr ss, long value, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_restrict_value(ss, value, atfunc)); - - public static IntPtr tsequenceset_restrict_values(IntPtr ss, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_restrict_values(ss, s, atfunc)); - - public static int tinstant_cmp(IntPtr inst1, IntPtr inst2) - => SafeExecution(() => MEOSExternalFunctions.tinstant_cmp(inst1, inst2)); - - public static bool tinstant_eq(IntPtr inst1, IntPtr inst2) - => SafeExecution(() => MEOSExternalFunctions.tinstant_eq(inst1, inst2)); - - public static int tsequence_cmp(IntPtr seq1, IntPtr seq2) - => SafeExecution(() => MEOSExternalFunctions.tsequence_cmp(seq1, seq2)); - - public static bool tsequence_eq(IntPtr seq1, IntPtr seq2) - => SafeExecution(() => MEOSExternalFunctions.tsequence_eq(seq1, seq2)); - - public static int tsequenceset_cmp(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_cmp(ss1, ss2)); - - public static bool tsequenceset_eq(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_eq(ss1, ss2)); - - public static int always_eq_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_base_temporal(value, temp)); - - public static int always_eq_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.always_eq_temporal_base(temp, value)); - - public static int always_ne_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_base_temporal(value, temp)); - - public static int always_ne_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.always_ne_temporal_base(temp, value)); - - public static int always_ge_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ge_base_temporal(value, temp)); - - public static int always_ge_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.always_ge_temporal_base(temp, value)); - - public static int always_gt_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_gt_base_temporal(value, temp)); - - public static int always_gt_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.always_gt_temporal_base(temp, value)); - - public static int always_le_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_le_base_temporal(value, temp)); - - public static int always_le_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.always_le_temporal_base(temp, value)); - - public static int always_lt_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_lt_base_temporal(value, temp)); - - public static int always_lt_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.always_lt_temporal_base(temp, value)); - - public static int ever_eq_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_base_temporal(value, temp)); - - public static int ever_eq_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_temporal_base(temp, value)); - - public static int ever_ne_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_base_temporal(value, temp)); - - public static int ever_ne_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_temporal_base(temp, value)); - - public static int ever_ge_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_base_temporal(value, temp)); - - public static int ever_ge_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.ever_ge_temporal_base(temp, value)); - - public static int ever_gt_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_base_temporal(value, temp)); - - public static int ever_gt_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.ever_gt_temporal_base(temp, value)); - - public static int ever_le_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_le_base_temporal(value, temp)); - - public static int ever_le_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.ever_le_temporal_base(temp, value)); - - public static int ever_lt_base_temporal(long value, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_base_temporal(value, temp)); - - public static int ever_lt_temporal_base(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.ever_lt_temporal_base(temp, value)); - - public static IntPtr tnumberinst_abs(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_abs(inst)); - - public static double tnumberinst_distance(IntPtr inst1, IntPtr inst2) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_distance(inst1, inst2)); - - public static IntPtr tnumberseq_abs(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_abs(seq)); - - public static IntPtr tnumberseq_angular_difference(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_angular_difference(seq)); - - public static IntPtr tnumberseq_delta_value(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_delta_value(seq)); - - public static IntPtr tnumberseqset_abs(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_abs(ss)); - - public static IntPtr tnumberseqset_angular_difference(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_angular_difference(ss)); - - public static IntPtr tnumberseqset_delta_value(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_delta_value(ss)); - - public static IntPtr tdistance_tnumber_number(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tnumber_number(temp, value)); - - public static double nad_tbox_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.nad_tbox_tbox(box1, box2)); - - public static double nad_tnumber_number(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.nad_tnumber_number(temp, value)); - - public static double nad_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_tnumber_tbox(temp, box)); - - public static double nad_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_tnumber_tnumber(temp1, temp2)); - - public static double tnumberseq_integral(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_integral(seq)); - - public static double tnumberseq_twavg(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_twavg(seq)); - - public static double tnumberseqset_integral(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_integral(ss)); - - public static double tnumberseqset_twavg(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnumberseqset_twavg(ss)); - - public static IntPtr temporal_compact(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_compact(temp)); - - public static IntPtr tsequence_compact(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_compact(seq)); - - public static IntPtr tsequenceset_compact(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_compact(ss)); - - public static IntPtr temporal_skiplist_make() - => SafeExecution(() => MEOSExternalFunctions.temporal_skiplist_make()); - - public static IntPtr skiplist_make(IntPtr key_size, IntPtr value_size, IntPtr comp_fn, IntPtr merge_fn) - => SafeExecution(() => MEOSExternalFunctions.skiplist_make(key_size, value_size, comp_fn, merge_fn)); - - public static int skiplist_search(IntPtr list, IntPtr key, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.skiplist_search(list, key, value)); - - public static void skiplist_free(IntPtr list) - => SafeExecution(() => MEOSExternalFunctions.skiplist_free(list)); - - public static void skiplist_splice(IntPtr list, IntPtr keys, IntPtr values, int count, IntPtr func, bool crossings, IntPtr sktype) - => SafeExecution(() => MEOSExternalFunctions.skiplist_splice(list, keys, values, count, func, crossings, sktype)); - - public static void temporal_skiplist_splice(IntPtr list, IntPtr values, int count, IntPtr func, bool crossings) - => SafeExecution(() => MEOSExternalFunctions.temporal_skiplist_splice(list, values, count, func, crossings)); - - public static IntPtr skiplist_values(IntPtr list) - => SafeExecution(() => MEOSExternalFunctions.skiplist_values(list)); - - public static IntPtr skiplist_keys_values(IntPtr list, IntPtr values) - => SafeExecution(() => MEOSExternalFunctions.skiplist_keys_values(list, values)); - - public static IntPtr temporal_app_tinst_transfn(IntPtr state, IntPtr inst, int interp, double maxdist, IntPtr maxt) - => SafeExecution(() => MEOSExternalFunctions.temporal_app_tinst_transfn(state, inst, interp, maxdist, maxt)); - - public static IntPtr temporal_app_tseq_transfn(IntPtr state, IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.temporal_app_tseq_transfn(state, seq)); - - public static IntPtr[] span_bins(IntPtr s, long size, long origin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.span_bins(s, size, origin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] spanset_bins(IntPtr ss, long size, long origin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.spanset_bins(ss, size, origin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tnumber_value_bins(IntPtr temp, long size, long origin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnumber_value_bins(temp, size, origin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tnumber_value_time_boxes(IntPtr temp, long vsize, IntPtr duration, long vorigin, long torigin) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnumber_value_time_boxes(temp, vsize, duration, vorigin, torigin, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static (IntPtr[], long[]) tnumber_value_split(IntPtr temp, long vsize, long vorigin) - { - IntPtr _out_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tnumber_value_split(temp, vsize, vorigin, _out_bins, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_bins_arr = Marshal.ReadIntPtr(_out_bins); - long[] __out_bins_out = new long[_n]; - Marshal.Copy(__out_bins_arr, __out_bins_out, 0, _n); - return (_resultArr, __out_bins_out); - } - finally - { - Marshal.FreeHGlobal(_out_bins); - Marshal.FreeHGlobal(_count_count); - } - } - - public static IntPtr tbox_get_value_time_tile(long value, long t, long vsize, IntPtr duration, long vorigin, long torigin, int basetype, int spantype) - => SafeExecution(() => MEOSExternalFunctions.tbox_get_value_time_tile(value, t, vsize, duration, vorigin, torigin, basetype, spantype)); - - public static (IntPtr[], long[], long[]) tnumber_value_time_split(IntPtr temp, long size, IntPtr duration, long vorigin, long torigin) - { - IntPtr _out_value_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _out_time_bins = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.tnumber_value_time_split(temp, size, duration, vorigin, torigin, _out_value_bins, _out_time_bins, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_value_bins_arr = Marshal.ReadIntPtr(_out_value_bins); - long[] __out_value_bins_out = new long[_n]; - Marshal.Copy(__out_value_bins_arr, __out_value_bins_out, 0, _n); - IntPtr __out_time_bins_arr = Marshal.ReadIntPtr(_out_time_bins); - long[] __out_time_bins_out = new long[_n]; - Marshal.Copy(__out_time_bins_arr, __out_time_bins_out, 0, _n); - return (_resultArr, __out_value_bins_out, __out_time_bins_out); - } - finally - { - Marshal.FreeHGlobal(_out_value_bins); - Marshal.FreeHGlobal(_out_time_bins); - Marshal.FreeHGlobal(_count_count); - } - } - - public static string double2_out(IntPtr d, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.double2_out(d, maxdd)); - - public static void double2_set(double a, double b, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.double2_set(a, b, result)); - - public static IntPtr double2_add(IntPtr d1, IntPtr d2) - => SafeExecution(() => MEOSExternalFunctions.double2_add(d1, d2)); - - public static bool double2_eq(IntPtr d1, IntPtr d2) - => SafeExecution(() => MEOSExternalFunctions.double2_eq(d1, d2)); - - public static string double3_out(IntPtr d, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.double3_out(d, maxdd)); - - public static void double3_set(double a, double b, double c, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.double3_set(a, b, c, result)); - - public static IntPtr double3_add(IntPtr d1, IntPtr d2) - => SafeExecution(() => MEOSExternalFunctions.double3_add(d1, d2)); - - public static bool double3_eq(IntPtr d1, IntPtr d2) - => SafeExecution(() => MEOSExternalFunctions.double3_eq(d1, d2)); - - public static string double4_out(IntPtr d, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.double4_out(d, maxdd)); - - public static void double4_set(double a, double b, double c, double d, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.double4_set(a, b, c, d, result)); - - public static IntPtr double4_add(IntPtr d1, IntPtr d2) - => SafeExecution(() => MEOSExternalFunctions.double4_add(d1, d2)); - - public static bool double4_eq(IntPtr d1, IntPtr d2) - => SafeExecution(() => MEOSExternalFunctions.double4_eq(d1, d2)); - - public static bool double2_collinear(IntPtr x1, IntPtr x2, IntPtr x3, double ratio) - => SafeExecution(() => MEOSExternalFunctions.double2_collinear(x1, x2, x3, ratio)); - - public static bool double3_collinear(IntPtr x1, IntPtr x2, IntPtr x3, double ratio) - => SafeExecution(() => MEOSExternalFunctions.double3_collinear(x1, x2, x3, ratio)); - - public static bool double4_collinear(IntPtr x1, IntPtr x2, IntPtr x3, double ratio) - => SafeExecution(() => MEOSExternalFunctions.double4_collinear(x1, x2, x3, ratio)); - - public static IntPtr double2segm_interpolate(IntPtr start, IntPtr end, IntPtr ratio) - => SafeExecution(() => MEOSExternalFunctions.double2segm_interpolate(start, end, ratio)); - - public static IntPtr double3segm_interpolate(IntPtr start, IntPtr end, IntPtr ratio) - => SafeExecution(() => MEOSExternalFunctions.double3segm_interpolate(start, end, ratio)); - - public static IntPtr double4segm_interpolate(IntPtr start, IntPtr end, IntPtr ratio) - => SafeExecution(() => MEOSExternalFunctions.double4segm_interpolate(start, end, ratio)); - - public static int pg_atoi(string s, int size, int c) - => SafeExecution(() => MEOSExternalFunctions.pg_atoi(s, size, c)); - - public static bool ensure_has_X(int type, short flags) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_X(type, flags)); - - public static bool ensure_has_Z(int type, short flags) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_Z(type, flags)); - - public static bool ensure_has_T(int type, short flags) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_T(type, flags)); - - public static bool ensure_has_not_Z(int type, short flags) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_not_Z(type, flags)); - - public static bool ensure_not_null(IntPtr ptr) - => SafeExecution(() => MEOSExternalFunctions.ensure_not_null(ptr)); - - public static bool ensure_one_not_null(IntPtr ptr1, IntPtr ptr2) - => SafeExecution(() => MEOSExternalFunctions.ensure_one_not_null(ptr1, ptr2)); - - public static bool ensure_one_true(bool hasshift, bool haswidth) - => SafeExecution(() => MEOSExternalFunctions.ensure_one_true(hasshift, haswidth)); - - public static bool ensure_valid_interp(int temptype, int interp) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_interp(temptype, interp)); - - public static bool ensure_continuous(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ensure_continuous(temp)); - - public static bool ensure_same_interp(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_interp(temp1, temp2)); - - public static bool ensure_same_continuous_interp(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_continuous_interp(flags1, flags2)); - - public static bool ensure_linear_interp(short flags) - => SafeExecution(() => MEOSExternalFunctions.ensure_linear_interp(flags)); - - public static bool ensure_nonlinear_interp(short flags) - => SafeExecution(() => MEOSExternalFunctions.ensure_nonlinear_interp(flags)); - - public static bool ensure_common_dimension(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.ensure_common_dimension(flags1, flags2)); - - public static bool ensure_temporal_isof_type(IntPtr temp, int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_temporal_isof_type(temp, type)); - - public static bool ensure_temporal_isof_basetype(IntPtr temp, int basetype) - => SafeExecution(() => MEOSExternalFunctions.ensure_temporal_isof_basetype(temp, basetype)); - - public static bool ensure_temporal_isof_subtype(IntPtr temp, int type) - => SafeExecution(() => MEOSExternalFunctions.ensure_temporal_isof_subtype(temp, type)); - - public static bool ensure_same_temporal_type(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_temporal_type(temp1, temp2)); - - public static bool ensure_valid_tnumber_numspan(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnumber_numspan(temp, s)); - - public static bool ensure_valid_tnumber_numspanset(IntPtr temp, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnumber_numspanset(temp, ss)); - - public static bool ensure_valid_tnumber_tbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnumber_tbox(temp, box)); - - public static bool ensure_valid_temporal_set(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_temporal_set(temp, s)); - - public static bool ensure_valid_temporal_temporal(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_temporal_temporal(temp1, temp2)); - - public static bool ensure_valid_tnumber_tnumber(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnumber_tnumber(temp1, temp2)); - - public static bool ensure_not_negative(int i) - => SafeExecution(() => MEOSExternalFunctions.ensure_not_negative(i)); - - public static bool ensure_positive(int i) - => SafeExecution(() => MEOSExternalFunctions.ensure_positive(i)); - - public static bool not_negative_datum(long size, int basetype) - => SafeExecution(() => MEOSExternalFunctions.not_negative_datum(size, basetype)); - - public static bool ensure_not_negative_datum(long size, int basetype) - => SafeExecution(() => MEOSExternalFunctions.ensure_not_negative_datum(size, basetype)); - - public static bool positive_datum(long size, int basetype) - => SafeExecution(() => MEOSExternalFunctions.positive_datum(size, basetype)); - - public static bool ensure_positive_datum(long size, int basetype) - => SafeExecution(() => MEOSExternalFunctions.ensure_positive_datum(size, basetype)); - - public static bool ensure_valid_day_duration(IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_day_duration(duration)); - - public static bool positive_duration(IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.positive_duration(duration)); - - public static bool ensure_positive_duration(IntPtr duration) - => SafeExecution(() => MEOSExternalFunctions.ensure_positive_duration(duration)); - - public static IntPtr temporal_bbox_ptr(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.temporal_bbox_ptr(temp)); - - public static bool intersection_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr mode, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_temporal_temporal(temp1, temp2, mode, inter1, inter2)); - - public static string mobilitydb_version() - => SafeExecution(() => MEOSExternalFunctions.mobilitydb_version()); - - public static string mobilitydb_full_version() - => SafeExecution(() => MEOSExternalFunctions.mobilitydb_full_version()); - - public static IntPtr round_fn(int basetype) - => SafeExecution(() => MEOSExternalFunctions.round_fn(basetype)); - - public static bool temporal_bbox_restrict_value(IntPtr temp, long value) - => SafeExecution(() => MEOSExternalFunctions.temporal_bbox_restrict_value(temp, value)); - - public static bool ensure_valid_tcbuffer_cbuffer(IntPtr temp, IntPtr cb) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tcbuffer_cbuffer(temp, cb)); - - public static bool ensure_valid_tcbuffer_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tcbuffer_geo(temp, gs)); - - public static bool ensure_valid_tcbuffer_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tcbuffer_stbox(temp, box)); - - public static bool ensure_valid_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tcbuffer_tcbuffer(temp1, temp2)); - - public static int tcbuffersegm_intersection_value(long start, long end, long value, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tcbuffersegm_intersection_value(start, end, value, lower, upper, t1, t2)); - - public static int tcbuffersegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tcbuffersegm_intersection(start1, end1, start2, end2, lower, upper, t1, t2)); - - public static int tcbuffersegm_dwithin_turnpt(long start1, long end1, long start2, long end2, long dist, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tcbuffersegm_dwithin_turnpt(start1, end1, start2, end2, dist, lower, upper, t1, t2)); - - public static int tcbuffersegm_tdwithin_turnpt(long start1, long end1, long start2, long end2, long dist, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tcbuffersegm_tdwithin_turnpt(start1, end1, start2, end2, dist, lower, upper, t1, t2)); - - public static int tcbuffersegm_distance_turnpt(long start1, long end1, long start2, long end2, long dist, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tcbuffersegm_distance_turnpt(start1, end1, start2, end2, dist, lower, upper, t1, t2)); - - public static IntPtr tcbuffer_geo_ctx_make(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_geo_ctx_make(gs)); - - public static void tcbuffer_geo_ctx_free(IntPtr ctx) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_geo_ctx_free(ctx)); - - public static int tcbuffer_geo_ctx_nsegs(IntPtr ctx) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_geo_ctx_nsegs(ctx)); - - public static bool tcbuffer_disc_within_ctx(IntPtr cb, double dist, IntPtr ctx) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_disc_within_ctx(cb, dist, ctx)); - - public static int tcbufferseg_within_ctx(IntPtr cb1, IntPtr cb2, double dist, IntPtr ctx, IntPtr outlo, IntPtr outhi, int maxout) - => SafeExecution(() => MEOSExternalFunctions.tcbufferseg_within_ctx(cb1, cb2, dist, ctx, outlo, outhi, maxout)); - - public static bool tcbuffer_disc_touch_ctx(IntPtr cb, IntPtr ctx) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_disc_touch_ctx(cb, ctx)); - - public static int tcbufferseg_touch_roots(IntPtr cb1, IntPtr cb2, IntPtr ctx, IntPtr outt, int maxout) - => SafeExecution(() => MEOSExternalFunctions.tcbufferseg_touch_roots(cb1, cb2, ctx, outt, maxout)); - - public static bool cbuffer_set_stbox(IntPtr cb, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_set_stbox(cb, box)); - - public static void cbufferarr_set_stbox(IntPtr values, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.cbufferarr_set_stbox(values, count, box)); - - public static void cbuffer_timestamptz_set_stbox(IntPtr cb, long t, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_timestamptz_set_stbox(cb, t, box)); - - public static void cbuffer_tstzspan_set_stbox(IntPtr cb, IntPtr s, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.cbuffer_tstzspan_set_stbox(cb, s, box)); - - public static void tcbufferinst_set_stbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tcbufferinst_set_stbox(inst, box)); - - public static void tcbufferinstarr_set_stbox(IntPtr instants, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tcbufferinstarr_set_stbox(instants, count, box)); - - public static void tcbufferseq_expand_stbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tcbufferseq_expand_stbox(seq, inst)); - - public static IntPtr tcbufferinst_traversed_area(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tcbufferinst_traversed_area(inst)); - - public static IntPtr tcbufferseq_traversed_area(IntPtr seq, bool unary_union) - => SafeExecution(() => MEOSExternalFunctions.tcbufferseq_traversed_area(seq, unary_union)); - - public static IntPtr tcbufferseqset_traversed_area(IntPtr ss, bool unary_union) - => SafeExecution(() => MEOSExternalFunctions.tcbufferseqset_traversed_area(ss, unary_union)); - - public static IntPtr tcbuffersegm_traversed_area(IntPtr inst1, IntPtr inst2) - => SafeExecution(() => MEOSExternalFunctions.tcbuffersegm_traversed_area(inst1, inst2)); - - public static IntPtr tcbuffer_restrict_cbuffer(IntPtr temp, IntPtr cb, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_restrict_cbuffer(temp, cb, atfunc)); - - public static IntPtr tcbuffer_restrict_stbox(IntPtr temp, IntPtr box, bool border_inc, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_restrict_stbox(temp, box, border_inc, atfunc)); - - public static IntPtr tcbuffer_restrict_geom(IntPtr temp, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tcbuffer_restrict_geom(temp, gs, atfunc)); - - public static int ea_contains_geo_tcbuffer(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_geo_tcbuffer(gs, temp, ever)); - - public static int ea_contains_tcbuffer_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_tcbuffer_geo(temp, gs, ever)); - - public static int ea_contains_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_tcbuffer_cbuffer(temp, cb, ever)); - - public static int ea_contains_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_cbuffer_tcbuffer(cb, temp, ever)); - - public static int ea_covers_geo_tcbuffer(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_geo_tcbuffer(gs, temp, ever)); - - public static int ea_covers_tcbuffer_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_tcbuffer_geo(temp, gs, ever)); - - public static int ea_covers_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_tcbuffer_cbuffer(temp, cb, ever)); - - public static int ea_covers_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_cbuffer_tcbuffer(cb, temp, ever)); - - public static int ea_covers_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_tcbuffer_tcbuffer(temp1, temp2, ever)); - - public static int ea_disjoint_tcbuffer_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_tcbuffer_geo(temp, gs, ever)); - - public static int ea_disjoint_geo_tcbuffer(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_geo_tcbuffer(gs, temp, ever)); - - public static int ea_disjoint_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_tcbuffer_cbuffer(temp, cb, ever)); - - public static int ea_disjoint_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_cbuffer_tcbuffer(cb, temp, ever)); - - public static int ea_disjoint_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_tcbuffer_tcbuffer(temp1, temp2, ever)); - - public static int ea_intersects_tcbuffer_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_tcbuffer_geo(temp, gs, ever)); - - public static int ea_intersects_geo_tcbuffer(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_geo_tcbuffer(gs, temp, ever)); - - public static int ea_intersects_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_tcbuffer_cbuffer(temp, cb, ever)); - - public static int ea_intersects_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_cbuffer_tcbuffer(cb, temp, ever)); - - public static int ea_intersects_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_tcbuffer_tcbuffer(temp1, temp2, ever)); - - public static int ea_touches_tcbuffer_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_tcbuffer_geo(temp, gs, ever)); - - public static int ea_touches_geo_tcbuffer(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_geo_tcbuffer(gs, temp, ever)); - - public static int ea_touches_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_tcbuffer_cbuffer(temp, cb, ever)); - - public static int ea_touches_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_cbuffer_tcbuffer(cb, temp, ever)); - - public static int ea_touches_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_tcbuffer_tcbuffer(temp1, temp2, ever)); - - public static int ea_dwithin_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double dist, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_dwithin_tcbuffer_tcbuffer(temp1, temp2, dist, ever)); - - public static IntPtr tinterrel_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, bool tinter) - => SafeExecution(() => MEOSExternalFunctions.tinterrel_tcbuffer_cbuffer(temp, cb, tinter)); - - public static IntPtr tinterrel_tcbuffer_geo(IntPtr temp, IntPtr gs, bool tinter) - => SafeExecution(() => MEOSExternalFunctions.tinterrel_tcbuffer_geo(temp, gs, tinter)); - - public static int edisjoint_tcbuffer_geo_native(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.edisjoint_tcbuffer_geo_native(temp, gs)); - - public static int eatouches_tcbuffer_geo_native(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.eatouches_tcbuffer_geo_native(temp, gs, ever)); - - public static IntPtr clipper2_clip_poly_poly(IntPtr subj, IntPtr clip, int op) - => SafeExecution(() => MEOSExternalFunctions.clipper2_clip_poly_poly(subj, clip, op)); - - public static IntPtr clipper2_traj_poly_periods(IntPtr seq, IntPtr gs, IntPtr out_count) - => SafeExecution(() => MEOSExternalFunctions.clipper2_traj_poly_periods(seq, gs, out_count)); - - public static IntPtr clip_poly_poly(IntPtr subj, IntPtr clip, IntPtr operation) - => SafeExecution(() => MEOSExternalFunctions.clip_poly_poly(subj, clip, operation)); - - public static int lwproj_lookup(int srid_from, int srid_to, IntPtr pj) - => SafeExecution(() => MEOSExternalFunctions.lwproj_lookup(srid_from, srid_to, pj)); - - public static int spheroid_init_from_srid(int srid, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.spheroid_init_from_srid(srid, s)); - - public static void srid_check_latlong(int srid) - => SafeExecution(() => MEOSExternalFunctions.srid_check_latlong(srid)); - - public static int srid_is_latlong(int srid) - => SafeExecution(() => MEOSExternalFunctions.srid_is_latlong(srid)); - - public static IntPtr geom_serialize(IntPtr lwgeom) - => SafeExecution(() => MEOSExternalFunctions.geom_serialize(lwgeom)); - - public static IntPtr geog_serialize(IntPtr lwgeom) - => SafeExecution(() => MEOSExternalFunctions.geog_serialize(lwgeom)); - - public static IntPtr meos_postgis_valid_typmod(IntPtr gs, int typmod) - => SafeExecution(() => MEOSExternalFunctions.meos_postgis_valid_typmod(gs, typmod)); - - public static string geo_as_wkt(IntPtr gs, int precision, bool extended) - => SafeExecution(() => MEOSExternalFunctions.geo_as_wkt(gs, precision, extended)); - - public static IntPtr box2d_to_lwgeom(IntPtr box, int srid) - => SafeExecution(() => MEOSExternalFunctions.box2d_to_lwgeom(box, srid)); - - public static IntPtr box3d_to_lwgeom(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.box3d_to_lwgeom(box)); - - public static IntPtr MEOS_POSTGIS2GEOS(IntPtr pglwgeom) - => SafeExecution(() => MEOSExternalFunctions.MEOS_POSTGIS2GEOS(pglwgeom)); - - public static IntPtr MEOS_GEOS2POSTGIS(IntPtr geom, byte want3d) - => SafeExecution(() => MEOSExternalFunctions.MEOS_GEOS2POSTGIS(geom, want3d)); - - public static bool geom_spatialrel(IntPtr gs1, IntPtr gs2, IntPtr rel) - => SafeExecution(() => MEOSExternalFunctions.geom_spatialrel(gs1, gs2, rel)); - - public static IntPtr lwgeom_line_interpolate_point(IntPtr geom, double fraction, int srid, byte repeat) - => SafeExecution(() => MEOSExternalFunctions.lwgeom_line_interpolate_point(geom, fraction, srid, repeat)); - - public static void point_get_coords(IntPtr point, bool hasz, IntPtr x, IntPtr y, IntPtr z) - => SafeExecution(() => MEOSExternalFunctions.point_get_coords(point, hasz, x, y, z)); - - public static void tstzset_stbox_slice(long tsdatum, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tstzset_stbox_slice(tsdatum, box)); - - public static void tstzspanset_stbox_slice(long psdatum, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_stbox_slice(psdatum, box)); - - public static bool stbox_index_leaf_consistent(IntPtr key, IntPtr query, int strategy) - => SafeExecution(() => MEOSExternalFunctions.stbox_index_leaf_consistent(key, query, strategy)); - - public static bool stbox_gist_inner_consistent(IntPtr key, IntPtr query, int strategy) - => SafeExecution(() => MEOSExternalFunctions.stbox_gist_inner_consistent(key, query, strategy)); - - public static bool stbox_index_recheck(int strategy) - => SafeExecution(() => MEOSExternalFunctions.stbox_index_recheck(strategy)); - - public static IntPtr stboxnode_copy(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stboxnode_copy(box)); - - public static int getQuadrant8D(IntPtr centroid, IntPtr inBox) - => SafeExecution(() => MEOSExternalFunctions.getQuadrant8D(centroid, inBox)); - - public static void stboxnode_init(IntPtr centroid, IntPtr nodebox) - => SafeExecution(() => MEOSExternalFunctions.stboxnode_init(centroid, nodebox)); - - public static void stboxnode_quadtree_next(IntPtr nodebox, IntPtr centroid, int quadrant, IntPtr next_nodebox) - => SafeExecution(() => MEOSExternalFunctions.stboxnode_quadtree_next(nodebox, centroid, quadrant, next_nodebox)); - - public static void stboxnode_kdtree_next(IntPtr nodebox, IntPtr centroid, int node, int level, IntPtr next_nodebox) - => SafeExecution(() => MEOSExternalFunctions.stboxnode_kdtree_next(nodebox, centroid, node, level, next_nodebox)); - - public static bool overlap8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overlap8D(nodebox, query)); - - public static bool overlapKD(IntPtr nodebox, IntPtr query, int level) - => SafeExecution(() => MEOSExternalFunctions.overlapKD(nodebox, query, level)); - - public static bool contain8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.contain8D(nodebox, query)); - - public static bool containKD(IntPtr nodebox, IntPtr query, int level) - => SafeExecution(() => MEOSExternalFunctions.containKD(nodebox, query, level)); - - public static bool left8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.left8D(nodebox, query)); - - public static bool overLeft8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overLeft8D(nodebox, query)); - - public static bool right8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.right8D(nodebox, query)); - - public static bool overRight8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overRight8D(nodebox, query)); - - public static bool below8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.below8D(nodebox, query)); - - public static bool overBelow8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overBelow8D(nodebox, query)); - - public static bool above8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.above8D(nodebox, query)); - - public static bool overAbove8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overAbove8D(nodebox, query)); - - public static bool front8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.front8D(nodebox, query)); - - public static bool overFront8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overFront8D(nodebox, query)); - - public static bool back8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.back8D(nodebox, query)); - - public static bool overBack8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overBack8D(nodebox, query)); - - public static bool before8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.before8D(nodebox, query)); - - public static bool overBefore8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overBefore8D(nodebox, query)); - - public static bool after8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.after8D(nodebox, query)); - - public static bool overAfter8D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overAfter8D(nodebox, query)); - - public static double distance_stbox_nodebox(IntPtr query, IntPtr nodebox) - => SafeExecution(() => MEOSExternalFunctions.distance_stbox_nodebox(query, nodebox)); - - public static void tspatial_spgist_get_stbox(long value, int type, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tspatial_spgist_get_stbox(value, type, result)); - - public static void mobilitydb_init() - => SafeExecution(() => MEOSExternalFunctions.mobilitydb_init()); - - public static IntPtr geo_stbox(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geo_stbox(gs)); - - public static IntPtr stbox_geo(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_geo(box)); - - public static IntPtr tcomp_geo_tgeo(IntPtr gs, IntPtr temp, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tcomp_geo_tgeo(gs, temp, func)); - - public static IntPtr tcomp_tgeo_geo(IntPtr temp, IntPtr gs, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tcomp_tgeo_geo(temp, gs, func)); - - public static bool ensure_geoaggstate(IntPtr state, int srid, bool hasz) - => SafeExecution(() => MEOSExternalFunctions.ensure_geoaggstate(state, srid, hasz)); - - public static bool ensure_geoaggstate_state(IntPtr state1, IntPtr state2) - => SafeExecution(() => MEOSExternalFunctions.ensure_geoaggstate_state(state1, state2)); - - public static IntPtr[] tpoint_transform_tcentroid(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tpoint_transform_tcentroid(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tpointinst_tcentroid_finalfn(IntPtr instants, int count, int srid) - => SafeExecution(() => MEOSExternalFunctions.tpointinst_tcentroid_finalfn(instants, count, srid)); - - public static IntPtr tpointseq_tcentroid_finalfn(IntPtr sequences, int count, int srid) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_tcentroid_finalfn(sequences, count, srid)); - - public static bool point3d_min_dist(IntPtr p1, IntPtr p2, IntPtr p3, IntPtr p4, IntPtr fraction) - => SafeExecution(() => MEOSExternalFunctions.point3d_min_dist(p1, p2, p3, p4, fraction)); - - public static int tgeompointsegm_distance_turnpt(long start1, long end1, long start2, long end2, long param, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tgeompointsegm_distance_turnpt(start1, end1, start2, end2, param, lower, upper, t1, t2)); - - public static int tgeogpointsegm_distance_turnpt(long start1, long end1, long start2, long end2, long param, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tgeogpointsegm_distance_turnpt(start1, end1, start2, end2, param, lower, upper, t1, t2)); - - public static double tinstant_distance(IntPtr inst1, IntPtr inst2, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tinstant_distance(inst1, inst2, func)); - - public static IntPtr[] tpointseq_at_geom(IntPtr seq, IntPtr gs) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tpointseq_at_geom(seq, gs, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tpointseq_interperiods(IntPtr seq, IntPtr gs) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tpointseq_interperiods(seq, gs, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static void datum_point4d(long value, IntPtr p) - => SafeExecution(() => MEOSExternalFunctions.datum_point4d(value, p)); - - public static int geopoint_cmp(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geopoint_cmp(gs1, gs2)); - - public static bool geopoint_eq(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geopoint_eq(gs1, gs2)); - - public static bool geopoint_same(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.geopoint_same(gs1, gs2)); - - public static bool datum_point_eq(long point1, long point2) - => SafeExecution(() => MEOSExternalFunctions.datum_point_eq(point1, point2)); - - public static bool datum_point_same(long point1, long point2) - => SafeExecution(() => MEOSExternalFunctions.datum_point_same(point1, point2)); - - public static long datum2_point_eq(long point1, long point2) - => SafeExecution(() => MEOSExternalFunctions.datum2_point_eq(point1, point2)); - - public static long datum2_point_ne(long point1, long point2) - => SafeExecution(() => MEOSExternalFunctions.datum2_point_ne(point1, point2)); - - public static long datum2_point_same(long point1, long point2) - => SafeExecution(() => MEOSExternalFunctions.datum2_point_same(point1, point2)); - - public static long datum2_point_nsame(long point1, long point2) - => SafeExecution(() => MEOSExternalFunctions.datum2_point_nsame(point1, point2)); - - public static long datum2_geom_centroid(long geo) - => SafeExecution(() => MEOSExternalFunctions.datum2_geom_centroid(geo)); - - public static long datum2_geog_centroid(long geo) - => SafeExecution(() => MEOSExternalFunctions.datum2_geog_centroid(geo)); - - public static IntPtr[] geo_extract_elements(IntPtr gs) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.geo_extract_elements(gs, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr geo_serialize(IntPtr geom) - => SafeExecution(() => MEOSExternalFunctions.geo_serialize(geom)); - - public static IntPtr geo_distance_fn(short flags) - => SafeExecution(() => MEOSExternalFunctions.geo_distance_fn(flags)); - - public static IntPtr pt_distance_fn(short flags) - => SafeExecution(() => MEOSExternalFunctions.pt_distance_fn(flags)); - - public static long datum_geom_distance2d(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_distance2d(geom1, geom2)); - - public static long datum_geom_distance3d(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_distance3d(geom1, geom2)); - - public static long datum_geog_distance(long geog1, long geog2) - => SafeExecution(() => MEOSExternalFunctions.datum_geog_distance(geog1, geog2)); - - public static long datum_pt_distance2d(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_pt_distance2d(geom1, geom2)); - - public static long datum_pt_distance3d(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_pt_distance3d(geom1, geom2)); - - public static short spatial_flags(long d, int basetype) - => SafeExecution(() => MEOSExternalFunctions.spatial_flags(d, basetype)); - - public static bool ensure_srid_is_latlong(int srid) - => SafeExecution(() => MEOSExternalFunctions.ensure_srid_is_latlong(srid)); - - public static bool ensure_spatial_validity(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_spatial_validity(temp1, temp2)); - - public static bool ensure_not_geodetic(short flags) - => SafeExecution(() => MEOSExternalFunctions.ensure_not_geodetic(flags)); - - public static bool ensure_same_geodetic(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_geodetic(flags1, flags2)); - - public static bool ensure_same_geodetic_geo(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_geodetic_geo(gs1, gs2)); - - public static bool ensure_same_geodetic_tspatial_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_geodetic_tspatial_geo(temp, gs)); - - public static bool ensure_same_geodetic_tspatial_base(IntPtr temp, long @base) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_geodetic_tspatial_base(temp, @base)); - - public static bool ensure_srid_known(int srid) - => SafeExecution(() => MEOSExternalFunctions.ensure_srid_known(srid)); - - public static bool ensure_same_srid(int srid1, int srid2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_srid(srid1, srid2)); - - public static bool ensure_srid_reconcile(int srid1, int srid2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.ensure_srid_reconcile(srid1, srid2, result)); - - public static bool ensure_same_dimensionality(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_dimensionality(flags1, flags2)); - - public static bool same_spatial_dimensionality(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.same_spatial_dimensionality(flags1, flags2)); - - public static bool ensure_same_spatial_dimensionality(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_spatial_dimensionality(flags1, flags2)); - - public static bool ensure_same_dimensionality_geo(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_dimensionality_geo(gs1, gs2)); - - public static bool same_dimensionality_tspatial_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.same_dimensionality_tspatial_geo(temp, gs)); - - public static bool ensure_same_dimensionality_tspatial_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_dimensionality_tspatial_geo(temp, gs)); - - public static bool ensure_same_spatial_dimensionality_stbox_geo(IntPtr box, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_spatial_dimensionality_stbox_geo(box, gs)); - - public static bool ensure_same_geodetic_stbox_geo(IntPtr box, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_geodetic_stbox_geo(box, gs)); - - public static bool ensure_has_Z_geo(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_Z_geo(gs)); - - public static bool ensure_has_not_Z_geo(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_not_Z_geo(gs)); - - public static bool ensure_has_M_geo(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_M_geo(gs)); - - public static bool ensure_has_not_M_geo(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_not_M_geo(gs)); - - public static bool ensure_not_geodetic_geo(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_not_geodetic_geo(gs)); - - public static bool ensure_point_type(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_point_type(gs)); - - public static bool ensure_mline_type(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_mline_type(gs)); - - public static bool circle_type(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.circle_type(gs)); - - public static bool ensure_circle_type(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_circle_type(gs)); - - public static bool ensure_not_empty(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_not_empty(gs)); - - public static bool ensure_valid_stbox_geo(IntPtr box, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_stbox_geo(box, gs)); - - public static bool ensure_valid_tspatial_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tspatial_geo(temp, gs)); - - public static bool ensure_valid_tspatial_base(IntPtr temp, long @base) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tspatial_base(temp, @base)); - - public static bool ensure_valid_tspatial_tspatial(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tspatial_tspatial(temp1, temp2)); - - public static bool ensure_valid_spatial_stbox_stbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_spatial_stbox_stbox(box1, box2)); - - public static bool ensure_valid_tgeo_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tgeo_stbox(temp, box)); - - public static bool ensure_valid_geo_geo(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_geo_geo(gs1, gs2)); - - public static bool ensure_valid_tgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tgeo_geo(temp, gs)); - - public static bool ensure_valid_tgeo_tgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tgeo_tgeo(temp1, temp2)); - - public static bool ensure_valid_tpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tpoint_geo(temp, gs)); - - public static bool ensure_valid_tpoint_tpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tpoint_tpoint(temp1, temp2)); - - public static bool mline_type(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.mline_type(gs)); - - public static IntPtr tpoint_get_coord(IntPtr temp, int coord) - => SafeExecution(() => MEOSExternalFunctions.tpoint_get_coord(temp, coord)); - - public static int eacomp_tgeo_geo(IntPtr temp, IntPtr gs, IntPtr func, bool ever) - => SafeExecution(() => MEOSExternalFunctions.eacomp_tgeo_geo(temp, gs, func, ever)); - - public static IntPtr closest_point2d_on_segment_ratio(IntPtr p, IntPtr A, IntPtr B, IntPtr closest) - => SafeExecution(() => MEOSExternalFunctions.closest_point2d_on_segment_ratio(p, A, B, closest)); - - public static IntPtr closest_point3dz_on_segment_ratio(IntPtr p, IntPtr A, IntPtr B, IntPtr closest) - => SafeExecution(() => MEOSExternalFunctions.closest_point3dz_on_segment_ratio(p, A, B, closest)); - - public static IntPtr closest_point_on_segment_sphere(IntPtr p, IntPtr A, IntPtr B, IntPtr closest, IntPtr dist) - => SafeExecution(() => MEOSExternalFunctions.closest_point_on_segment_sphere(p, A, B, closest, dist)); - - public static void interpolate_point4d_spheroid(IntPtr p1, IntPtr p2, IntPtr p, IntPtr s, double f) - => SafeExecution(() => MEOSExternalFunctions.interpolate_point4d_spheroid(p1, p2, p, s, f)); - - public static IntPtr geopoint_make(double x, double y, double z, bool hasz, bool geodetic, int srid) - => SafeExecution(() => MEOSExternalFunctions.geopoint_make(x, y, z, hasz, geodetic, srid)); - - public static IntPtr lwcircle_make(double x, double y, double radius, int srid) - => SafeExecution(() => MEOSExternalFunctions.lwcircle_make(x, y, radius, srid)); - - public static IntPtr geocircle_make(double x, double y, double radius, int srid) - => SafeExecution(() => MEOSExternalFunctions.geocircle_make(x, y, radius, srid)); - - public static long pointsegm_interpolate(long start, long end, IntPtr ratio) - => SafeExecution(() => MEOSExternalFunctions.pointsegm_interpolate(start, end, ratio)); - - public static IntPtr pointsegm_locate(long start, long end, long point, IntPtr dist) - => SafeExecution(() => MEOSExternalFunctions.pointsegm_locate(start, end, point, dist)); - - public static int tgeompointsegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tgeompointsegm_intersection(start1, end1, start2, end2, lower, upper, t1, t2)); - - public static int tgeogpointsegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tgeogpointsegm_intersection(start1, end1, start2, end2, lower, upper, t1, t2)); - - public static bool geopoint_collinear(long value1, long value2, long value3, double ratio, bool hasz, bool geodetic) - => SafeExecution(() => MEOSExternalFunctions.geopoint_collinear(value1, value2, value3, ratio, hasz, geodetic)); - - public static IntPtr lwpointarr_remove_duplicates(IntPtr points, int count, IntPtr newcount) - => SafeExecution(() => MEOSExternalFunctions.lwpointarr_remove_duplicates(points, count, newcount)); - - public static IntPtr lwpointarr_make_trajectory(IntPtr points, int count, int interp) - => SafeExecution(() => MEOSExternalFunctions.lwpointarr_make_trajectory(points, count, interp)); - - public static IntPtr lwline_make(long value1, long value2) - => SafeExecution(() => MEOSExternalFunctions.lwline_make(value1, value2)); - - public static IntPtr lwcoll_from_points_lines(IntPtr points, IntPtr lines, int npoints, int nlines) - => SafeExecution(() => MEOSExternalFunctions.lwcoll_from_points_lines(points, lines, npoints, nlines)); - - public static int tpointseq_stops_iter(IntPtr seq, double maxdist, int mintunits, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_stops_iter(seq, maxdist, mintunits, result)); - - public static long datum_geom_contains(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_contains(geom1, geom2)); - - public static long datum_geom_covers(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_covers(geom1, geom2)); - - public static long datum_geom_disjoint2d(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_disjoint2d(geom1, geom2)); - - public static long datum_geom_disjoint3d(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_disjoint3d(geom1, geom2)); - - public static long datum_geog_disjoint(long geog1, long geog2) - => SafeExecution(() => MEOSExternalFunctions.datum_geog_disjoint(geog1, geog2)); - - public static long datum_geom_intersects2d(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_intersects2d(geom1, geom2)); - - public static long datum_geom_intersects3d(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_intersects3d(geom1, geom2)); - - public static long datum_geog_intersects(long geog1, long geog2) - => SafeExecution(() => MEOSExternalFunctions.datum_geog_intersects(geog1, geog2)); - - public static long datum_geom_touches(long geom1, long geom2) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_touches(geom1, geom2)); - - public static long datum_geom_dwithin2d(long geom1, long geom2, long dist) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_dwithin2d(geom1, geom2, dist)); - - public static long datum_geom_dwithin3d(long geom1, long geom2, long dist) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_dwithin3d(geom1, geom2, dist)); - - public static long datum_geog_dwithin(long geog1, long geog2, long dist) - => SafeExecution(() => MEOSExternalFunctions.datum_geog_dwithin(geog1, geog2, dist)); - - public static long datum_geom_relate_pattern(long geog1, long geog2, long p) - => SafeExecution(() => MEOSExternalFunctions.datum_geom_relate_pattern(geog1, geog2, p)); - - public static IntPtr geo_disjoint_fn(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.geo_disjoint_fn(flags1, flags2)); - - public static IntPtr geo_disjoint_fn_geo(short flags1, IntPtr flags2) - => SafeExecution(() => MEOSExternalFunctions.geo_disjoint_fn_geo(flags1, flags2)); - - public static IntPtr geo_intersects_fn(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.geo_intersects_fn(flags1, flags2)); - - public static IntPtr geo_intersects_fn_geo(short flags1, IntPtr flags2) - => SafeExecution(() => MEOSExternalFunctions.geo_intersects_fn_geo(flags1, flags2)); - - public static IntPtr geo_dwithin_fn(short flags1, short flags2) - => SafeExecution(() => MEOSExternalFunctions.geo_dwithin_fn(flags1, flags2)); - - public static IntPtr geo_dwithin_fn_geo(short flags1, IntPtr flags2) - => SafeExecution(() => MEOSExternalFunctions.geo_dwithin_fn_geo(flags1, flags2)); - - public static int tpointsegm_tdwithin_turnpt(long start1, long end1, long start2, long end2, long value, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tpointsegm_tdwithin_turnpt(start1, end1, start2, end2, value, lower, upper, t1, t2)); - - public static int spatialrel_geo_geo(IntPtr gs1, IntPtr gs2, long param, IntPtr func, int numparam, bool invert) - => SafeExecution(() => MEOSExternalFunctions.spatialrel_geo_geo(gs1, gs2, param, func, numparam, invert)); - - public static int spatialrel_tgeo_tgeo(IntPtr temp1, IntPtr temp2, long param, IntPtr func, int numparam) - => SafeExecution(() => MEOSExternalFunctions.spatialrel_tgeo_tgeo(temp1, temp2, param, func, numparam)); - - public static int ea_contains_geo_tgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_geo_tgeo(gs, temp, ever)); - - public static int ea_contains_tgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_tgeo_geo(temp, gs, ever)); - - public static int ea_contains_tgeo_tgeo(IntPtr temp, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_tgeo_tgeo(temp, temp2, ever)); - - public static int ea_covers_geo_tgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_geo_tgeo(gs, temp, ever)); - - public static int ea_covers_tgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_tgeo_geo(temp, gs, ever)); - - public static int ea_covers_tgeo_tgeo(IntPtr temp, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_tgeo_tgeo(temp, temp2, ever)); - - public static int ea_disjoint_geo_tgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_geo_tgeo(gs, temp, ever)); - - public static int ea_disjoint_tgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_tgeo_geo(temp, gs, ever)); - - public static int ea_disjoint_tgeo_tgeo(IntPtr temp, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_tgeo_tgeo(temp, temp2, ever)); - - public static int ea_intersects_geo_tgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_geo_tgeo(gs, temp, ever)); - - public static int ea_intersects_tgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_tgeo_geo(temp, gs, ever)); - - public static int ea_intersects_tgeo_tgeo(IntPtr temp, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_tgeo_tgeo(temp, temp2, ever)); - - public static int ea_touches_tpoint_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_tpoint_geo(temp, gs, ever)); - - public static int ea_touches_tgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_tgeo_geo(temp, gs, ever)); - - public static int ea_touches_tgeo_tgeo(IntPtr temp, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_tgeo_tgeo(temp, temp2, ever)); - - public static int ea_dwithin_tgeo_geo(IntPtr temp, IntPtr gs, double dist, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_dwithin_tgeo_geo(temp, gs, dist, ever)); - - public static int ea_dwithin_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double dist, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_dwithin_tgeo_tgeo(temp1, temp2, dist, ever)); - - public static int ea_spatialrel_tspatial_geo(IntPtr temp, IntPtr gs, IntPtr func, bool ever, bool invert) - => SafeExecution(() => MEOSExternalFunctions.ea_spatialrel_tspatial_geo(temp, gs, func, ever, invert)); - - public static int ea_spatialrel_tspatial_tspatial(IntPtr temp1, IntPtr temp2, IntPtr func, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_spatialrel_tspatial_tspatial(temp1, temp2, func, ever)); - - public static IntPtr tspatialrel_tspatial_base(IntPtr temp, long @base, long param, IntPtr func, int numparam, bool invert) - => SafeExecution(() => MEOSExternalFunctions.tspatialrel_tspatial_base(temp, @base, param, func, numparam, invert)); - - public static IntPtr tspatialrel_tspatial_tspatial(IntPtr temp1, IntPtr temp2, long param, IntPtr func, int numparam, bool invert) - => SafeExecution(() => MEOSExternalFunctions.tspatialrel_tspatial_tspatial(temp1, temp2, param, func, numparam, invert)); - - public static IntPtr tinterrel_tgeo_geo(IntPtr temp, IntPtr gs, bool tinter) - => SafeExecution(() => MEOSExternalFunctions.tinterrel_tgeo_geo(temp, gs, tinter)); - - public static IntPtr tinterrel_tspatial_base(IntPtr temp, long @base, bool tinter, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tinterrel_tspatial_base(temp, @base, tinter, func)); - - public static IntPtr tinterrel_tspatial_tspatial(IntPtr temp1, IntPtr temp2, bool tinter) - => SafeExecution(() => MEOSExternalFunctions.tinterrel_tspatial_tspatial(temp1, temp2, tinter)); - - public static IntPtr tdwithin_tspatial_tspatial(IntPtr sync1, IntPtr sync2, long dist, IntPtr func, IntPtr tpfn) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_tspatial_tspatial(sync1, sync2, dist, func, tpfn)); - - public static int tdwithin_add_solutions(int solutions, long lower, long upper, bool lower_inc, bool upper_inc, bool upper_inc1, long t1, long t2, IntPtr instants, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_add_solutions(solutions, lower, upper, lower_inc, upper_inc, upper_inc1, t1, t2, instants, result)); - - public static IntPtr tdwithin_tspatial_spatial(IntPtr temp, long @base, long dist, IntPtr func, IntPtr tpfn) - => SafeExecution(() => MEOSExternalFunctions.tdwithin_tspatial_spatial(temp, @base, dist, func, tpfn)); - - public static IntPtr bitmatrix_make(IntPtr count, int ndims) - => SafeExecution(() => MEOSExternalFunctions.bitmatrix_make(count, ndims)); - - public static int tpoint_set_tiles(IntPtr temp, IntPtr state, IntPtr bm) - => SafeExecution(() => MEOSExternalFunctions.tpoint_set_tiles(temp, state, bm)); - - public static IntPtr tpoint_at_tile(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpoint_at_tile(temp, box)); - - public static void stbox_tile_state_set(double x, double y, double z, long t, double xsize, double ysize, double zsize, IntPtr tunits, bool hasx, bool hasz, bool hast, int srid, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_tile_state_set(x, y, z, t, xsize, ysize, zsize, tunits, hasx, hasz, hast, srid, result)); - - public static IntPtr stbox_tile_state_make(IntPtr temp, IntPtr box, double xsize, double ysize, double zsize, IntPtr duration, int sorigin, long torigin, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.stbox_tile_state_make(temp, box, xsize, ysize, zsize, duration, sorigin, torigin, border_inc)); - - public static void stbox_tile_state_next(IntPtr state) - => SafeExecution(() => MEOSExternalFunctions.stbox_tile_state_next(state)); - - public static bool stbox_tile_state_get(IntPtr state, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.stbox_tile_state_get(state, box)); - - public static IntPtr tgeo_space_time_tile_init(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool bitmatrix, bool border_inc, IntPtr ntiles) - => SafeExecution(() => MEOSExternalFunctions.tgeo_space_time_tile_init(temp, xsize, ysize, zsize, duration, sorigin, torigin, bitmatrix, border_inc, ntiles)); - - public static IntPtr stbox_space_time_tile(IntPtr point, long t, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool hasx, bool hast) - => SafeExecution(() => MEOSExternalFunctions.stbox_space_time_tile(point, t, xsize, ysize, zsize, duration, sorigin, torigin, hasx, hast)); - - public static IntPtr create_trip(IntPtr lines, IntPtr maxSpeeds, IntPtr categories, uint noEdges, long startTime, bool disturbData, int verbosity) - => SafeExecution(() => MEOSExternalFunctions.create_trip(lines, maxSpeeds, categories, noEdges, startTime, disturbData, verbosity)); - - public static IntPtr spatialarr_wkt_out(IntPtr spatialarr, int basetype, int count, int maxdd, bool extended) - => SafeExecution(() => MEOSExternalFunctions.spatialarr_wkt_out(spatialarr, basetype, count, maxdd, extended)); - - public static string spatialbase_as_text(long value, int type, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.spatialbase_as_text(value, type, maxdd)); - - public static string spatialbase_as_ewkt(long value, int type, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.spatialbase_as_ewkt(value, type, maxdd)); - - public static bool point_transf_pj(IntPtr gs, int srid_to, IntPtr pj) - => SafeExecution(() => MEOSExternalFunctions.point_transf_pj(gs, srid_to, pj)); - - public static void tgeoinst_set_stbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tgeoinst_set_stbox(inst, box)); - - public static void tgeoinstarr_set_stbox(IntPtr instants, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tgeoinstarr_set_stbox(instants, count, box)); - - public static void tgeoseq_expand_stbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tgeoseq_expand_stbox(seq, inst)); - - public static void tspatialinst_set_stbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tspatialinst_set_stbox(inst, box)); - - public static void tspatialinstarr_set_stbox(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tspatialinstarr_set_stbox(instants, count, lower_inc, upper_inc, interp, box)); - - public static void tspatialseqarr_set_stbox(IntPtr sequences, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tspatialseqarr_set_stbox(sequences, count, box)); - - public static void tspatialseq_expand_stbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tspatialseq_expand_stbox(seq, inst)); - - public static void spatialarr_set_bbox(IntPtr values, int basetype, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.spatialarr_set_bbox(values, basetype, count, box)); - - public static bool boxop_tspatial_stbox(IntPtr temp, IntPtr box, IntPtr @bool, bool invert) - => SafeExecution(() => MEOSExternalFunctions.boxop_tspatial_stbox(temp, box, @bool, invert)); - - public static bool boxop_tspatial_tspatial(IntPtr temp1, IntPtr temp2, IntPtr @bool) - => SafeExecution(() => MEOSExternalFunctions.boxop_tspatial_tspatial(temp1, temp2, @bool)); - - public static bool srid_parse(IntPtr str, IntPtr srid) - => SafeExecution(() => MEOSExternalFunctions.srid_parse(str, srid)); - - public static bool spatial_parse_elem(IntPtr str, int temptype, byte delim, IntPtr temp_srid, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.spatial_parse_elem(str, temptype, delim, temp_srid, result)); - - public static bool geo_parse(IntPtr str, int basetype, byte delim, IntPtr srid, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.geo_parse(str, basetype, delim, srid, result)); - - public static IntPtr stbox_parse_dims(IntPtr str, bool geodetic, int srid, string type_str) - => SafeExecution(() => MEOSExternalFunctions.stbox_parse_dims(str, geodetic, srid, type_str)); - - public static IntPtr stbox_parse(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.stbox_parse(str)); - - public static IntPtr tpoint_parse(IntPtr str, int temptype) - => SafeExecution(() => MEOSExternalFunctions.tpoint_parse(str, temptype)); - - public static IntPtr tspatialinst_parse(IntPtr str, int temptype, bool end, IntPtr temp_srid) - => SafeExecution(() => MEOSExternalFunctions.tspatialinst_parse(str, temptype, end, temp_srid)); - - public static IntPtr tspatialseq_disc_parse(IntPtr str, int temptype, IntPtr temp_srid) - => SafeExecution(() => MEOSExternalFunctions.tspatialseq_disc_parse(str, temptype, temp_srid)); - - public static IntPtr tspatialseq_cont_parse(IntPtr str, int temptype, int interp, bool end, IntPtr temp_srid) - => SafeExecution(() => MEOSExternalFunctions.tspatialseq_cont_parse(str, temptype, interp, end, temp_srid)); - - public static IntPtr tspatialseqset_parse(IntPtr str, int temptype, int interp, IntPtr temp_srid) - => SafeExecution(() => MEOSExternalFunctions.tspatialseqset_parse(str, temptype, interp, temp_srid)); - - public static IntPtr tspatial_parse(IntPtr str, int temptype) - => SafeExecution(() => MEOSExternalFunctions.tspatial_parse(str, temptype)); - - public static bool h3_are_neighbor_cells_meos(IntPtr origin, IntPtr destination) - => SafeExecution(() => MEOSExternalFunctions.h3_are_neighbor_cells_meos(origin, destination)); - - public static IntPtr h3_cells_to_directed_edge_meos(IntPtr origin, IntPtr destination) - => SafeExecution(() => MEOSExternalFunctions.h3_cells_to_directed_edge_meos(origin, destination)); - - public static bool h3_is_valid_directed_edge_meos(IntPtr edge) - => SafeExecution(() => MEOSExternalFunctions.h3_is_valid_directed_edge_meos(edge)); - - public static IntPtr h3_get_directed_edge_origin_meos(IntPtr edge) - => SafeExecution(() => MEOSExternalFunctions.h3_get_directed_edge_origin_meos(edge)); - - public static IntPtr h3_get_directed_edge_destination_meos(IntPtr edge) - => SafeExecution(() => MEOSExternalFunctions.h3_get_directed_edge_destination_meos(edge)); - - public static IntPtr h3_cell_to_parent_meos(IntPtr origin, int resolution) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_parent_meos(origin, resolution)); - - public static IntPtr h3_cell_to_center_child_meos(IntPtr origin, int resolution) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_center_child_meos(origin, resolution)); - - public static IntPtr h3_cell_to_child_pos_meos(IntPtr child, int parentRes) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_child_pos_meos(child, parentRes)); - - public static IntPtr h3_child_pos_to_cell_meos(IntPtr childPos, IntPtr parent, int childRes) - => SafeExecution(() => MEOSExternalFunctions.h3_child_pos_to_cell_meos(childPos, parent, childRes)); - - public static int h3_get_resolution_meos(IntPtr hex) - => SafeExecution(() => MEOSExternalFunctions.h3_get_resolution_meos(hex)); - - public static int h3_get_base_cell_number_meos(IntPtr hex) - => SafeExecution(() => MEOSExternalFunctions.h3_get_base_cell_number_meos(hex)); - - public static bool h3_is_valid_cell_meos(IntPtr hex) - => SafeExecution(() => MEOSExternalFunctions.h3_is_valid_cell_meos(hex)); - - public static bool h3_is_res_class_iii_meos(IntPtr hex) - => SafeExecution(() => MEOSExternalFunctions.h3_is_res_class_iii_meos(hex)); - - public static bool h3_is_pentagon_meos(IntPtr hex) - => SafeExecution(() => MEOSExternalFunctions.h3_is_pentagon_meos(hex)); - - public static IntPtr h3_get_num_cells_meos(int resolution) - => SafeExecution(() => MEOSExternalFunctions.h3_get_num_cells_meos(resolution)); - - public static IntPtr h3_grid_distance_meos(IntPtr originIndex, IntPtr h3Index) - => SafeExecution(() => MEOSExternalFunctions.h3_grid_distance_meos(originIndex, h3Index)); - - public static IntPtr h3_cell_to_vertex_meos(IntPtr cell, int vertexNum) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_vertex_meos(cell, vertexNum)); - - public static bool h3_is_valid_vertex_meos(IntPtr vertex) - => SafeExecution(() => MEOSExternalFunctions.h3_is_valid_vertex_meos(vertex)); - - public static IntPtr h3index_in(string str) - => SafeExecution(() => MEOSExternalFunctions.h3index_in(str)); - - public static string h3index_out(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3index_out(cell)); - - public static bool h3index_eq(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.h3index_eq(a, b)); - - public static bool h3index_ne(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.h3index_ne(a, b)); - - public static bool h3index_lt(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.h3index_lt(a, b)); - - public static bool h3index_le(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.h3index_le(a, b)); - - public static bool h3index_gt(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.h3index_gt(a, b)); - - public static bool h3index_ge(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.h3index_ge(a, b)); - - public static int h3index_cmp(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.h3index_cmp(a, b)); - - public static int h3index_hash(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3index_hash(cell)); - - public static IntPtr h3_grid_disk(IntPtr origin, int k) - => SafeExecution(() => MEOSExternalFunctions.h3_grid_disk(origin, k)); - - public static IntPtr h3_grid_ring(IntPtr origin, int k) - => SafeExecution(() => MEOSExternalFunctions.h3_grid_ring(origin, k)); - - public static IntPtr h3_grid_path_cells(IntPtr start, IntPtr end) - => SafeExecution(() => MEOSExternalFunctions.h3_grid_path_cells(start, end)); - - public static IntPtr h3_cell_to_children(IntPtr origin, int childRes) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_children(origin, childRes)); - - public static IntPtr h3_compact_cells(IntPtr cells) - => SafeExecution(() => MEOSExternalFunctions.h3_compact_cells(cells)); - - public static IntPtr h3_uncompact_cells(IntPtr cells, int res) - => SafeExecution(() => MEOSExternalFunctions.h3_uncompact_cells(cells, res)); - - public static IntPtr h3_origin_to_directed_edges(IntPtr origin) - => SafeExecution(() => MEOSExternalFunctions.h3_origin_to_directed_edges(origin)); - - public static IntPtr h3_cell_to_vertexes(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_vertexes(cell)); - - public static IntPtr h3_get_icosahedron_faces(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3_get_icosahedron_faces(cell)); - - public static int ensure_valid_th3index_th3index(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_th3index_th3index(temp1, temp2)); - - public static bool ensure_valid_th3index_h3index(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_th3index_h3index(temp, cell)); - - public static bool ensure_valid_th3index_tgeogpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_th3index_tgeogpoint(temp1, temp2)); - - public static long datum2_h3index_eq(long d1, long d2, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_h3index_eq(d1, d2, type)); - - public static long datum2_h3index_ne(long d1, long d2, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_h3index_ne(d1, d2, type)); - - public static bool h3index_set_stbox(IntPtr cell, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.h3index_set_stbox(cell, box)); - - public static void h3indexarr_set_stbox(IntPtr values, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.h3indexarr_set_stbox(values, count, box)); - - public static void th3indexinst_set_stbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.th3indexinst_set_stbox(inst, box)); - - public static void th3indexinstarr_set_stbox(IntPtr instants, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.th3indexinstarr_set_stbox(instants, count, box)); - - public static void th3indexseq_expand_stbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.th3indexseq_expand_stbox(seq, inst)); - - public static IntPtr h3_gs_point_to_cell(IntPtr point, int resolution) - => SafeExecution(() => MEOSExternalFunctions.h3_gs_point_to_cell(point, resolution)); - - public static IntPtr h3_cell_to_gs_point(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_gs_point(cell)); - - public static IntPtr h3_cell_to_gs_boundary(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_gs_boundary(cell)); - - public static IntPtr cell_boundary_to_gs(IntPtr bnd) - => SafeExecution(() => MEOSExternalFunctions.cell_boundary_to_gs(bnd)); - - public static double h3_sample_step_deg(int resolution) - => SafeExecution(() => MEOSExternalFunctions.h3_sample_step_deg(resolution)); - - public static IntPtr h3_latlng_deg_to_cell(double lat_deg, double lng_deg, int resolution) - => SafeExecution(() => MEOSExternalFunctions.h3_latlng_deg_to_cell(lat_deg, lng_deg, resolution)); - - public static IntPtr h3_cell_to_parent_next_meos(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_parent_next_meos(cell)); - - public static IntPtr h3_cell_to_center_child_next_meos(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_center_child_next_meos(cell)); - - public static IntPtr h3_directed_edge_to_gs_boundary(IntPtr edge) - => SafeExecution(() => MEOSExternalFunctions.h3_directed_edge_to_gs_boundary(edge)); - - public static IntPtr h3_vertex_to_gs_point(IntPtr vertex) - => SafeExecution(() => MEOSExternalFunctions.h3_vertex_to_gs_point(vertex)); - - public static IntPtr h3_cell_to_local_ij_meos(IntPtr origin, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_to_local_ij_meos(origin, cell)); - - public static IntPtr h3_local_ij_to_cell_meos(IntPtr origin, IntPtr coord) - => SafeExecution(() => MEOSExternalFunctions.h3_local_ij_to_cell_meos(origin, coord)); - - public static IntPtr h3_unit_from_cstring(string unit) - => SafeExecution(() => MEOSExternalFunctions.h3_unit_from_cstring(unit)); - - public static double h3_cell_area_meos(IntPtr cell, IntPtr unit) - => SafeExecution(() => MEOSExternalFunctions.h3_cell_area_meos(cell, unit)); - - public static double h3_edge_length_meos(IntPtr edge, IntPtr unit) - => SafeExecution(() => MEOSExternalFunctions.h3_edge_length_meos(edge, unit)); - - public static double h3_gs_great_circle_distance_meos(IntPtr a, IntPtr b, IntPtr unit) - => SafeExecution(() => MEOSExternalFunctions.h3_gs_great_circle_distance_meos(a, b, unit)); - - public static long datum_h3_get_resolution(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_get_resolution(d)); - - public static long datum_h3_get_base_cell_number(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_get_base_cell_number(d)); - - public static long datum_h3_is_valid_cell(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_is_valid_cell(d)); - - public static long datum_h3_is_res_class_iii(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_is_res_class_iii(d)); - - public static long datum_h3_is_pentagon(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_is_pentagon(d)); - - public static long datum_h3_cell_to_parent(long cell_d, long res_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_parent(cell_d, res_d)); - - public static long datum_h3_cell_to_parent_next(long cell_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_parent_next(cell_d)); - - public static long datum_h3_cell_to_center_child(long cell_d, long res_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_center_child(cell_d, res_d)); - - public static long datum_h3_cell_to_center_child_next(long cell_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_center_child_next(cell_d)); - - public static long datum_h3_cell_to_child_pos(long cell_d, long parent_res_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_child_pos(cell_d, parent_res_d)); - - public static long datum_h3_child_pos_to_cell(long pos_d, long parent_d, long child_res_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_child_pos_to_cell(pos_d, parent_d, child_res_d)); - - public static long datum_h3_are_neighbor_cells(long origin_d, long dest_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_are_neighbor_cells(origin_d, dest_d)); - - public static long datum_h3_cells_to_directed_edge(long origin_d, long dest_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cells_to_directed_edge(origin_d, dest_d)); - - public static long datum_h3_is_valid_directed_edge(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_is_valid_directed_edge(d)); - - public static long datum_h3_get_directed_edge_origin(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_get_directed_edge_origin(d)); - - public static long datum_h3_get_directed_edge_destination(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_get_directed_edge_destination(d)); - - public static long datum_h3_directed_edge_to_boundary(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_directed_edge_to_boundary(d)); - - public static long datum_h3_cell_to_vertex(long cell_d, long vnum_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_vertex(cell_d, vnum_d)); - - public static long datum_h3_vertex_to_latlng(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_vertex_to_latlng(d)); - - public static long datum_h3_is_valid_vertex(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_is_valid_vertex(d)); - - public static long datum_h3_grid_distance(long origin_d, long dest_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_grid_distance(origin_d, dest_d)); - - public static long datum_h3_cell_to_local_ij(long origin_d, long cell_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_local_ij(origin_d, cell_d)); - - public static long datum_h3_local_ij_to_cell(long origin_d, long coord_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_local_ij_to_cell(origin_d, coord_d)); - - public static long datum_h3_latlng_to_cell(long point_d, long res_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_latlng_to_cell(point_d, res_d)); - - public static long datum_h3_cell_to_latlng(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_latlng(d)); - - public static long datum_h3_cell_to_boundary(long d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_to_boundary(d)); - - public static long datum_h3_cell_area(long cell_d, long unit_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_cell_area(cell_d, unit_d)); - - public static long datum_h3_edge_length(long edge_d, long unit_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_edge_length(edge_d, unit_d)); - - public static long datum_h3_great_circle_distance(long a_d, long b_d, long unit_d) - => SafeExecution(() => MEOSExternalFunctions.datum_h3_great_circle_distance(a_d, b_d, unit_d)); - - public static IntPtr json_in(string str) - => SafeExecution(() => MEOSExternalFunctions.json_in(str)); - - public static string json_out(IntPtr js) - => SafeExecution(() => MEOSExternalFunctions.json_out(js)); - - public static IntPtr jsonb_from_text(IntPtr txt, bool unique_keys) - => SafeExecution(() => MEOSExternalFunctions.jsonb_from_text(txt, unique_keys)); - - public static IntPtr jsonb_in(string str) - => SafeExecution(() => MEOSExternalFunctions.jsonb_in(str)); - - public static string jsonb_out(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_out(jb)); - - public static IntPtr json_make(IntPtr keys_vals, int count) - => SafeExecution(() => MEOSExternalFunctions.json_make(keys_vals, count)); - - public static IntPtr json_make_two_arg(IntPtr keys, IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.json_make_two_arg(keys, values, count)); - - public static IntPtr jsonb_copy(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_copy(jb)); - - public static IntPtr jsonb_make(IntPtr keys_vals, int count) - => SafeExecution(() => MEOSExternalFunctions.jsonb_make(keys_vals, count)); - - public static IntPtr jsonb_make_two_arg(IntPtr keys, IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.jsonb_make_two_arg(keys, values, count)); - - public static bool jsonb_to_bool(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_bool(jb)); - - public static string jsonb_to_cstring(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_cstring(jb)); - - public static int jsonb_to_float4(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_float4(jb)); - - public static int jsonb_to_float8(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_float8(jb)); - - public static short jsonb_to_int16(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_int16(jb)); - - public static int jsonb_to_int32(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_int32(jb)); - - public static IntPtr jsonb_to_int64(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_int64(jb)); - - public static int jsonb_to_numeric(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_numeric(jb)); - - public static IntPtr jsonb_to_text(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_text(jb)); - - public static IntPtr json_array_element(IntPtr js, int element) - => SafeExecution(() => MEOSExternalFunctions.json_array_element(js, element)); - - public static IntPtr json_array_element_text(IntPtr js, int element) - => SafeExecution(() => MEOSExternalFunctions.json_array_element_text(js, element)); - - public static IntPtr[] json_array_elements(IntPtr js) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.json_array_elements(js, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] json_array_elements_text(IntPtr js) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.json_array_elements_text(js, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int json_array_length(IntPtr js) - => SafeExecution(() => MEOSExternalFunctions.json_array_length(js)); - - public static (IntPtr[], IntPtr[]) json_each(IntPtr js) - { - IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.json_each(js, _out_values, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); - IntPtr[] __out_values_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } - return (_resultArr, __out_values_out); - } - finally - { - Marshal.FreeHGlobal(_out_values); - Marshal.FreeHGlobal(_count_count); - } - } - - public static (IntPtr[], IntPtr[]) json_each_text(IntPtr js) - { - IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.json_each_text(js, _out_values, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); - IntPtr[] __out_values_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } - return (_resultArr, __out_values_out); - } - finally - { - Marshal.FreeHGlobal(_out_values); - Marshal.FreeHGlobal(_count_count); - } - } - - public static IntPtr json_extract_path(IntPtr js, IntPtr path_elems, int path_len) - => SafeExecution(() => MEOSExternalFunctions.json_extract_path(js, path_elems, path_len)); - - public static IntPtr json_extract_path_text(IntPtr js, IntPtr path_elems, int path_len) - => SafeExecution(() => MEOSExternalFunctions.json_extract_path_text(js, path_elems, path_len)); - - public static IntPtr json_object_field(IntPtr js, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.json_object_field(js, key)); - - public static IntPtr json_object_field_text(IntPtr js, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.json_object_field_text(js, key)); - - public static IntPtr[] json_object_keys(IntPtr js) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.json_object_keys(js, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr json_typeof(IntPtr js) - => SafeExecution(() => MEOSExternalFunctions.json_typeof(js)); - - public static IntPtr jsonb_array_element(IntPtr jb, int element) - => SafeExecution(() => MEOSExternalFunctions.jsonb_array_element(jb, element)); - - public static IntPtr jsonb_array_element_text(IntPtr jb, int element) - => SafeExecution(() => MEOSExternalFunctions.jsonb_array_element_text(jb, element)); - - public static IntPtr[] jsonb_array_elements(IntPtr jb) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.jsonb_array_elements(jb, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] jsonb_array_elements_text(IntPtr jb) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.jsonb_array_elements_text(jb, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static int jsonb_array_length(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_array_length(jb)); - - public static bool jsonb_contained(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_contained(jb1, jb2)); - - public static bool jsonb_contains(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_contains(jb1, jb2)); - - public static (IntPtr[], IntPtr[]) jsonb_each(IntPtr jb) - { - IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.jsonb_each(jb, _out_values, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); - IntPtr[] __out_values_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } - return (_resultArr, __out_values_out); - } - finally - { - Marshal.FreeHGlobal(_out_values); - Marshal.FreeHGlobal(_count_count); - } - } - - public static (IntPtr[], IntPtr[]) jsonb_each_text(IntPtr jb) - { - IntPtr _out_values = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.jsonb_each_text(jb, _out_values, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_values_arr = Marshal.ReadIntPtr(_out_values); - IntPtr[] __out_values_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_values_out[_i] = Marshal.ReadIntPtr(__out_values_arr, _i * IntPtr.Size); } - return (_resultArr, __out_values_out); - } - finally - { - Marshal.FreeHGlobal(_out_values); - Marshal.FreeHGlobal(_count_count); - } - } - - public static bool jsonb_exists(IntPtr jb, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.jsonb_exists(jb, key)); - - public static bool jsonb_exists_array(IntPtr jb, IntPtr keys_elems, int keys_len, bool any) - => SafeExecution(() => MEOSExternalFunctions.jsonb_exists_array(jb, keys_elems, keys_len, any)); - - public static IntPtr jsonb_extract_path(IntPtr jb, IntPtr path_elems, int path_len) - => SafeExecution(() => MEOSExternalFunctions.jsonb_extract_path(jb, path_elems, path_len)); - - public static IntPtr jsonb_extract_path_text(IntPtr jb, IntPtr path_elems, int path_len) - => SafeExecution(() => MEOSExternalFunctions.jsonb_extract_path_text(jb, path_elems, path_len)); - - public static int jsonb_hash(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_hash(jb)); - - public static IntPtr jsonb_hash_extended(IntPtr jb, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.jsonb_hash_extended(jb, seed)); - - public static IntPtr jsonb_object_field(IntPtr jb, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.jsonb_object_field(jb, key)); - - public static IntPtr jsonb_object_field_text(IntPtr jb, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.jsonb_object_field_text(jb, key)); - - public static IntPtr[] jsonb_object_keys(IntPtr jb) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.jsonb_object_keys(jb, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr json_strip_nulls(IntPtr js, bool strip_in_arrays) - => SafeExecution(() => MEOSExternalFunctions.json_strip_nulls(js, strip_in_arrays)); - - public static IntPtr jsonb_concat(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_concat(jb1, jb2)); - - public static IntPtr jsonb_delete(IntPtr jb, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.jsonb_delete(jb, key)); - - public static IntPtr jsonb_delete_array(IntPtr jb, IntPtr keys_elems, int keys_len) - => SafeExecution(() => MEOSExternalFunctions.jsonb_delete_array(jb, keys_elems, keys_len)); - - public static IntPtr jsonb_delete_index(IntPtr jb, int idx) - => SafeExecution(() => MEOSExternalFunctions.jsonb_delete_index(jb, idx)); - - public static IntPtr jsonb_delete_path(IntPtr jb, IntPtr path_elems, int path_len) - => SafeExecution(() => MEOSExternalFunctions.jsonb_delete_path(jb, path_elems, path_len)); - - public static IntPtr jsonb_insert(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool after) - => SafeExecution(() => MEOSExternalFunctions.jsonb_insert(jb, path_elems, path_len, newjb, after)); - - public static IntPtr jsonb_pretty(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_pretty(jb)); - - public static IntPtr jsonb_set(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool create) - => SafeExecution(() => MEOSExternalFunctions.jsonb_set(jb, path_elems, path_len, newjb, create)); - - public static IntPtr jsonb_set_lax(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, bool create, IntPtr handle_null) - => SafeExecution(() => MEOSExternalFunctions.jsonb_set_lax(jb, path_elems, path_len, newjb, create, handle_null)); - - public static IntPtr jsonb_strip_nulls(IntPtr jb, bool strip_in_arrays) - => SafeExecution(() => MEOSExternalFunctions.jsonb_strip_nulls(jb, strip_in_arrays)); - - public static int jsonb_cmp(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_cmp(jb1, jb2)); - - public static bool jsonb_eq(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_eq(jb1, jb2)); - - public static bool jsonb_ge(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_ge(jb1, jb2)); - - public static bool jsonb_gt(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_gt(jb1, jb2)); - - public static bool jsonb_le(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_le(jb1, jb2)); - - public static bool jsonb_lt(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_lt(jb1, jb2)); - - public static bool jsonb_ne(IntPtr jb1, IntPtr jb2) - => SafeExecution(() => MEOSExternalFunctions.jsonb_ne(jb1, jb2)); - - public static int jsonb_path_exists(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.jsonb_path_exists(jb, jp, vars, silent, tz)); - - public static bool jsonb_path_match(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.jsonb_path_match(jb, jp, vars, silent, tz)); - - public static IntPtr[] jsonb_path_query_all(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.jsonb_path_query_all(jb, jp, vars, silent, tz, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr jsonb_path_query_array(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.jsonb_path_query_array(jb, jp, vars, silent, tz)); - - public static IntPtr jsonb_path_query_first(IntPtr jb, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.jsonb_path_query_first(jb, jp, vars, silent, tz)); - - public static IntPtr jsonpath_in(string str) - => SafeExecution(() => MEOSExternalFunctions.jsonpath_in(str)); - - public static IntPtr jsonpath_copy(IntPtr jp) - => SafeExecution(() => MEOSExternalFunctions.jsonpath_copy(jp)); - - public static string jsonpath_out(IntPtr jp) - => SafeExecution(() => MEOSExternalFunctions.jsonpath_out(jp)); - - public static IntPtr jsonbset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_in(str)); - - public static string jsonbset_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_out(s, maxdd)); - - public static IntPtr jsonbset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_make(values, count)); - - public static IntPtr jsonb_to_set(IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_to_set(jb)); - - public static IntPtr jsonbset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_end_value(s)); - - public static IntPtr jsonbset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_start_value(s)); - - public static bool jsonbset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_value_n(s, n, result)); - - public static IntPtr[] jsonbset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.jsonbset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr concat_jsonbset_jsonb(IntPtr s, IntPtr jb, bool invert) - => SafeExecution(() => MEOSExternalFunctions.concat_jsonbset_jsonb(s, jb, invert)); - - public static IntPtr jsonbset_array_length(IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_array_length(set)); - - public static IntPtr jsonbset_object_field(IntPtr set, IntPtr key, bool astext, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_object_field(set, key, astext, null_handle)); - - public static IntPtr jsonbset_array_element(IntPtr set, int idx, bool astext, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_array_element(set, idx, astext, null_handle)); - - public static IntPtr jsonbset_delete_index(IntPtr set, int idx) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_delete_index(set, idx)); - - public static IntPtr jsonbset_delete(IntPtr set, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_delete(set, key)); - - public static IntPtr jsonbset_delete_array(IntPtr set, IntPtr keys, int count) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_delete_array(set, keys, count)); - - public static IntPtr jsonbset_exists(IntPtr set, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_exists(set, key)); - - public static IntPtr jsonbset_exists_array(IntPtr set, IntPtr keys, int count, bool any) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_exists_array(set, keys, count, any)); - - public static IntPtr jsonbset_set(IntPtr set, IntPtr keys, int count, IntPtr newjb, bool create, IntPtr null_handle, bool lax) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_set(set, keys, count, newjb, create, null_handle, lax)); - - public static IntPtr jsonbset_to_alphanumset(IntPtr set, string key, int settype, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_to_alphanumset(set, key, settype, null_handle)); - - public static IntPtr jsonbset_to_intset(IntPtr set, string key, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_to_intset(set, key, null_handle)); - - public static IntPtr jsonbset_to_floatset(IntPtr set, string key, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_to_floatset(set, key, null_handle)); - - public static IntPtr jsonbset_to_textset_key(IntPtr set, string key, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_to_textset_key(set, key, null_handle)); - - public static IntPtr jsonbset_strip_nulls(IntPtr set, bool strip_in_arrays) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_strip_nulls(set, strip_in_arrays)); - - public static IntPtr jsonbset_pretty(IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_pretty(set)); - - public static IntPtr jsonbset_delete_path(IntPtr set, IntPtr path_elems, int path_len) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_delete_path(set, path_elems, path_len)); - - public static IntPtr jsonbset_extract_path(IntPtr set, IntPtr path_elems, int path_len, bool astext, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_extract_path(set, path_elems, path_len, astext, null_handle)); - - public static IntPtr jsonbset_insert(IntPtr set, IntPtr path_elems, int path_len, IntPtr newjb, bool after) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_insert(set, path_elems, path_len, newjb, after)); - - public static IntPtr jsonbset_path_exists(IntPtr set, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_path_exists(set, jp, vars, silent, tz)); - - public static IntPtr jsonbset_path_match(IntPtr set, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_path_match(set, jp, vars, silent, tz)); - - public static IntPtr jsonbset_path_query_array(IntPtr set, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_path_query_array(set, jp, vars, silent, tz)); - - public static IntPtr jsonbset_path_query_first(IntPtr set, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.jsonbset_path_query_first(set, jp, vars, silent, tz)); - - public static bool contained_jsonb_set(IntPtr jb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_jsonb_set(jb, s)); - - public static bool contains_set_jsonb(IntPtr s, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.contains_set_jsonb(s, jb)); - - public static IntPtr intersection_jsonb_set(IntPtr jb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_jsonb_set(jb, s)); - - public static IntPtr intersection_set_jsonb(IntPtr s, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_jsonb(s, jb)); - - public static IntPtr jsonb_union_transfn(IntPtr state, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.jsonb_union_transfn(state, jb)); - - public static IntPtr minus_jsonb_set(IntPtr jb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_jsonb_set(jb, s)); - - public static IntPtr minus_set_jsonb(IntPtr s, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.minus_set_jsonb(s, jb)); - - public static IntPtr union_jsonb_set(IntPtr jb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_jsonb_set(jb, s)); - - public static IntPtr union_set_jsonb(IntPtr s, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.union_set_jsonb(s, jb)); - - public static IntPtr tjsonb_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_from_mfjson(str)); - - public static IntPtr tjsonb_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_in(str)); - - public static string tjsonb_out(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_out(temp)); - - public static IntPtr tjsonbinst_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tjsonbinst_from_mfjson(mfjson)); - - public static IntPtr tjsonbinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tjsonbinst_in(str)); - - public static IntPtr tjsonbseq_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tjsonbseq_from_mfjson(mfjson)); - - public static IntPtr tjsonbseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tjsonbseq_in(str, interp)); - - public static IntPtr tjsonbseqset_from_mfjson(IntPtr mfjson) - => SafeExecution(() => MEOSExternalFunctions.tjsonbseqset_from_mfjson(mfjson)); - - public static IntPtr tjsonbseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tjsonbseqset_in(str)); - - public static IntPtr tjsonb_from_base_temp(IntPtr jsonb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_from_base_temp(jsonb, temp)); - - public static IntPtr tjsonbinst_make(IntPtr jsonb, long t) - => SafeExecution(() => MEOSExternalFunctions.tjsonbinst_make(jsonb, t)); - - public static IntPtr tjsonbseq_from_base_tstzset(IntPtr jsonb, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tjsonbseq_from_base_tstzset(jsonb, s)); - - public static IntPtr tjsonbseq_from_base_tstzspan(IntPtr jsonb, IntPtr sp) - => SafeExecution(() => MEOSExternalFunctions.tjsonbseq_from_base_tstzspan(jsonb, sp)); - - public static IntPtr tjsonbseqset_from_base_tstzspanset(IntPtr jsonb, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tjsonbseqset_from_base_tstzspanset(jsonb, ss)); - - public static IntPtr tjsonb_to_ttext(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_to_ttext(temp)); - - public static IntPtr ttext_to_tjsonb(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ttext_to_tjsonb(temp)); - - public static IntPtr tjsonb_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_end_value(temp)); - - public static IntPtr tjsonb_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_start_value(temp)); - - public static bool tjsonb_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_value_at_timestamptz(temp, t, strict, value)); - - public static bool tjsonb_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_value_n(temp, n, result)); - - public static IntPtr[] tjsonb_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tjsonb_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr concat_tjsonb_jsonb(IntPtr temp, IntPtr jb, bool invert) - => SafeExecution(() => MEOSExternalFunctions.concat_tjsonb_jsonb(temp, jb, invert)); - - public static IntPtr concat_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.concat_tjsonb_tjsonb(temp1, temp2)); - - public static IntPtr contains_tjsonb_jsonb(IntPtr temp, IntPtr jb, bool invert) - => SafeExecution(() => MEOSExternalFunctions.contains_tjsonb_jsonb(temp, jb, invert)); - - public static IntPtr contains_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contains_tjsonb_tjsonb(temp1, temp2)); - - public static IntPtr null_handle_type_from_string(string str) - => SafeExecution(() => MEOSExternalFunctions.null_handle_type_from_string(str)); - - public static IntPtr tjson_array_element(IntPtr temp, int idx, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjson_array_element(temp, idx, null_handle)); - - public static IntPtr tjson_array_length(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tjson_array_length(temp)); - - public static IntPtr tjson_extract_path(IntPtr temp, IntPtr path_elems, int path_len, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjson_extract_path(temp, path_elems, path_len, null_handle)); - - public static IntPtr tjson_object_field(IntPtr temp, IntPtr key, bool astext, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjson_object_field(temp, key, astext, null_handle)); - - public static IntPtr tjson_strip_nulls(IntPtr temp, bool strip_in_arrays) - => SafeExecution(() => MEOSExternalFunctions.tjson_strip_nulls(temp, strip_in_arrays)); - - public static IntPtr tjsonb_array_element(IntPtr temp, int idx, bool astext, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_array_element(temp, idx, astext, null_handle)); - - public static IntPtr tjsonb_array_length(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_array_length(temp)); - - public static IntPtr tjsonb_delete(IntPtr temp, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_delete(temp, key)); - - public static IntPtr tjsonb_delete_array(IntPtr temp, IntPtr keys, int count) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_delete_array(temp, keys, count)); - - public static IntPtr tjsonb_delete_index(IntPtr temp, int idx) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_delete_index(temp, idx)); - - public static IntPtr tjsonb_delete_path(IntPtr temp, IntPtr path_elems, int path_len) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_delete_path(temp, path_elems, path_len)); - - public static IntPtr tjsonb_exists(IntPtr temp, IntPtr key) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_exists(temp, key)); - - public static IntPtr tjsonb_exists_array(IntPtr temp, IntPtr keys, int count, bool any) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_exists_array(temp, keys, count, any)); - - public static IntPtr tjsonb_extract_path(IntPtr temp, IntPtr path_elems, int path_len, bool astext, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_extract_path(temp, path_elems, path_len, astext, null_handle)); - - public static IntPtr tjsonb_insert(IntPtr temp, IntPtr keys, int count, IntPtr newjb, bool after) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_insert(temp, keys, count, newjb, after)); - - public static IntPtr tjsonb_object_field(IntPtr temp, IntPtr key, bool astext, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_object_field(temp, key, astext, null_handle)); - - public static IntPtr tjsonb_path_exists(IntPtr temp, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_path_exists(temp, jp, vars, silent, tz)); - - public static IntPtr tjsonb_path_match(IntPtr temp, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_path_match(temp, jp, vars, silent, tz)); - - public static IntPtr tjsonb_path_query_array(IntPtr temp, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_path_query_array(temp, jp, vars, silent, tz)); - - public static IntPtr tjsonb_path_query_first(IntPtr temp, IntPtr jp, IntPtr vars, bool silent, bool tz) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_path_query_first(temp, jp, vars, silent, tz)); - - public static IntPtr tjsonb_pretty(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_pretty(temp)); - - public static IntPtr tjsonb_set(IntPtr temp, IntPtr keys, int count, IntPtr newjb, bool create, IntPtr handle_null, bool lax) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_set(temp, keys, count, newjb, create, handle_null, lax)); - - public static IntPtr tjsonb_strip_nulls(IntPtr temp, bool strip_in_arrays) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_strip_nulls(temp, strip_in_arrays)); - - public static IntPtr tjsonb_to_tbool(IntPtr temp, string key, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_to_tbool(temp, key, null_handle)); - - public static IntPtr tjsonb_to_tfloat(IntPtr temp, string key, int interp, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_to_tfloat(temp, key, interp, null_handle)); - - public static IntPtr tjsonb_to_tint(IntPtr temp, string key, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_to_tint(temp, key, null_handle)); - - public static IntPtr tjsonb_to_ttext_key(IntPtr temp, string key, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_to_ttext_key(temp, key, null_handle)); - - public static IntPtr tjsonb_at_value(IntPtr temp, IntPtr jsb) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_at_value(temp, jsb)); - - public static IntPtr tjsonb_minus_value(IntPtr temp, IntPtr jsb) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_minus_value(temp, jsb)); - - public static int always_eq_jsonb_tjsonb(IntPtr jb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_jsonb_tjsonb(jb, temp)); - - public static int always_eq_tjsonb_jsonb(IntPtr temp, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tjsonb_jsonb(temp, jb)); - - public static int always_eq_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tjsonb_tjsonb(temp1, temp2)); - - public static int always_ne_jsonb_tjsonb(IntPtr jb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_jsonb_tjsonb(jb, temp)); - - public static int always_ne_tjsonb_jsonb(IntPtr temp, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tjsonb_jsonb(temp, jb)); - - public static int always_ne_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tjsonb_tjsonb(temp1, temp2)); - - public static int ever_eq_jsonb_tjsonb(IntPtr jb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_jsonb_tjsonb(jb, temp)); - - public static int ever_eq_tjsonb_jsonb(IntPtr temp, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tjsonb_jsonb(temp, jb)); - - public static int ever_eq_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tjsonb_tjsonb(temp1, temp2)); - - public static int ever_ne_jsonb_tjsonb(IntPtr jb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_jsonb_tjsonb(jb, temp)); - - public static int ever_ne_tjsonb_jsonb(IntPtr temp, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tjsonb_jsonb(temp, jb)); - - public static int ever_ne_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tjsonb_tjsonb(temp1, temp2)); - - public static IntPtr teq_jsonb_tjsonb(IntPtr jb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_jsonb_tjsonb(jb, temp)); - - public static IntPtr teq_tjsonb_jsonb(IntPtr temp, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.teq_tjsonb_jsonb(temp, jb)); - - public static IntPtr tne_jsonb_tjsonb(IntPtr jb, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_jsonb_tjsonb(jb, temp)); - - public static IntPtr tne_tjsonb_jsonb(IntPtr temp, IntPtr jb) - => SafeExecution(() => MEOSExternalFunctions.tne_tjsonb_jsonb(temp, jb)); - - public static IntPtr setPath(IntPtr it, IntPtr path_elems, IntPtr path_nulls, int path_len, IntPtr st, int level, IntPtr newval, int op_type) - => SafeExecution(() => MEOSExternalFunctions.setPath(it, path_elems, path_nulls, path_len, st, level, newval, op_type)); - - public static void setPathObject(IntPtr it, IntPtr path_elems, IntPtr path_nulls, int path_len, IntPtr st, int level, IntPtr newval, uint npairs, int op_type) - => SafeExecution(() => MEOSExternalFunctions.setPathObject(it, path_elems, path_nulls, path_len, st, level, newval, npairs, op_type)); - - public static void setPathArray(IntPtr it, IntPtr path_elems, IntPtr path_nulls, int path_len, IntPtr st, int level, IntPtr newval, uint nelems, int op_type) - => SafeExecution(() => MEOSExternalFunctions.setPathArray(it, path_elems, path_nulls, path_len, st, level, newval, nelems, op_type)); - - public static long datum_jsonb_concat(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_concat(l, r)); - - public static long datum_jsonb_contained(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_contained(l, r)); - - public static long datum_jsonb_contains(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_contains(l, r)); - - public static long datum_jsonb_delete(long jb, long key) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_delete(jb, key)); - - public static long datum_jsonb_delete_array(long jb, long array, long count) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_delete_array(jb, array, count)); - - public static long datum_jsonb_delete_index(long jb, long idx) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_delete_index(jb, idx)); - - public static long datum_json_array_element(long txt, long element) - => SafeExecution(() => MEOSExternalFunctions.datum_json_array_element(txt, element)); - - public static long datum_jsonb_array_element(long jb, long element) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_array_element(jb, element)); - - public static long datum_json_array_element_text(long txt, long element) - => SafeExecution(() => MEOSExternalFunctions.datum_json_array_element_text(txt, element)); - - public static long datum_jsonb_array_element_text(long jb, long element) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_array_element_text(jb, element)); - - public static long datum_jsonb_exists(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_exists(l, r)); - - public static long datum_jsonb_exists_array(long value, long array, long count, long any) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_exists_array(value, array, count, any)); - - public static long datum_json_array_length(long txt) - => SafeExecution(() => MEOSExternalFunctions.datum_json_array_length(txt)); - - public static long datum_jsonb_array_length(long txt) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_array_length(txt)); - - public static long datum_json_object_field(long txt, long key) - => SafeExecution(() => MEOSExternalFunctions.datum_json_object_field(txt, key)); - - public static long datum_jsonb_object_field(long jb, long key) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_object_field(jb, key)); - - public static long datum_json_object_field_text(long txt, long key) - => SafeExecution(() => MEOSExternalFunctions.datum_json_object_field_text(txt, key)); - - public static long datum_jsonb_object_field_text(long jb, long key) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_object_field_text(jb, key)); - - public static long datum_json_strip_nulls(long txt, long strip_in_arrays) - => SafeExecution(() => MEOSExternalFunctions.datum_json_strip_nulls(txt, strip_in_arrays)); - - public static long datum_jsonb_strip_nulls(long jb, long strip_in_arrays) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_strip_nulls(jb, strip_in_arrays)); - - public static long datum_jsonb_pretty(long jb) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_pretty(jb)); - - public static long datum_json_extract_path(long txt, long path_elems, long path_len) - => SafeExecution(() => MEOSExternalFunctions.datum_json_extract_path(txt, path_elems, path_len)); - - public static long datum_jsonb_extract_path(long jb, long path_elems, long path_len) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_extract_path(jb, path_elems, path_len)); - - public static long datum_json_extract_path_text(long txt, long path_elems, long path_len) - => SafeExecution(() => MEOSExternalFunctions.datum_json_extract_path_text(txt, path_elems, path_len)); - - public static long datum_jsonb_extract_path_text(long jb, long path_elems, long path_len) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_extract_path_text(jb, path_elems, path_len)); - - public static long datum_jsonb_set(long jb, long keys, long count, long newjb, long create) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_set(jb, keys, count, newjb, create)); - - public static long datum_jsonb_set_lax(long jb, long keys, long count, long newjb, long create, long null_handle) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_set_lax(jb, keys, count, newjb, create, null_handle)); - - public static long datum_jsonb_delete_path(long jb, long keys, long count) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_delete_path(jb, keys, count)); - - public static long datum_jsonb_insert(long jb, long keys, long count, long newjb, long after) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_insert(jb, keys, count, newjb, after)); - - public static long datum_jsonb_path_exists(long jb, long jp, long vars, long silent, long tz) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_path_exists(jb, jp, vars, silent, tz)); - - public static long datum_jsonb_path_match(long jb, long jp, long vars, long silent, long tz) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_path_match(jb, jp, vars, silent, tz)); - - public static long datum_jsonb_path_query_array(long jb, long jp, long vars, long silent, long tz) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_path_query_array(jb, jp, vars, silent, tz)); - - public static long datum_jsonb_path_query_first(long jb, long jp, long vars, long silent, long tz) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_path_query_first(jb, jp, vars, silent, tz)); - - public static long datum_jsonb_to_text(long jb) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_to_text(jb)); - - public static long datum_text_to_jsonb(long txt) - => SafeExecution(() => MEOSExternalFunctions.datum_text_to_jsonb(txt)); - - public static long datum_jsonb_to_alphanum(long jb, long key, long temptype, long null_handle) - => SafeExecution(() => MEOSExternalFunctions.datum_jsonb_to_alphanum(jb, key, temptype, null_handle)); - - public static IntPtr tjsonb_to_talphanum(IntPtr temp, string key, int resbasetype, int interp, IntPtr null_handle) - => SafeExecution(() => MEOSExternalFunctions.tjsonb_to_talphanum(temp, key, resbasetype, interp, null_handle)); - - public static IntPtr jsonbfunc_jsonbset(IntPtr s, int func, int intype, int restype) - => SafeExecution(() => MEOSExternalFunctions.jsonbfunc_jsonbset(s, func, intype, restype)); - - public static IntPtr jsonbfunc_jsonbset_jsonb(IntPtr s, IntPtr jb, IntPtr func, bool invert) - => SafeExecution(() => MEOSExternalFunctions.jsonbfunc_jsonbset_jsonb(s, jb, func, invert)); - - public static IntPtr jsonbfunc_jsonbset_text(IntPtr s, IntPtr txt, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.jsonbfunc_jsonbset_text(s, txt, func)); - - public static IntPtr h3index_from_wkb(IntPtr wkb, IntPtr size) - => SafeExecution(() => MEOSExternalFunctions.h3index_from_wkb(wkb, size)); - - public static IntPtr h3index_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.h3index_from_hexwkb(hexwkb)); - - public static IntPtr h3index_as_wkb(IntPtr cell, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.h3index_as_wkb(cell, variant, size_out)); - - public static string h3index_as_hexwkb(IntPtr cell, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.h3index_as_hexwkb(cell, variant, size_out)); - - public static IntPtr th3index_in(string str) - => SafeExecution(() => MEOSExternalFunctions.th3index_in(str)); - - public static IntPtr th3indexinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.th3indexinst_in(str)); - - public static IntPtr th3indexseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.th3indexseq_in(str, interp)); - - public static IntPtr th3indexseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.th3indexseqset_in(str)); - - public static IntPtr th3index_make(IntPtr value, long t) - => SafeExecution(() => MEOSExternalFunctions.th3index_make(value, t)); - - public static IntPtr th3indexinst_make(IntPtr value, long t) - => SafeExecution(() => MEOSExternalFunctions.th3indexinst_make(value, t)); - - public static IntPtr th3indexseq_make(IntPtr values, IntPtr times, int count, bool lower_inc, bool upper_inc) - => SafeExecution(() => MEOSExternalFunctions.th3indexseq_make(values, times, count, lower_inc, upper_inc)); - - public static IntPtr th3indexseqset_make(IntPtr sequences, int count) - => SafeExecution(() => MEOSExternalFunctions.th3indexseqset_make(sequences, count)); - - public static IntPtr th3index_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_start_value(temp)); - - public static IntPtr th3index_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_end_value(temp)); - - public static bool th3index_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.th3index_value_n(temp, n, result)); - - public static IntPtr[] th3index_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.th3index_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool th3index_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.th3index_value_at_timestamptz(temp, t, strict, result)); - - public static IntPtr tbigint_to_th3index(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_to_th3index(temp)); - - public static IntPtr th3index_to_tbigint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_to_tbigint(temp)); - - public static int ever_eq_h3index_th3index(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_h3index_th3index(cell, temp)); - - public static int ever_eq_th3index_h3index(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_th3index_h3index(temp, cell)); - - public static int ever_ne_h3index_th3index(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_h3index_th3index(cell, temp)); - - public static int ever_ne_th3index_h3index(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_th3index_h3index(temp, cell)); - - public static int always_eq_h3index_th3index(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_h3index_th3index(cell, temp)); - - public static int always_eq_th3index_h3index(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.always_eq_th3index_h3index(temp, cell)); - - public static int always_ne_h3index_th3index(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_h3index_th3index(cell, temp)); - - public static int always_ne_th3index_h3index(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.always_ne_th3index_h3index(temp, cell)); - - public static int ever_eq_th3index_th3index(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_th3index_th3index(temp1, temp2)); - - public static int ever_ne_th3index_th3index(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_th3index_th3index(temp1, temp2)); - - public static int always_eq_th3index_th3index(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_th3index_th3index(temp1, temp2)); - - public static int always_ne_th3index_th3index(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_th3index_th3index(temp1, temp2)); - - public static IntPtr teq_h3index_th3index(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_h3index_th3index(cell, temp)); - - public static IntPtr teq_th3index_h3index(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.teq_th3index_h3index(temp, cell)); - - public static IntPtr teq_th3index_th3index(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.teq_th3index_th3index(temp1, temp2)); - - public static IntPtr tne_h3index_th3index(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_h3index_th3index(cell, temp)); - - public static IntPtr tne_th3index_h3index(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.tne_th3index_h3index(temp, cell)); - - public static IntPtr tne_th3index_th3index(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tne_th3index_th3index(temp1, temp2)); - - public static IntPtr th3index_get_resolution(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_get_resolution(temp)); - - public static IntPtr th3index_get_base_cell_number(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_get_base_cell_number(temp)); - - public static IntPtr th3index_is_valid_cell(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_is_valid_cell(temp)); - - public static IntPtr th3index_is_res_class_iii(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_is_res_class_iii(temp)); - - public static IntPtr th3index_is_pentagon(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_is_pentagon(temp)); - - public static IntPtr th3index_cell_to_parent(IntPtr temp, int resolution) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_to_parent(temp, resolution)); - - public static IntPtr th3index_cell_to_parent_next(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_to_parent_next(temp)); - - public static IntPtr th3index_cell_to_center_child(IntPtr temp, int resolution) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_to_center_child(temp, resolution)); - - public static IntPtr th3index_cell_to_center_child_next(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_to_center_child_next(temp)); - - public static IntPtr th3index_cell_to_child_pos(IntPtr temp, int parent_res) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_to_child_pos(temp, parent_res)); - - public static IntPtr th3index_child_pos_to_cell(IntPtr child_pos, IntPtr parent, int child_res) - => SafeExecution(() => MEOSExternalFunctions.th3index_child_pos_to_cell(child_pos, parent, child_res)); - - public static IntPtr tgeogpoint_to_th3index(IntPtr temp, int resolution) - => SafeExecution(() => MEOSExternalFunctions.tgeogpoint_to_th3index(temp, resolution)); - - public static IntPtr tgeompoint_to_th3index(IntPtr temp, int resolution) - => SafeExecution(() => MEOSExternalFunctions.tgeompoint_to_th3index(temp, resolution)); - - public static IntPtr th3index_to_tgeogpoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_to_tgeogpoint(temp)); - - public static IntPtr th3index_to_tgeompoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_to_tgeompoint(temp)); - - public static IntPtr th3index_cell_to_boundary(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_to_boundary(temp)); - - public static IntPtr geo_to_h3index_set(IntPtr gs, int resolution) - => SafeExecution(() => MEOSExternalFunctions.geo_to_h3index_set(gs, resolution)); - - public static int ever_eq_h3indexset_th3index(IntPtr cells, IntPtr th3idx) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_h3indexset_th3index(cells, th3idx)); - - public static IntPtr th3index_are_neighbor_cells(IntPtr origin, IntPtr dest) - => SafeExecution(() => MEOSExternalFunctions.th3index_are_neighbor_cells(origin, dest)); - - public static IntPtr th3index_cells_to_directed_edge(IntPtr origin, IntPtr dest) - => SafeExecution(() => MEOSExternalFunctions.th3index_cells_to_directed_edge(origin, dest)); - - public static IntPtr th3index_is_valid_directed_edge(IntPtr edge) - => SafeExecution(() => MEOSExternalFunctions.th3index_is_valid_directed_edge(edge)); - - public static IntPtr th3index_get_directed_edge_origin(IntPtr edge) - => SafeExecution(() => MEOSExternalFunctions.th3index_get_directed_edge_origin(edge)); - - public static IntPtr th3index_get_directed_edge_destination(IntPtr edge) - => SafeExecution(() => MEOSExternalFunctions.th3index_get_directed_edge_destination(edge)); - - public static IntPtr th3index_directed_edge_to_boundary(IntPtr edge) - => SafeExecution(() => MEOSExternalFunctions.th3index_directed_edge_to_boundary(edge)); - - public static IntPtr th3index_cell_to_vertex(IntPtr temp, int vertex_num) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_to_vertex(temp, vertex_num)); - - public static IntPtr th3index_vertex_to_latlng(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_vertex_to_latlng(temp)); - - public static IntPtr th3index_is_valid_vertex(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.th3index_is_valid_vertex(temp)); - - public static IntPtr th3index_grid_distance(IntPtr origin, IntPtr dest) - => SafeExecution(() => MEOSExternalFunctions.th3index_grid_distance(origin, dest)); - - public static IntPtr th3index_cell_to_local_ij(IntPtr origin, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_to_local_ij(origin, cell)); - - public static IntPtr th3index_local_ij_to_cell(IntPtr origin, IntPtr coord) - => SafeExecution(() => MEOSExternalFunctions.th3index_local_ij_to_cell(origin, coord)); - - public static IntPtr th3index_cell_area(IntPtr temp, string unit) - => SafeExecution(() => MEOSExternalFunctions.th3index_cell_area(temp, unit)); - - public static IntPtr th3index_edge_length(IntPtr temp, string unit) - => SafeExecution(() => MEOSExternalFunctions.th3index_edge_length(temp, unit)); - - public static IntPtr tgeogpoint_great_circle_distance(IntPtr a, IntPtr b, string unit) - => SafeExecution(() => MEOSExternalFunctions.tgeogpoint_great_circle_distance(a, b, unit)); - - public static IntPtr proj_get_context() - => SafeExecution(() => MEOSExternalFunctions.proj_get_context()); - - public static IntPtr geos_get_context() - => SafeExecution(() => MEOSExternalFunctions.geos_get_context()); - - public static long datum_geo_round(long value, long size) - => SafeExecution(() => MEOSExternalFunctions.datum_geo_round(value, size)); - - public static IntPtr point_round(IntPtr gs, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.point_round(gs, maxdd)); - - public static void stbox_set(bool hasx, bool hasz, bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr s, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_set(hasx, hasz, geodetic, srid, xmin, xmax, ymin, ymax, zmin, zmax, s, result)); - - public static void gbox_set_stbox(IntPtr box, int srid, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.gbox_set_stbox(box, srid, result)); - - public static bool geo_set_stbox(IntPtr gs, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.geo_set_stbox(gs, result)); - - public static void geoarr_set_stbox(IntPtr values, int count, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.geoarr_set_stbox(values, count, result)); - - public static bool spatial_set_stbox(long d, int basetype, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.spatial_set_stbox(d, basetype, result)); - - public static void spatialset_set_stbox(IntPtr set, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.spatialset_set_stbox(set, result)); - - public static void stbox_set_box3d(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_set_box3d(box, result)); - - public static void stbox_set_gbox(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.stbox_set_gbox(box, result)); - - public static void tstzset_set_stbox(IntPtr s, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tstzset_set_stbox(s, result)); - - public static void tstzspan_set_stbox(IntPtr s, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_set_stbox(s, result)); - - public static void tstzspanset_set_stbox(IntPtr s, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tstzspanset_set_stbox(s, result)); - - public static void stbox_expand(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.stbox_expand(box1, box2)); - - public static bool inter_stbox_stbox(IntPtr box1, IntPtr box2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.inter_stbox_stbox(box1, box2, result)); - - public static IntPtr tgeogpointinst_from_mfjson(IntPtr mfjson, int srid) - => SafeExecution(() => MEOSExternalFunctions.tgeogpointinst_from_mfjson(mfjson, srid)); - - public static IntPtr tgeogpointinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeogpointinst_in(str)); - - public static IntPtr tgeogpointseq_from_mfjson(IntPtr mfjson, int srid, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeogpointseq_from_mfjson(mfjson, srid, interp)); - - public static IntPtr tgeogpointseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeogpointseq_in(str, interp)); - - public static IntPtr tgeogpointseqset_from_mfjson(IntPtr mfjson, int srid, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeogpointseqset_from_mfjson(mfjson, srid, interp)); - - public static IntPtr tgeogpointseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeogpointseqset_in(str)); - - public static IntPtr tgeompointinst_from_mfjson(IntPtr mfjson, int srid) - => SafeExecution(() => MEOSExternalFunctions.tgeompointinst_from_mfjson(mfjson, srid)); - - public static IntPtr tgeompointinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeompointinst_in(str)); - - public static IntPtr tgeompointseq_from_mfjson(IntPtr mfjson, int srid, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeompointseq_from_mfjson(mfjson, srid, interp)); - - public static IntPtr tgeompointseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeompointseq_in(str, interp)); - - public static IntPtr tgeompointseqset_from_mfjson(IntPtr mfjson, int srid, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeompointseqset_from_mfjson(mfjson, srid, interp)); - - public static IntPtr tgeompointseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeompointseqset_in(str)); - - public static IntPtr tgeographyinst_from_mfjson(IntPtr mfjson, int srid) - => SafeExecution(() => MEOSExternalFunctions.tgeographyinst_from_mfjson(mfjson, srid)); - - public static IntPtr tgeographyinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeographyinst_in(str)); - - public static IntPtr tgeographyseq_from_mfjson(IntPtr mfjson, int srid, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeographyseq_from_mfjson(mfjson, srid, interp)); - - public static IntPtr tgeographyseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeographyseq_in(str, interp)); - - public static IntPtr tgeographyseqset_from_mfjson(IntPtr mfjson, int srid, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeographyseqset_from_mfjson(mfjson, srid, interp)); - - public static IntPtr tgeographyseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeographyseqset_in(str)); - - public static IntPtr tgeometryinst_from_mfjson(IntPtr mfjson, int srid) - => SafeExecution(() => MEOSExternalFunctions.tgeometryinst_from_mfjson(mfjson, srid)); - - public static IntPtr tgeometryinst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeometryinst_in(str)); - - public static IntPtr tgeometryseq_from_mfjson(IntPtr mfjson, int srid, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeometryseq_from_mfjson(mfjson, srid, interp)); - - public static IntPtr tgeometryseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeometryseq_in(str, interp)); - - public static IntPtr tgeometryseqset_from_mfjson(IntPtr mfjson, int srid, int interp) - => SafeExecution(() => MEOSExternalFunctions.tgeometryseqset_from_mfjson(mfjson, srid, interp)); - - public static IntPtr tgeometryseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tgeometryseqset_in(str)); - - public static void tspatial_set_stbox(IntPtr temp, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tspatial_set_stbox(temp, result)); - - public static void tspatialseq_set_stbox(IntPtr seq, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tspatialseq_set_stbox(seq, box)); - - public static void tspatialseqset_set_stbox(IntPtr ss, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tspatialseqset_set_stbox(ss, box)); - - public static IntPtr tgeo_restrict_elevation(IntPtr temp, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeo_restrict_elevation(temp, s, atfunc)); - - public static IntPtr tgeo_restrict_geom(IntPtr temp, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeo_restrict_geom(temp, gs, atfunc)); - - public static IntPtr tgeo_restrict_stbox(IntPtr temp, IntPtr box, bool border_inc, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeo_restrict_stbox(temp, box, border_inc, atfunc)); - - public static IntPtr tgeoinst_restrict_geom(IntPtr inst, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeoinst_restrict_geom(inst, gs, atfunc)); - - public static IntPtr tgeoinst_restrict_stbox(IntPtr inst, IntPtr box, bool border_inc, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeoinst_restrict_stbox(inst, box, border_inc, atfunc)); - - public static IntPtr tgeoseq_restrict_geom(IntPtr seq, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeoseq_restrict_geom(seq, gs, atfunc)); - - public static IntPtr tgeoseq_restrict_stbox(IntPtr seq, IntPtr box, bool border_inc, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeoseq_restrict_stbox(seq, box, border_inc, atfunc)); - - public static IntPtr tgeoseqset_restrict_geom(IntPtr ss, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeoseqset_restrict_geom(ss, gs, atfunc)); - - public static IntPtr tgeoseqset_restrict_stbox(IntPtr ss, IntPtr box, bool border_inc, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tgeoseqset_restrict_stbox(ss, box, border_inc, atfunc)); - - public static IntPtr tpoint_linear_inter_geom(IntPtr temp, IntPtr gs, bool clip) - => SafeExecution(() => MEOSExternalFunctions.tpoint_linear_inter_geom(temp, gs, clip)); - - public static IntPtr tpoint_linear_dwithin_geom(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.tpoint_linear_dwithin_geom(temp, gs, dist)); - - public static IntPtr tpoint_linear_distance_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tpoint_linear_distance_geom(temp, gs)); - - public static IntPtr tpoint_linear_restrict_geom(IntPtr temp, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tpoint_linear_restrict_geom(temp, gs, atfunc)); - - public static bool geom_clip_supported(IntPtr geom) - => SafeExecution(() => MEOSExternalFunctions.geom_clip_supported(geom)); - - public static int spatial_srid(long d, int basetype) - => SafeExecution(() => MEOSExternalFunctions.spatial_srid(d, basetype)); - - public static bool spatial_set_srid(long d, int basetype, int srid) - => SafeExecution(() => MEOSExternalFunctions.spatial_set_srid(d, basetype, srid)); - - public static int tspatialinst_srid(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tspatialinst_srid(inst)); - - public static IntPtr tpointseq_azimuth(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_azimuth(seq)); - - public static IntPtr tpointseq_cumulative_length(IntPtr seq, double prevlength) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_cumulative_length(seq, prevlength)); - - public static bool tpointseq_is_simple(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_is_simple(seq)); - - public static double tpointseq_length(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_length(seq)); - - public static IntPtr tpointseq_linear_trajectory(IntPtr seq, bool unary_union) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_linear_trajectory(seq, unary_union)); - - public static IntPtr[] tgeoseq_stboxes(IntPtr seq) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeoseq_stboxes(seq, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tgeoseq_split_n_stboxes(IntPtr seq, int max_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeoseq_split_n_stboxes(seq, max_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tpointseqset_azimuth(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tpointseqset_azimuth(ss)); - - public static IntPtr tpointseqset_cumulative_length(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tpointseqset_cumulative_length(ss)); - - public static bool tpointseqset_is_simple(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tpointseqset_is_simple(ss)); - - public static double tpointseqset_length(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tpointseqset_length(ss)); - - public static IntPtr[] tgeoseqset_stboxes(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeoseqset_stboxes(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tgeoseqset_split_n_stboxes(IntPtr ss, int max_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tgeoseqset_split_n_stboxes(ss, max_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tgeominst_tgeoginst(IntPtr inst, bool oper) - => SafeExecution(() => MEOSExternalFunctions.tgeominst_tgeoginst(inst, oper)); - - public static IntPtr tgeomseq_tgeogseq(IntPtr seq, bool oper) - => SafeExecution(() => MEOSExternalFunctions.tgeomseq_tgeogseq(seq, oper)); - - public static IntPtr tgeomseqset_tgeogseqset(IntPtr ss, bool oper) - => SafeExecution(() => MEOSExternalFunctions.tgeomseqset_tgeogseqset(ss, oper)); - - public static IntPtr tgeom_tgeog(IntPtr temp, bool oper) - => SafeExecution(() => MEOSExternalFunctions.tgeom_tgeog(temp, oper)); - - public static IntPtr tgeo_tpoint(IntPtr temp, bool oper) - => SafeExecution(() => MEOSExternalFunctions.tgeo_tpoint(temp, oper)); - - public static void tspatialinst_set_srid(IntPtr inst, int srid) - => SafeExecution(() => MEOSExternalFunctions.tspatialinst_set_srid(inst, srid)); - - public static IntPtr[] tpointseq_make_simple(IntPtr seq) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tpointseq_make_simple(seq, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static void tspatialseq_set_srid(IntPtr seq, int srid) - => SafeExecution(() => MEOSExternalFunctions.tspatialseq_set_srid(seq, srid)); - - public static IntPtr[] tpointseqset_make_simple(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tpointseqset_make_simple(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static void tspatialseqset_set_srid(IntPtr ss, int srid) - => SafeExecution(() => MEOSExternalFunctions.tspatialseqset_set_srid(ss, srid)); - - public static IntPtr tpointseq_twcentroid(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tpointseq_twcentroid(seq)); - - public static IntPtr tpointseqset_twcentroid(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tpointseqset_twcentroid(ss)); - - public static string npoint_as_ewkt(IntPtr np, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.npoint_as_ewkt(np, maxdd)); - - public static string npoint_as_hexwkb(IntPtr np, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.npoint_as_hexwkb(np, variant, size_out)); - - public static string npoint_as_text(IntPtr np, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.npoint_as_text(np, maxdd)); - - public static IntPtr npoint_as_wkb(IntPtr np, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.npoint_as_wkb(np, variant, size_out)); - - public static IntPtr npoint_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.npoint_from_hexwkb(hexwkb)); - - public static IntPtr npoint_from_wkb(IntPtr wkb, IntPtr size) - => SafeExecution(() => MEOSExternalFunctions.npoint_from_wkb(wkb, size)); - - public static IntPtr npoint_in(string str) - => SafeExecution(() => MEOSExternalFunctions.npoint_in(str)); - - public static string npoint_out(IntPtr np, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.npoint_out(np, maxdd)); - - public static IntPtr nsegment_in(string str) - => SafeExecution(() => MEOSExternalFunctions.nsegment_in(str)); - - public static string nsegment_out(IntPtr ns, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.nsegment_out(ns, maxdd)); - - public static IntPtr npoint_make(IntPtr rid, double pos) - => SafeExecution(() => MEOSExternalFunctions.npoint_make(rid, pos)); - - public static IntPtr nsegment_make(IntPtr rid, double pos1, double pos2) - => SafeExecution(() => MEOSExternalFunctions.nsegment_make(rid, pos1, pos2)); - - public static IntPtr geompoint_to_npoint(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geompoint_to_npoint(gs)); - - public static IntPtr geom_to_nsegment(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geom_to_nsegment(gs)); - - public static IntPtr npoint_to_geompoint(IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_to_geompoint(np)); - - public static IntPtr npoint_to_nsegment(IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_to_nsegment(np)); - - public static IntPtr npoint_to_stbox(IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_to_stbox(np)); - - public static IntPtr nsegment_to_geom(IntPtr ns) - => SafeExecution(() => MEOSExternalFunctions.nsegment_to_geom(ns)); - - public static IntPtr nsegment_to_stbox(IntPtr ns) - => SafeExecution(() => MEOSExternalFunctions.nsegment_to_stbox(ns)); - - public static int npoint_hash(IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_hash(np)); - - public static IntPtr npoint_hash_extended(IntPtr np, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.npoint_hash_extended(np, seed)); - - public static double npoint_position(IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_position(np)); - - public static IntPtr npoint_route(IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_route(np)); - - public static double nsegment_end_position(IntPtr ns) - => SafeExecution(() => MEOSExternalFunctions.nsegment_end_position(ns)); - - public static IntPtr nsegment_route(IntPtr ns) - => SafeExecution(() => MEOSExternalFunctions.nsegment_route(ns)); - - public static double nsegment_start_position(IntPtr ns) - => SafeExecution(() => MEOSExternalFunctions.nsegment_start_position(ns)); - - public static bool route_exists(IntPtr rid) - => SafeExecution(() => MEOSExternalFunctions.route_exists(rid)); - - public static IntPtr route_geom(IntPtr rid) - => SafeExecution(() => MEOSExternalFunctions.route_geom(rid)); - - public static double route_length(IntPtr rid) - => SafeExecution(() => MEOSExternalFunctions.route_length(rid)); - - public static IntPtr npoint_round(IntPtr np, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.npoint_round(np, maxdd)); - - public static IntPtr nsegment_round(IntPtr ns, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.nsegment_round(ns, maxdd)); - - public static int get_srid_ways() - => SafeExecution(() => MEOSExternalFunctions.get_srid_ways()); - - public static int npoint_srid(IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_srid(np)); - - public static int nsegment_srid(IntPtr ns) - => SafeExecution(() => MEOSExternalFunctions.nsegment_srid(ns)); - - public static IntPtr npoint_timestamptz_to_stbox(IntPtr np, long t) - => SafeExecution(() => MEOSExternalFunctions.npoint_timestamptz_to_stbox(np, t)); - - public static IntPtr npoint_tstzspan_to_stbox(IntPtr np, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.npoint_tstzspan_to_stbox(np, s)); - - public static int npoint_cmp(IntPtr np1, IntPtr np2) - => SafeExecution(() => MEOSExternalFunctions.npoint_cmp(np1, np2)); - - public static bool npoint_eq(IntPtr np1, IntPtr np2) - => SafeExecution(() => MEOSExternalFunctions.npoint_eq(np1, np2)); - - public static bool npoint_ge(IntPtr np1, IntPtr np2) - => SafeExecution(() => MEOSExternalFunctions.npoint_ge(np1, np2)); - - public static bool npoint_gt(IntPtr np1, IntPtr np2) - => SafeExecution(() => MEOSExternalFunctions.npoint_gt(np1, np2)); - - public static bool npoint_le(IntPtr np1, IntPtr np2) - => SafeExecution(() => MEOSExternalFunctions.npoint_le(np1, np2)); - - public static bool npoint_lt(IntPtr np1, IntPtr np2) - => SafeExecution(() => MEOSExternalFunctions.npoint_lt(np1, np2)); - - public static bool npoint_ne(IntPtr np1, IntPtr np2) - => SafeExecution(() => MEOSExternalFunctions.npoint_ne(np1, np2)); - - public static bool npoint_same(IntPtr np1, IntPtr np2) - => SafeExecution(() => MEOSExternalFunctions.npoint_same(np1, np2)); - - public static int nsegment_cmp(IntPtr ns1, IntPtr ns2) - => SafeExecution(() => MEOSExternalFunctions.nsegment_cmp(ns1, ns2)); - - public static bool nsegment_eq(IntPtr ns1, IntPtr ns2) - => SafeExecution(() => MEOSExternalFunctions.nsegment_eq(ns1, ns2)); - - public static bool nsegment_ge(IntPtr ns1, IntPtr ns2) - => SafeExecution(() => MEOSExternalFunctions.nsegment_ge(ns1, ns2)); - - public static bool nsegment_gt(IntPtr ns1, IntPtr ns2) - => SafeExecution(() => MEOSExternalFunctions.nsegment_gt(ns1, ns2)); - - public static bool nsegment_le(IntPtr ns1, IntPtr ns2) - => SafeExecution(() => MEOSExternalFunctions.nsegment_le(ns1, ns2)); - - public static bool nsegment_lt(IntPtr ns1, IntPtr ns2) - => SafeExecution(() => MEOSExternalFunctions.nsegment_lt(ns1, ns2)); - - public static bool nsegment_ne(IntPtr ns1, IntPtr ns2) - => SafeExecution(() => MEOSExternalFunctions.nsegment_ne(ns1, ns2)); - - public static IntPtr npointset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.npointset_in(str)); - - public static string npointset_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.npointset_out(s, maxdd)); - - public static IntPtr npointset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.npointset_make(values, count)); - - public static IntPtr npoint_to_set(IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_to_set(np)); - - public static IntPtr npointset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.npointset_end_value(s)); - - public static IntPtr npointset_routes(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.npointset_routes(s)); - - public static IntPtr npointset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.npointset_start_value(s)); - - public static bool npointset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.npointset_value_n(s, n, result)); - - public static IntPtr[] npointset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.npointset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool contained_npoint_set(IntPtr np, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_npoint_set(np, s)); - - public static bool contains_set_npoint(IntPtr s, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.contains_set_npoint(s, np)); - - public static IntPtr intersection_npoint_set(IntPtr np, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_npoint_set(np, s)); - - public static IntPtr intersection_set_npoint(IntPtr s, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_npoint(s, np)); - - public static IntPtr minus_npoint_set(IntPtr np, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_npoint_set(np, s)); - - public static IntPtr minus_set_npoint(IntPtr s, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.minus_set_npoint(s, np)); - - public static IntPtr npoint_union_transfn(IntPtr state, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_union_transfn(state, np)); - - public static IntPtr union_npoint_set(IntPtr np, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_npoint_set(np, s)); - - public static IntPtr union_set_npoint(IntPtr s, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.union_set_npoint(s, np)); - - public static IntPtr tnpoint_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_in(str)); - - public static IntPtr tnpoint_from_mfjson(string mfjson) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_from_mfjson(mfjson)); - - public static string tnpoint_out(IntPtr temp, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_out(temp, maxdd)); - - public static IntPtr tnpointinst_make(IntPtr np, long t) - => SafeExecution(() => MEOSExternalFunctions.tnpointinst_make(np, t)); - - public static IntPtr tnpoint_from_base_temp(IntPtr np, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_from_base_temp(np, temp)); - - public static IntPtr tnpointseq_from_base_tstzset(IntPtr np, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tnpointseq_from_base_tstzset(np, s)); - - public static IntPtr tnpointseq_from_base_tstzspan(IntPtr np, IntPtr s, int interp) - => SafeExecution(() => MEOSExternalFunctions.tnpointseq_from_base_tstzspan(np, s, interp)); - - public static IntPtr tnpointseqset_from_base_tstzspanset(IntPtr np, IntPtr ss, int interp) - => SafeExecution(() => MEOSExternalFunctions.tnpointseqset_from_base_tstzspanset(np, ss, interp)); - - public static IntPtr tgeompoint_to_tnpoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tgeompoint_to_tnpoint(temp)); - - public static IntPtr tnpoint_to_tgeompoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_to_tgeompoint(temp)); - - public static IntPtr tnpoint_cumulative_length(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_cumulative_length(temp)); - - public static IntPtr tnpoint_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_end_value(temp)); - - public static double tnpoint_length(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_length(temp)); - - public static IntPtr[] tnpoint_positions(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnpoint_positions(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tnpoint_route(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_route(temp)); - - public static IntPtr tnpoint_routes(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_routes(temp)); - - public static IntPtr tnpoint_speed(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_speed(temp)); - - public static IntPtr tnpoint_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_start_value(temp)); - - public static IntPtr tnpoint_trajectory(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_trajectory(temp)); - - public static bool tnpoint_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_value_at_timestamptz(temp, t, strict, value)); - - public static bool tnpoint_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_value_n(temp, n, result)); - - public static IntPtr[] tnpoint_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnpoint_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tnpoint_twcentroid(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_twcentroid(temp)); - - public static IntPtr tnpoint_at_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_at_geom(temp, gs)); - - public static IntPtr tnpoint_at_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_at_npoint(temp, np)); - - public static IntPtr tnpoint_at_npointset(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_at_npointset(temp, s)); - - public static IntPtr tnpoint_at_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_at_stbox(temp, box, border_inc)); - - public static IntPtr tnpoint_minus_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_minus_geom(temp, gs)); - - public static IntPtr tnpoint_minus_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_minus_npoint(temp, np)); - - public static IntPtr tnpoint_minus_npointset(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_minus_npointset(temp, s)); - - public static IntPtr tnpoint_minus_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_minus_stbox(temp, box, border_inc)); - - public static IntPtr tdistance_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tnpoint_npoint(temp, np)); - - public static IntPtr tdistance_tnpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tnpoint_geo(temp, gs)); - - public static IntPtr tdistance_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tnpoint_tnpoint(temp1, temp2)); - - public static double nad_tnpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nad_tnpoint_geo(temp, gs)); - - public static double nad_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.nad_tnpoint_npoint(temp, np)); - - public static double nad_tnpoint_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_tnpoint_stbox(temp, box)); - - public static double nad_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_tnpoint_tnpoint(temp1, temp2)); - - public static IntPtr nai_tnpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nai_tnpoint_geo(temp, gs)); - - public static IntPtr nai_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.nai_tnpoint_npoint(temp, np)); - - public static IntPtr nai_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nai_tnpoint_tnpoint(temp1, temp2)); - - public static IntPtr shortestline_tnpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tnpoint_geo(temp, gs)); - - public static IntPtr shortestline_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tnpoint_npoint(temp, np)); - - public static IntPtr shortestline_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tnpoint_tnpoint(temp1, temp2)); - - public static IntPtr tnpoint_tcentroid_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_tcentroid_transfn(state, temp)); - - public static int always_eq_npoint_tnpoint(IntPtr np, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_npoint_tnpoint(np, temp)); - - public static int always_eq_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tnpoint_npoint(temp, np)); - - public static int always_eq_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tnpoint_tnpoint(temp1, temp2)); - - public static int always_ne_npoint_tnpoint(IntPtr np, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_npoint_tnpoint(np, temp)); - - public static int always_ne_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tnpoint_npoint(temp, np)); - - public static int always_ne_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tnpoint_tnpoint(temp1, temp2)); - - public static int ever_eq_npoint_tnpoint(IntPtr np, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_npoint_tnpoint(np, temp)); - - public static int ever_eq_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tnpoint_npoint(temp, np)); - - public static int ever_eq_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tnpoint_tnpoint(temp1, temp2)); - - public static int ever_ne_npoint_tnpoint(IntPtr np, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_npoint_tnpoint(np, temp)); - - public static int ever_ne_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tnpoint_npoint(temp, np)); - - public static int ever_ne_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tnpoint_tnpoint(temp1, temp2)); - - public static IntPtr teq_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.teq_tnpoint_npoint(temp, np)); - - public static IntPtr tne_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.tne_tnpoint_npoint(temp, np)); - - public static IntPtr pcpoint_hex_in(string str) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_hex_in(str)); - - public static string pcpoint_hex_out(IntPtr pt, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_hex_out(pt, maxdd)); - - public static IntPtr pcpoint_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_from_hexwkb(hexwkb)); - - public static string pcpoint_as_hexwkb(IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_as_hexwkb(pt)); - - public static IntPtr pcpoint_copy(IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_copy(pt)); - - public static uint pcpoint_get_pcid(IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_get_pcid(pt)); - - public static int pcpoint_hash(IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_hash(pt)); - - public static IntPtr pcpoint_hash_extended(IntPtr pt, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_hash_extended(pt, seed)); - - public static bool pcpoint_get_x(IntPtr pt, IntPtr schema, IntPtr @out) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_get_x(pt, schema, @out)); - - public static bool pcpoint_get_y(IntPtr pt, IntPtr schema, IntPtr @out) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_get_y(pt, schema, @out)); - - public static bool pcpoint_get_z(IntPtr pt, IntPtr schema, IntPtr @out) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_get_z(pt, schema, @out)); - - public static bool pcpoint_get_dim(IntPtr pt, IntPtr schema, string name, IntPtr @out) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_get_dim(pt, schema, name, @out)); - - public static IntPtr pcpoint_to_tpcbox(IntPtr pt, IntPtr schema) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_to_tpcbox(pt, schema)); - - public static IntPtr meos_pc_schema(uint pcid) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_schema(pcid)); - - public static void meos_pc_schema_register(uint pcid, IntPtr schema) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_schema_register(pcid, schema)); - - public static void meos_pc_schema_register_xml(uint pcid, IntPtr schema, string xml_text) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_schema_register_xml(pcid, schema, xml_text)); - - public static string meos_pc_schema_xml(uint pcid) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_schema_xml(pcid)); - - public static void meos_pc_schema_clear() - => SafeExecution(() => MEOSExternalFunctions.meos_pc_schema_clear()); - - public static int pcpoint_cmp(IntPtr pt1, IntPtr pt2) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_cmp(pt1, pt2)); - - public static bool pcpoint_eq(IntPtr pt1, IntPtr pt2) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_eq(pt1, pt2)); - - public static bool pcpoint_ne(IntPtr pt1, IntPtr pt2) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_ne(pt1, pt2)); - - public static bool pcpoint_lt(IntPtr pt1, IntPtr pt2) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_lt(pt1, pt2)); - - public static bool pcpoint_le(IntPtr pt1, IntPtr pt2) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_le(pt1, pt2)); - - public static bool pcpoint_gt(IntPtr pt1, IntPtr pt2) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_gt(pt1, pt2)); - - public static bool pcpoint_ge(IntPtr pt1, IntPtr pt2) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_ge(pt1, pt2)); - - public static IntPtr pcpatch_hex_in(string str) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_hex_in(str)); - - public static string pcpatch_hex_out(IntPtr pa, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_hex_out(pa, maxdd)); - - public static IntPtr pcpatch_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_from_hexwkb(hexwkb)); - - public static string pcpatch_as_hexwkb(IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_as_hexwkb(pa)); - - public static IntPtr pcpatch_copy(IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_copy(pa)); - - public static uint pcpatch_get_pcid(IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_get_pcid(pa)); - - public static uint pcpatch_npoints(IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_npoints(pa)); - - public static int pcpatch_hash(IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_hash(pa)); - - public static IntPtr pcpatch_hash_extended(IntPtr pa, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_hash_extended(pa, seed)); - - public static int pcpatch_cmp(IntPtr pa1, IntPtr pa2) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_cmp(pa1, pa2)); - - public static bool pcpatch_eq(IntPtr pa1, IntPtr pa2) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_eq(pa1, pa2)); - - public static bool pcpatch_ne(IntPtr pa1, IntPtr pa2) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_ne(pa1, pa2)); - - public static bool pcpatch_lt(IntPtr pa1, IntPtr pa2) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_lt(pa1, pa2)); - - public static bool pcpatch_le(IntPtr pa1, IntPtr pa2) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_le(pa1, pa2)); - - public static bool pcpatch_gt(IntPtr pa1, IntPtr pa2) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_gt(pa1, pa2)); - - public static bool pcpatch_ge(IntPtr pa1, IntPtr pa2) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_ge(pa1, pa2)); - - public static IntPtr pcpointset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.pcpointset_in(str)); - - public static string pcpointset_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pcpointset_out(s, maxdd)); - - public static IntPtr pcpointset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.pcpointset_make(values, count)); - - public static IntPtr pcpoint_to_set(IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_to_set(pt)); - - public static IntPtr pcpointset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.pcpointset_start_value(s)); - - public static IntPtr pcpointset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.pcpointset_end_value(s)); - - public static bool pcpointset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.pcpointset_value_n(s, n, result)); - - public static IntPtr[] pcpointset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.pcpointset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool contains_set_pcpoint(IntPtr s, IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.contains_set_pcpoint(s, pt)); - - public static bool contained_pcpoint_set(IntPtr pt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_pcpoint_set(pt, s)); - - public static IntPtr intersection_pcpoint_set(IntPtr pt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_pcpoint_set(pt, s)); - - public static IntPtr intersection_set_pcpoint(IntPtr s, IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_pcpoint(s, pt)); - - public static IntPtr minus_pcpoint_set(IntPtr pt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_pcpoint_set(pt, s)); - - public static IntPtr minus_set_pcpoint(IntPtr s, IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.minus_set_pcpoint(s, pt)); - - public static IntPtr union_pcpoint_set(IntPtr pt, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_pcpoint_set(pt, s)); - - public static IntPtr union_set_pcpoint(IntPtr s, IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.union_set_pcpoint(s, pt)); - - public static IntPtr pcpoint_union_transfn(IntPtr state, IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_union_transfn(state, pt)); - - public static IntPtr pcpatchset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.pcpatchset_in(str)); - - public static string pcpatchset_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pcpatchset_out(s, maxdd)); - - public static IntPtr pcpatchset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.pcpatchset_make(values, count)); - - public static IntPtr pcpatch_to_set(IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_to_set(pa)); - - public static IntPtr pcpatchset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.pcpatchset_start_value(s)); - - public static IntPtr pcpatchset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.pcpatchset_end_value(s)); - - public static bool pcpatchset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.pcpatchset_value_n(s, n, result)); - - public static IntPtr[] pcpatchset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.pcpatchset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool contains_set_pcpatch(IntPtr s, IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.contains_set_pcpatch(s, pa)); - - public static bool contained_pcpatch_set(IntPtr pa, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_pcpatch_set(pa, s)); - - public static IntPtr intersection_pcpatch_set(IntPtr pa, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_pcpatch_set(pa, s)); - - public static IntPtr intersection_set_pcpatch(IntPtr s, IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_pcpatch(s, pa)); - - public static IntPtr minus_pcpatch_set(IntPtr pa, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_pcpatch_set(pa, s)); - - public static IntPtr minus_set_pcpatch(IntPtr s, IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.minus_set_pcpatch(s, pa)); - - public static IntPtr union_pcpatch_set(IntPtr pa, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_pcpatch_set(pa, s)); - - public static IntPtr union_set_pcpatch(IntPtr s, IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.union_set_pcpatch(s, pa)); - - public static IntPtr pcpatch_union_transfn(IntPtr state, IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_union_transfn(state, pa)); - - public static IntPtr tpcbox_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_in(str)); - - public static string tpcbox_out(IntPtr box, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_out(box, maxdd)); - - public static IntPtr tpcbox_make(bool hasx, bool hasz, bool hast, bool geodetic, int srid, uint pcid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr period) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_make(hasx, hasz, hast, geodetic, srid, pcid, xmin, xmax, ymin, ymax, zmin, zmax, period)); - - public static IntPtr tpcbox_copy(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_copy(box)); - - public static IntPtr pcpatch_to_tpcbox(IntPtr pa, int srid) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_to_tpcbox(pa, srid)); - - public static bool tpcbox_hasx(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_hasx(box)); - - public static bool tpcbox_hasz(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_hasz(box)); - - public static bool tpcbox_hast(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_hast(box)); - - public static bool tpcbox_geodetic(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_geodetic(box)); - - public static bool tpcbox_xmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_xmin(box, result)); - - public static bool tpcbox_xmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_xmax(box, result)); - - public static bool tpcbox_ymin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_ymin(box, result)); - - public static bool tpcbox_ymax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_ymax(box, result)); - - public static bool tpcbox_zmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_zmin(box, result)); - - public static bool tpcbox_zmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_zmax(box, result)); - - public static bool tpcbox_tmin(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_tmin(box, result)); - - public static bool tpcbox_tmin_inc(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_tmin_inc(box, result)); - - public static bool tpcbox_tmax(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_tmax(box, result)); - - public static bool tpcbox_tmax_inc(IntPtr box, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_tmax_inc(box, result)); - - public static int tpcbox_srid(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_srid(box)); - - public static uint tpcbox_pcid(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_pcid(box)); - - public static IntPtr tpcbox_to_stbox(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_to_stbox(box)); - - public static void tpcbox_expand(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_expand(box1, box2)); - - public static IntPtr tpcbox_round(IntPtr box, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_round(box, maxdd)); - - public static IntPtr tpcbox_set_srid(IntPtr box, int srid) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_set_srid(box, srid)); - - public static IntPtr union_tpcbox_tpcbox(IntPtr box1, IntPtr box2, bool strict) - => SafeExecution(() => MEOSExternalFunctions.union_tpcbox_tpcbox(box1, box2, strict)); - - public static bool inter_tpcbox_tpcbox(IntPtr box1, IntPtr box2, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.inter_tpcbox_tpcbox(box1, box2, result)); - - public static IntPtr intersection_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tpcbox_tpcbox(box1, box2)); - - public static bool contains_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.contains_tpcbox_tpcbox(box1, box2)); - - public static bool contained_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.contained_tpcbox_tpcbox(box1, box2)); - - public static bool overlaps_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_tpcbox_tpcbox(box1, box2)); - - public static bool same_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.same_tpcbox_tpcbox(box1, box2)); - - public static bool adjacent_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.adjacent_tpcbox_tpcbox(box1, box2)); - - public static int tpcbox_cmp(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_cmp(box1, box2)); - - public static bool tpcbox_eq(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_eq(box1, box2)); - - public static bool tpcbox_ne(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_ne(box1, box2)); - - public static bool tpcbox_lt(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_lt(box1, box2)); - - public static bool tpcbox_le(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_le(box1, box2)); - - public static bool tpcbox_gt(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_gt(box1, box2)); - - public static bool tpcbox_ge(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_ge(box1, box2)); - - public static bool left_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.left_tpcbox_tpcbox(box1, box2)); - - public static bool overleft_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overleft_tpcbox_tpcbox(box1, box2)); - - public static bool right_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.right_tpcbox_tpcbox(box1, box2)); - - public static bool overright_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overright_tpcbox_tpcbox(box1, box2)); - - public static bool below_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.below_tpcbox_tpcbox(box1, box2)); - - public static bool overbelow_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overbelow_tpcbox_tpcbox(box1, box2)); - - public static bool above_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.above_tpcbox_tpcbox(box1, box2)); - - public static bool overabove_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overabove_tpcbox_tpcbox(box1, box2)); - - public static bool front_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.front_tpcbox_tpcbox(box1, box2)); - - public static bool overfront_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overfront_tpcbox_tpcbox(box1, box2)); - - public static bool back_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.back_tpcbox_tpcbox(box1, box2)); - - public static bool overback_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overback_tpcbox_tpcbox(box1, box2)); - - public static bool before_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.before_tpcbox_tpcbox(box1, box2)); - - public static bool overbefore_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overbefore_tpcbox_tpcbox(box1, box2)); - - public static bool after_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.after_tpcbox_tpcbox(box1, box2)); - - public static bool overafter_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.overafter_tpcbox_tpcbox(box1, box2)); - - public static bool ensure_same_pcid_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_pcid_tpcbox(box1, box2)); - - public static IntPtr tpointcloudinst_make(IntPtr pt, long t) - => SafeExecution(() => MEOSExternalFunctions.tpointcloudinst_make(pt, t)); - - public static bool eintersects_tpcpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.eintersects_tpcpoint_geo(temp, gs)); - - public static double nad_tpcpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nad_tpcpoint_geo(temp, gs)); - - public static string pose_as_ewkt(IntPtr pose, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pose_as_ewkt(pose, maxdd)); - - public static string pose_as_hexwkb(IntPtr pose, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.pose_as_hexwkb(pose, variant, size_out)); - - public static string pose_as_text(IntPtr pose, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pose_as_text(pose, maxdd)); - - public static IntPtr pose_as_wkb(IntPtr pose, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.pose_as_wkb(pose, variant, size_out)); - - public static IntPtr pose_from_wkb(IntPtr wkb, IntPtr size) - => SafeExecution(() => MEOSExternalFunctions.pose_from_wkb(wkb, size)); - - public static IntPtr pose_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.pose_from_hexwkb(hexwkb)); - - public static IntPtr pose_in(string str) - => SafeExecution(() => MEOSExternalFunctions.pose_in(str)); - - public static string pose_out(IntPtr pose, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pose_out(pose, maxdd)); - - public static IntPtr pose_from_geopose(string json) - => SafeExecution(() => MEOSExternalFunctions.pose_from_geopose(json)); - - public static string pose_as_geopose(IntPtr pose, int conformance, int precision) - => SafeExecution(() => MEOSExternalFunctions.pose_as_geopose(pose, conformance, precision)); - - public static IntPtr tpose_from_geopose(string json) - => SafeExecution(() => MEOSExternalFunctions.tpose_from_geopose(json)); - - public static string tpose_as_geopose(IntPtr temp, int conformance, int precision) - => SafeExecution(() => MEOSExternalFunctions.tpose_as_geopose(temp, conformance, precision)); - - public static IntPtr pose_apply_geo(IntPtr pose, IntPtr body) - => SafeExecution(() => MEOSExternalFunctions.pose_apply_geo(pose, body)); - - public static IntPtr tpose_apply_geo(IntPtr temp, IntPtr body) - => SafeExecution(() => MEOSExternalFunctions.tpose_apply_geo(temp, body)); - - public static IntPtr pose_copy(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_copy(pose)); - - public static IntPtr pose_make_2d(double x, double y, double theta, bool geodetic, int srid) - => SafeExecution(() => MEOSExternalFunctions.pose_make_2d(x, y, theta, geodetic, srid)); - - public static IntPtr pose_make_3d(double x, double y, double z, double W, double X, double Y, double Z, bool geodetic, int srid) - => SafeExecution(() => MEOSExternalFunctions.pose_make_3d(x, y, z, W, X, Y, Z, geodetic, srid)); - - public static IntPtr pose_make_point2d(IntPtr gs, double theta) - => SafeExecution(() => MEOSExternalFunctions.pose_make_point2d(gs, theta)); - - public static IntPtr pose_make_point3d(IntPtr gs, double W, double X, double Y, double Z) - => SafeExecution(() => MEOSExternalFunctions.pose_make_point3d(gs, W, X, Y, Z)); - - public static IntPtr pose_to_point(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_to_point(pose)); - - public static IntPtr pose_to_stbox(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_to_stbox(pose)); - - public static int pose_hash(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_hash(pose)); - - public static IntPtr pose_hash_extended(IntPtr pose, IntPtr seed) - => SafeExecution(() => MEOSExternalFunctions.pose_hash_extended(pose, seed)); - - public static double[] pose_orientation(IntPtr pose) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.pose_orientation(pose, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - double[] _out = new double[_n]; - Marshal.Copy(_p, _out, 0, _n); - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double pose_rotation(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_rotation(pose)); - - public static double pose_yaw(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_yaw(pose)); - - public static double pose_pitch(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_pitch(pose)); - - public static double pose_roll(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_roll(pose)); - - public static double pose_angular_distance(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_angular_distance(pose1, pose2)); - - public static IntPtr pose_normalize(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_normalize(pose)); - - public static IntPtr pose_round(IntPtr pose, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pose_round(pose, maxdd)); - - public static IntPtr posearr_round(IntPtr posearr, int count, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.posearr_round(posearr, count, maxdd)); - - public static void pose_set_srid(IntPtr pose, int srid) - => SafeExecution(() => MEOSExternalFunctions.pose_set_srid(pose, srid)); - - public static int pose_srid(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_srid(pose)); - - public static IntPtr pose_transform(IntPtr pose, int srid) - => SafeExecution(() => MEOSExternalFunctions.pose_transform(pose, srid)); - - public static IntPtr pose_transform_pipeline(IntPtr pose, string pipelinestr, int srid, bool is_forward) - => SafeExecution(() => MEOSExternalFunctions.pose_transform_pipeline(pose, pipelinestr, srid, is_forward)); - - public static IntPtr pose_tstzspan_to_stbox(IntPtr pose, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.pose_tstzspan_to_stbox(pose, s)); - - public static IntPtr pose_timestamptz_to_stbox(IntPtr pose, long t) - => SafeExecution(() => MEOSExternalFunctions.pose_timestamptz_to_stbox(pose, t)); - - public static double distance_pose_geo(IntPtr pose, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.distance_pose_geo(pose, gs)); - - public static double distance_pose_pose(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.distance_pose_pose(pose1, pose2)); - - public static double distance_pose_stbox(IntPtr pose, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.distance_pose_stbox(pose, box)); - - public static int pose_cmp(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_cmp(pose1, pose2)); - - public static bool pose_eq(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_eq(pose1, pose2)); - - public static bool pose_ge(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_ge(pose1, pose2)); - - public static bool pose_gt(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_gt(pose1, pose2)); - - public static bool pose_le(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_le(pose1, pose2)); - - public static bool pose_lt(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_lt(pose1, pose2)); - - public static bool pose_ne(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_ne(pose1, pose2)); - - public static bool pose_nsame(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_nsame(pose1, pose2)); - - public static bool pose_same(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_same(pose1, pose2)); - - public static IntPtr poseset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.poseset_in(str)); - - public static string poseset_out(IntPtr s, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.poseset_out(s, maxdd)); - - public static IntPtr poseset_make(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.poseset_make(values, count)); - - public static IntPtr pose_to_set(IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_to_set(pose)); - - public static IntPtr poseset_end_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.poseset_end_value(s)); - - public static IntPtr poseset_start_value(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.poseset_start_value(s)); - - public static bool poseset_value_n(IntPtr s, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.poseset_value_n(s, n, result)); - - public static IntPtr[] poseset_values(IntPtr s) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.poseset_values(s, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool contained_pose_set(IntPtr pose, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.contained_pose_set(pose, s)); - - public static bool contains_set_pose(IntPtr s, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.contains_set_pose(s, pose)); - - public static IntPtr intersection_pose_set(IntPtr pose, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.intersection_pose_set(pose, s)); - - public static IntPtr intersection_set_pose(IntPtr s, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.intersection_set_pose(s, pose)); - - public static IntPtr minus_pose_set(IntPtr pose, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.minus_pose_set(pose, s)); - - public static IntPtr minus_set_pose(IntPtr s, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.minus_set_pose(s, pose)); - - public static IntPtr pose_union_transfn(IntPtr state, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.pose_union_transfn(state, pose)); - - public static IntPtr union_pose_set(IntPtr pose, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.union_pose_set(pose, s)); - - public static IntPtr union_set_pose(IntPtr s, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.union_set_pose(s, pose)); - - public static IntPtr tpose_from_mfjson(string str) - => SafeExecution(() => MEOSExternalFunctions.tpose_from_mfjson(str)); - - public static IntPtr tpose_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tpose_in(str)); - - public static IntPtr tposeinst_make(IntPtr pose, long t) - => SafeExecution(() => MEOSExternalFunctions.tposeinst_make(pose, t)); - - public static IntPtr tpose_from_base_temp(IntPtr pose, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_from_base_temp(pose, temp)); - - public static IntPtr tposeseq_from_base_tstzset(IntPtr pose, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tposeseq_from_base_tstzset(pose, s)); - - public static IntPtr tposeseq_from_base_tstzspan(IntPtr pose, IntPtr s, int interp) - => SafeExecution(() => MEOSExternalFunctions.tposeseq_from_base_tstzspan(pose, s, interp)); - - public static IntPtr tposeseqset_from_base_tstzspanset(IntPtr pose, IntPtr ss, int interp) - => SafeExecution(() => MEOSExternalFunctions.tposeseqset_from_base_tstzspanset(pose, ss, interp)); - - public static IntPtr tpose_make(IntPtr tpoint, IntPtr tradius) - => SafeExecution(() => MEOSExternalFunctions.tpose_make(tpoint, tradius)); - - public static IntPtr tpose_to_tpoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_to_tpoint(temp)); - - public static IntPtr tpose_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_end_value(temp)); - - public static IntPtr tpose_points(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_points(temp)); - - public static IntPtr tpose_rotation(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_rotation(temp)); - - public static IntPtr tpose_yaw(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_yaw(temp)); - - public static IntPtr tpose_pitch(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_pitch(temp)); - - public static IntPtr tpose_roll(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_roll(temp)); - - public static IntPtr tpose_speed(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_speed(temp)); - - public static IntPtr tpose_angular_speed(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_angular_speed(temp)); - - public static IntPtr tpose_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_start_value(temp)); - - public static IntPtr tpose_trajectory(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpose_trajectory(temp)); - - public static bool tpose_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpose_value_at_timestamptz(temp, t, strict, result)); - - public static bool tpose_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tpose_value_n(temp, n, result)); - - public static IntPtr[] tpose_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tpose_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tpose_at_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tpose_at_geom(temp, gs)); - - public static IntPtr tpose_at_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tpose_at_stbox(temp, box, border_inc)); - - public static IntPtr tpose_at_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.tpose_at_pose(temp, pose)); - - public static IntPtr tpose_minus_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tpose_minus_geom(temp, gs)); - - public static IntPtr tpose_minus_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.tpose_minus_pose(temp, pose)); - - public static IntPtr tpose_minus_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.tpose_minus_stbox(temp, box, border_inc)); - - public static IntPtr tdistance_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tpose_pose(temp, pose)); - - public static IntPtr tdistance_tpose_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tpose_geo(temp, gs)); - - public static IntPtr tdistance_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdistance_tpose_tpose(temp1, temp2)); - - public static double nad_tpose_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nad_tpose_geo(temp, gs)); - - public static double nad_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.nad_tpose_pose(temp, pose)); - - public static double nad_tpose_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_tpose_stbox(temp, box)); - - public static double nad_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_tpose_tpose(temp1, temp2)); - - public static IntPtr nai_tpose_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nai_tpose_geo(temp, gs)); - - public static IntPtr nai_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.nai_tpose_pose(temp, pose)); - - public static IntPtr nai_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nai_tpose_tpose(temp1, temp2)); - - public static IntPtr shortestline_tpose_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tpose_geo(temp, gs)); - - public static IntPtr shortestline_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tpose_pose(temp, pose)); - - public static IntPtr shortestline_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.shortestline_tpose_tpose(temp1, temp2)); - - public static int always_eq_pose_tpose(IntPtr pose, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_pose_tpose(pose, temp)); - - public static int always_eq_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tpose_pose(temp, pose)); - - public static int always_eq_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tpose_tpose(temp1, temp2)); - - public static int always_ne_pose_tpose(IntPtr pose, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_pose_tpose(pose, temp)); - - public static int always_ne_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tpose_pose(temp, pose)); - - public static int always_ne_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tpose_tpose(temp1, temp2)); - - public static int ever_eq_pose_tpose(IntPtr pose, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_pose_tpose(pose, temp)); - - public static int ever_eq_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tpose_pose(temp, pose)); - - public static int ever_eq_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tpose_tpose(temp1, temp2)); - - public static int ever_ne_pose_tpose(IntPtr pose, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_pose_tpose(pose, temp)); - - public static int ever_ne_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tpose_pose(temp, pose)); - - public static int ever_ne_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tpose_tpose(temp1, temp2)); - - public static IntPtr teq_pose_tpose(IntPtr pose, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_pose_tpose(pose, temp)); - - public static IntPtr teq_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.teq_tpose_pose(temp, pose)); - - public static IntPtr tne_pose_tpose(IntPtr pose, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_pose_tpose(pose, temp)); - - public static IntPtr tne_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.tne_tpose_pose(temp, pose)); - - public static bool quadbin_is_valid_index(IntPtr index) - => SafeExecution(() => MEOSExternalFunctions.quadbin_is_valid_index(index)); - - public static bool quadbin_is_valid_cell(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.quadbin_is_valid_cell(cell)); - - public static IntPtr quadbin_tile_to_cell(uint x, uint y, uint z) - => SafeExecution(() => MEOSExternalFunctions.quadbin_tile_to_cell(x, y, z)); - - public static void quadbin_cell_to_tile(IntPtr cell, IntPtr x, IntPtr y, IntPtr z) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cell_to_tile(cell, x, y, z)); - - public static uint quadbin_get_resolution(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.quadbin_get_resolution(cell)); - - public static IntPtr quadbin_cell_to_parent(IntPtr cell, uint parent_resolution) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cell_to_parent(cell, parent_resolution)); - - public static IntPtr[] quadbin_cell_to_children(IntPtr cell, uint children_resolution) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.quadbin_cell_to_children(cell, children_resolution, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr quadbin_cell_sibling(IntPtr cell, string direction) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cell_sibling(cell, direction)); - - public static IntPtr[] quadbin_k_ring(IntPtr cell, int k) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.quadbin_k_ring(cell, k, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr quadbin_point_to_cell(double longitude, double latitude, uint resolution) - => SafeExecution(() => MEOSExternalFunctions.quadbin_point_to_cell(longitude, latitude, resolution)); - - public static void quadbin_cell_to_point(IntPtr cell, IntPtr longitude, IntPtr latitude) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cell_to_point(cell, longitude, latitude)); - - public static void quadbin_cell_to_bounding_box(IntPtr cell, IntPtr xmin, IntPtr ymin, IntPtr xmax, IntPtr ymax) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cell_to_bounding_box(cell, xmin, ymin, xmax, ymax)); - - public static double quadbin_cell_area(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cell_area(cell)); - - public static string quadbin_index_to_string(IntPtr index) - => SafeExecution(() => MEOSExternalFunctions.quadbin_index_to_string(index)); - - public static IntPtr quadbin_string_to_index(string str) - => SafeExecution(() => MEOSExternalFunctions.quadbin_string_to_index(str)); - - public static string quadbin_cell_to_quadkey(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cell_to_quadkey(cell)); - - public static IntPtr quadbin_parse(string str) - => SafeExecution(() => MEOSExternalFunctions.quadbin_parse(str)); - - public static bool quadbin_eq(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.quadbin_eq(a, b)); - - public static bool quadbin_ne(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.quadbin_ne(a, b)); - - public static bool quadbin_lt(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.quadbin_lt(a, b)); - - public static bool quadbin_le(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.quadbin_le(a, b)); - - public static bool quadbin_gt(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.quadbin_gt(a, b)); - - public static bool quadbin_ge(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.quadbin_ge(a, b)); - - public static int quadbin_cmp(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cmp(a, b)); - - public static uint quadbin_hash(IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.quadbin_hash(cell)); - - public static IntPtr quadbin_grid_disk(IntPtr origin, int k) - => SafeExecution(() => MEOSExternalFunctions.quadbin_grid_disk(origin, k)); - - public static IntPtr quadbin_cell_to_children_set(IntPtr origin, int children_resolution) - => SafeExecution(() => MEOSExternalFunctions.quadbin_cell_to_children_set(origin, children_resolution)); - - public static IntPtr tquadbin_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tquadbin_in(str)); - - public static IntPtr tquadbininst_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tquadbininst_in(str)); - - public static IntPtr tquadbinseq_in(string str, int interp) - => SafeExecution(() => MEOSExternalFunctions.tquadbinseq_in(str, interp)); - - public static IntPtr tquadbinseqset_in(string str) - => SafeExecution(() => MEOSExternalFunctions.tquadbinseqset_in(str)); - - public static IntPtr tquadbin_make(IntPtr value, long t) - => SafeExecution(() => MEOSExternalFunctions.tquadbin_make(value, t)); - - public static IntPtr tquadbininst_make(IntPtr value, long t) - => SafeExecution(() => MEOSExternalFunctions.tquadbininst_make(value, t)); - - public static IntPtr tquadbinseq_make(IntPtr values, IntPtr times, int count, bool lower_inc, bool upper_inc) - => SafeExecution(() => MEOSExternalFunctions.tquadbinseq_make(values, times, count, lower_inc, upper_inc)); - - public static IntPtr tquadbinseqset_make(IntPtr sequences, int count) - => SafeExecution(() => MEOSExternalFunctions.tquadbinseqset_make(sequences, count)); - - public static IntPtr tquadbin_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tquadbin_start_value(temp)); - - public static IntPtr tquadbin_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tquadbin_end_value(temp)); - - public static bool tquadbin_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tquadbin_value_n(temp, n, result)); - - public static IntPtr[] tquadbin_values(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tquadbin_values(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static bool tquadbin_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tquadbin_value_at_timestamptz(temp, t, strict, result)); - - public static IntPtr tbigint_to_tquadbin(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tbigint_to_tquadbin(temp)); - - public static IntPtr tquadbin_to_tbigint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tquadbin_to_tbigint(temp)); - - public static int ever_eq_quadbin_tquadbin(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_quadbin_tquadbin(cell, temp)); - - public static int ever_eq_tquadbin_quadbin(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tquadbin_quadbin(temp, cell)); - - public static int ever_ne_quadbin_tquadbin(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_quadbin_tquadbin(cell, temp)); - - public static int ever_ne_tquadbin_quadbin(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tquadbin_quadbin(temp, cell)); - - public static int always_eq_quadbin_tquadbin(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_quadbin_tquadbin(cell, temp)); - - public static int always_eq_tquadbin_quadbin(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tquadbin_quadbin(temp, cell)); - - public static int always_ne_quadbin_tquadbin(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_quadbin_tquadbin(cell, temp)); - - public static int always_ne_tquadbin_quadbin(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tquadbin_quadbin(temp, cell)); - - public static int ever_eq_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_tquadbin_tquadbin(temp1, temp2)); - - public static int ever_ne_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_tquadbin_tquadbin(temp1, temp2)); - - public static int always_eq_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_tquadbin_tquadbin(temp1, temp2)); - - public static int always_ne_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_tquadbin_tquadbin(temp1, temp2)); - - public static IntPtr teq_quadbin_tquadbin(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_quadbin_tquadbin(cell, temp)); - - public static IntPtr teq_tquadbin_quadbin(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.teq_tquadbin_quadbin(temp, cell)); - - public static IntPtr teq_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.teq_tquadbin_tquadbin(temp1, temp2)); - - public static IntPtr tne_quadbin_tquadbin(IntPtr cell, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_quadbin_tquadbin(cell, temp)); - - public static IntPtr tne_tquadbin_quadbin(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.tne_tquadbin_quadbin(temp, cell)); - - public static IntPtr tne_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tne_tquadbin_tquadbin(temp1, temp2)); - - public static IntPtr tquadbin_cell_to_quadkey(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tquadbin_cell_to_quadkey(temp)); - - public static IntPtr raquet_in(string str) - => SafeExecution(() => MEOSExternalFunctions.raquet_in(str)); - - public static string raquet_out(IntPtr rq) - => SafeExecution(() => MEOSExternalFunctions.raquet_out(rq)); - - public static IntPtr raquet_from_wkb(IntPtr wkb, IntPtr size) - => SafeExecution(() => MEOSExternalFunctions.raquet_from_wkb(wkb, size)); - - public static IntPtr raquet_from_hexwkb(string hexwkb) - => SafeExecution(() => MEOSExternalFunctions.raquet_from_hexwkb(hexwkb)); - - public static IntPtr raquet_as_wkb(IntPtr rq, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.raquet_as_wkb(rq, variant, size_out)); - - public static string raquet_as_hexwkb(IntPtr rq, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.raquet_as_hexwkb(rq, variant, size_out)); - - public static IntPtr raquet_make(IntPtr quadbin, IntPtr width, IntPtr height, IntPtr pixtype, double nodata, bool has_nodata, IntPtr pixels) - => SafeExecution(() => MEOSExternalFunctions.raquet_make(quadbin, width, height, pixtype, nodata, has_nodata, pixels)); - - public static IntPtr raquet_copy(IntPtr rq) - => SafeExecution(() => MEOSExternalFunctions.raquet_copy(rq)); - - public static IntPtr raquet_read(string path, IntPtr quadbin) - => SafeExecution(() => MEOSExternalFunctions.raquet_read(path, quadbin)); - - public static IntPtr raquet_read_bytes(IntPtr data, IntPtr size, IntPtr quadbin) - => SafeExecution(() => MEOSExternalFunctions.raquet_read_bytes(data, size, quadbin)); - - public static IntPtr raquet_quadbin(IntPtr rq) - => SafeExecution(() => MEOSExternalFunctions.raquet_quadbin(rq)); - - public static int raquet_width(IntPtr rq) - => SafeExecution(() => MEOSExternalFunctions.raquet_width(rq)); - - public static int raquet_height(IntPtr rq) - => SafeExecution(() => MEOSExternalFunctions.raquet_height(rq)); - - public static double raquet_nodata(IntPtr rq) - => SafeExecution(() => MEOSExternalFunctions.raquet_nodata(rq)); - - public static int raquet_cmp(IntPtr rq1, IntPtr rq2) - => SafeExecution(() => MEOSExternalFunctions.raquet_cmp(rq1, rq2)); - - public static bool raquet_eq(IntPtr rq1, IntPtr rq2) - => SafeExecution(() => MEOSExternalFunctions.raquet_eq(rq1, rq2)); - - public static IntPtr raster_tile_value_quadbin(IntPtr pixels, IntPtr width, IntPtr height, IntPtr quadbin, IntPtr pixtype, double nodata, bool has_nodata, IntPtr traj) - => SafeExecution(() => MEOSExternalFunctions.raster_tile_value_quadbin(pixels, width, height, quadbin, pixtype, nodata, has_nodata, traj)); - - public static IntPtr raster_tile_value(IntPtr rq, IntPtr traj) - => SafeExecution(() => MEOSExternalFunctions.raster_tile_value(rq, traj)); - - public static IntPtr[] trajectory_quadbins(IntPtr traj, uint zoom) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trajectory_quadbins(traj, zoom, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static string trgeometry_out(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_out(temp)); - - public static IntPtr trgeometryinst_make(IntPtr geom, IntPtr pose, long t) - => SafeExecution(() => MEOSExternalFunctions.trgeometryinst_make(geom, pose, t)); - - public static IntPtr geo_tpose_to_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.geo_tpose_to_trgeometry(gs, temp)); - - public static IntPtr trgeometry_to_tpose(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_to_tpose(temp)); - - public static IntPtr trgeometry_to_tpoint(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_to_tpoint(temp)); - - public static IntPtr trgeometry_to_tgeometry(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_to_tgeometry(temp)); - - public static IntPtr trgeometry_end_instant(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_end_instant(temp)); - - public static IntPtr trgeometry_end_sequence(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_end_sequence(temp)); - - public static IntPtr trgeometry_end_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_end_value(temp)); - - public static IntPtr trgeometry_geom(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_geom(temp)); - - public static IntPtr trgeometry_instant_n(IntPtr temp, int n) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_instant_n(temp, n)); - - public static IntPtr[] trgeometry_instants(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_instants(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr trgeometry_points(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_points(temp)); - - public static IntPtr trgeometry_rotation(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_rotation(temp)); - - public static IntPtr[] trgeometry_segments(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_segments(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr trgeometry_sequence_n(IntPtr temp, int i) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_sequence_n(temp, i)); - - public static IntPtr[] trgeometry_sequences(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_sequences(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr trgeometry_start_instant(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_start_instant(temp)); - - public static IntPtr trgeometry_start_sequence(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_start_sequence(temp)); - - public static IntPtr trgeometry_start_value(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_start_value(temp)); - - public static bool trgeometry_value_n(IntPtr temp, int n, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_value_n(temp, n, result)); - - public static IntPtr trgeometry_traversed_area(IntPtr temp, bool unary_union) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_traversed_area(temp, unary_union)); - - public static IntPtr trgeometry_centroid(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_centroid(temp)); - - public static IntPtr trgeometry_convex_hull(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_convex_hull(temp)); - - public static IntPtr trgeometry_body_point_trajectory(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_body_point_trajectory(temp, gs)); - - public static IntPtr[] trgeometry_space_boxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, bool bitmatrix, bool border_inc) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_space_boxes(temp, xsize, ysize, zsize, sorigin, bitmatrix, border_inc, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] trgeometry_space_time_boxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, bool bitmatrix, bool border_inc) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_space_time_boxes(temp, xsize, ysize, zsize, duration, sorigin, torigin, bitmatrix, border_inc, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] trgeometry_stboxes(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_stboxes(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] trgeometry_split_n_stboxes(IntPtr temp, int box_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_split_n_stboxes(temp, box_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] trgeometry_split_each_n_stboxes(IntPtr temp, int elem_count) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_split_each_n_stboxes(temp, elem_count, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double trgeometry_hausdorff_distance(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_hausdorff_distance(temp1, temp2)); - - public static double trgeometry_frechet_distance(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_frechet_distance(temp1, temp2)); - - public static double trgeometry_dyntimewarp_distance(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_dyntimewarp_distance(temp1, temp2)); - - public static IntPtr[] trgeometry_frechet_path(IntPtr temp1, IntPtr temp2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_frechet_path(temp1, temp2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] trgeometry_dyntimewarp_path(IntPtr temp1, IntPtr temp2) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.trgeometry_dyntimewarp_path(temp1, temp2, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static double trgeometry_length(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_length(temp)); - - public static IntPtr trgeometry_cumulative_length(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_cumulative_length(temp)); - - public static IntPtr trgeometry_speed(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_speed(temp)); - - public static IntPtr trgeometry_twcentroid(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_twcentroid(temp)); - - public static IntPtr trgeometry_append_tinstant(IntPtr temp, IntPtr inst, int interp, double maxdist, IntPtr maxt, bool expand) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_append_tinstant(temp, inst, interp, maxdist, maxt, expand)); - - public static IntPtr trgeometry_append_tsequence(IntPtr temp, IntPtr seq, bool expand) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_append_tsequence(temp, seq, expand)); - - public static IntPtr trgeometry_delete_timestamptz(IntPtr temp, long t, bool connect) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_delete_timestamptz(temp, t, connect)); - - public static IntPtr trgeometry_delete_tstzset(IntPtr temp, IntPtr s, bool connect) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_delete_tstzset(temp, s, connect)); - - public static IntPtr trgeometry_delete_tstzspan(IntPtr temp, IntPtr s, bool connect) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_delete_tstzspan(temp, s, connect)); - - public static IntPtr trgeometry_delete_tstzspanset(IntPtr temp, IntPtr ss, bool connect) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_delete_tstzspanset(temp, ss, connect)); - - public static IntPtr trgeometry_round(IntPtr temp, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_round(temp, maxdd)); - - public static IntPtr trgeometry_set_interp(IntPtr temp, int interp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_set_interp(temp, interp)); - - public static IntPtr trgeometry_to_tinstant(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_to_tinstant(temp)); - - public static IntPtr trgeometry_after_timestamptz(IntPtr temp, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_after_timestamptz(temp, t, strict)); - - public static IntPtr trgeometry_before_timestamptz(IntPtr temp, long t, bool strict) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_before_timestamptz(temp, t, strict)); - - public static IntPtr trgeometry_restrict_values(IntPtr temp, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_restrict_values(temp, s, atfunc)); - - public static IntPtr trgeometry_restrict_timestamptz(IntPtr temp, long t, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_restrict_timestamptz(temp, t, atfunc)); - - public static IntPtr trgeometry_restrict_tstzset(IntPtr temp, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_restrict_tstzset(temp, s, atfunc)); - - public static IntPtr trgeometry_restrict_tstzspan(IntPtr temp, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_restrict_tstzspan(temp, s, atfunc)); - - public static IntPtr trgeometry_restrict_tstzspanset(IntPtr temp, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_restrict_tstzspanset(temp, ss, atfunc)); - - public static IntPtr trgeometry_at_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_at_geom(temp, gs)); - - public static IntPtr trgeometry_minus_geom(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_minus_geom(temp, gs)); - - public static IntPtr trgeometry_at_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_at_stbox(temp, box, border_inc)); - - public static IntPtr trgeometry_minus_stbox(IntPtr temp, IntPtr box, bool border_inc) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_minus_stbox(temp, box, border_inc)); - - public static IntPtr tdistance_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tdistance_trgeometry_geo(temp, gs)); - - public static IntPtr tdistance_trgeometry_tpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdistance_trgeometry_tpoint(temp1, temp2)); - - public static IntPtr tdistance_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.tdistance_trgeometry_trgeometry(temp1, temp2)); - - public static double nad_stbox_trgeometry(IntPtr box, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.nad_stbox_trgeometry(box, temp)); - - public static double nad_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nad_trgeometry_geo(temp, gs)); - - public static double nad_trgeometry_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_trgeometry_stbox(temp, box)); - - public static double nad_trgeometry_tpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_trgeometry_tpoint(temp1, temp2)); - - public static double nad_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_trgeometry_trgeometry(temp1, temp2)); - - public static IntPtr nai_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.nai_trgeometry_geo(temp, gs)); - - public static IntPtr nai_trgeometry_tpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nai_trgeometry_tpoint(temp1, temp2)); - - public static IntPtr nai_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nai_trgeometry_trgeometry(temp1, temp2)); - - public static IntPtr shortestline_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.shortestline_trgeometry_geo(temp, gs)); - - public static IntPtr shortestline_trgeometry_tpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.shortestline_trgeometry_tpoint(temp1, temp2)); - - public static IntPtr shortestline_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.shortestline_trgeometry_trgeometry(temp1, temp2)); - - public static int always_eq_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_eq_geo_trgeometry(gs, temp)); - - public static int always_eq_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.always_eq_trgeometry_geo(temp, gs)); - - public static int always_eq_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_eq_trgeometry_trgeometry(temp1, temp2)); - - public static int always_ne_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.always_ne_geo_trgeometry(gs, temp)); - - public static int always_ne_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.always_ne_trgeometry_geo(temp, gs)); - - public static int always_ne_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.always_ne_trgeometry_trgeometry(temp1, temp2)); - - public static int ever_eq_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_geo_trgeometry(gs, temp)); - - public static int ever_eq_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_trgeometry_geo(temp, gs)); - - public static int ever_eq_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_eq_trgeometry_trgeometry(temp1, temp2)); - - public static int ever_ne_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_geo_trgeometry(gs, temp)); - - public static int ever_ne_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_trgeometry_geo(temp, gs)); - - public static int ever_ne_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ever_ne_trgeometry_trgeometry(temp1, temp2)); - - public static IntPtr teq_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.teq_geo_trgeometry(gs, temp)); - - public static IntPtr teq_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.teq_trgeometry_geo(temp, gs)); - - public static IntPtr tne_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tne_geo_trgeometry(gs, temp)); - - public static IntPtr tne_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.tne_trgeometry_geo(temp, gs)); - - public static int econtains_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.econtains_geo_trgeometry(gs, temp)); - - public static int acontains_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.acontains_geo_trgeometry(gs, temp)); - - public static int ecovers_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.ecovers_geo_trgeometry(gs, temp)); - - public static int acovers_geo_trgeometry(IntPtr gs, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.acovers_geo_trgeometry(gs, temp)); - - public static int ecovers_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ecovers_trgeometry_geo(temp, gs)); - - public static int acovers_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.acovers_trgeometry_geo(temp, gs)); - - public static int edisjoint_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.edisjoint_trgeometry_geo(temp, gs)); - - public static int adisjoint_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.adisjoint_trgeometry_geo(temp, gs)); - - public static int eintersects_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.eintersects_trgeometry_geo(temp, gs)); - - public static int aintersects_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.aintersects_trgeometry_geo(temp, gs)); - - public static int etouches_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.etouches_trgeometry_geo(temp, gs)); - - public static int atouches_trgeometry_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.atouches_trgeometry_geo(temp, gs)); - - public static int edwithin_trgeometry_geo(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.edwithin_trgeometry_geo(temp, gs, dist)); - - public static int adwithin_trgeometry_geo(IntPtr temp, IntPtr gs, double dist) - => SafeExecution(() => MEOSExternalFunctions.adwithin_trgeometry_geo(temp, gs, dist)); - - public static int edisjoint_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.edisjoint_trgeometry_trgeometry(temp1, temp2)); - - public static int adisjoint_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.adisjoint_trgeometry_trgeometry(temp1, temp2)); - - public static int eintersects_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.eintersects_trgeometry_trgeometry(temp1, temp2)); - - public static int aintersects_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.aintersects_trgeometry_trgeometry(temp1, temp2)); - - public static int edwithin_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2, double dist) - => SafeExecution(() => MEOSExternalFunctions.edwithin_trgeometry_trgeometry(temp1, temp2, dist)); - - public static int adwithin_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2, double dist) - => SafeExecution(() => MEOSExternalFunctions.adwithin_trgeometry_trgeometry(temp1, temp2, dist)); - - public static bool ensure_valid_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnpoint_npoint(temp, np)); - - public static bool ensure_valid_tnpoint_npointset(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnpoint_npointset(temp, s)); - - public static bool ensure_valid_tnpoint_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnpoint_geo(temp, gs)); - - public static bool ensure_valid_tnpoint_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnpoint_stbox(temp, box)); - - public static bool ensure_valid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tnpoint_tnpoint(temp1, temp2)); - - public static int tnpointsegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tnpointsegm_intersection(start1, end1, start2, end2, lower, upper, t1, t2)); - - public static bool common_rid_tnpoint_npoint(IntPtr temp, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.common_rid_tnpoint_npoint(temp, np)); - - public static bool common_rid_tnpoint_npointset(IntPtr temp, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.common_rid_tnpoint_npointset(temp, s)); - - public static bool common_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.common_rid_tnpoint_tnpoint(temp1, temp2)); - - public static bool npoint_collinear(IntPtr np1, IntPtr np2, IntPtr np3, double ratio) - => SafeExecution(() => MEOSExternalFunctions.npoint_collinear(np1, np2, np3, ratio)); - - public static IntPtr npointsegm_interpolate(IntPtr start, IntPtr end, IntPtr ratio) - => SafeExecution(() => MEOSExternalFunctions.npointsegm_interpolate(start, end, ratio)); - - public static IntPtr npointsegm_locate(IntPtr start, IntPtr end, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.npointsegm_locate(start, end, value)); - - public static IntPtr npointarr_geom(IntPtr points, int count) - => SafeExecution(() => MEOSExternalFunctions.npointarr_geom(points, count)); - - public static IntPtr nsegmentarr_geom(IntPtr segments, int count) - => SafeExecution(() => MEOSExternalFunctions.nsegmentarr_geom(segments, count)); - - public static (IntPtr[], IntPtr[]) nsegmentarr_normalize() - { - IntPtr _out_segments = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr _count_count = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.nsegmentarr_normalize(_out_segments, _count_count)); - int _n = Marshal.ReadInt32(_count_count); - IntPtr[] _resultArr = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _resultArr[_i] = Marshal.ReadIntPtr(_resultPtr, _i * IntPtr.Size); } - IntPtr __out_segments_arr = Marshal.ReadIntPtr(_out_segments); - IntPtr[] __out_segments_out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { __out_segments_out[_i] = Marshal.ReadIntPtr(__out_segments_arr, _i * IntPtr.Size); } - return (_resultArr, __out_segments_out); - } - finally - { - Marshal.FreeHGlobal(_out_segments); - Marshal.FreeHGlobal(_count_count); - } - } - - public static string npoint_wkt_out(long value, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.npoint_wkt_out(value, maxdd)); - - public static void npoint_set(IntPtr rid, double pos, IntPtr np) - => SafeExecution(() => MEOSExternalFunctions.npoint_set(rid, pos, np)); - - public static void nsegment_set(IntPtr rid, double pos1, double pos2, IntPtr ns) - => SafeExecution(() => MEOSExternalFunctions.nsegment_set(rid, pos1, pos2, ns)); - - public static long datum_npoint_round(long npoint, long size) - => SafeExecution(() => MEOSExternalFunctions.datum_npoint_round(npoint, size)); - - public static IntPtr tnpointinst_tgeompointinst(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnpointinst_tgeompointinst(inst)); - - public static IntPtr tnpointseq_tgeompointseq_disc(IntPtr @is) - => SafeExecution(() => MEOSExternalFunctions.tnpointseq_tgeompointseq_disc(@is)); - - public static IntPtr tnpointseq_tgeompointseq_cont(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnpointseq_tgeompointseq_cont(seq)); - - public static IntPtr tnpointseqset_tgeompointseqset(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnpointseqset_tgeompointseqset(ss)); - - public static IntPtr tgeompointinst_tnpointinst(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tgeompointinst_tnpointinst(inst)); - - public static IntPtr tgeompointseq_tnpointseq(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tgeompointseq_tnpointseq(seq)); - - public static IntPtr tgeompointseqset_tnpointseqset(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tgeompointseqset_tnpointseqset(ss)); - - public static IntPtr tnpointinst_positions(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnpointinst_positions(inst)); - - public static IntPtr[] tnpointseq_positions(IntPtr seq) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnpointseq_positions(seq, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tnpointseqset_positions(IntPtr ss) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnpointseqset_positions(ss, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tnpointinst_route(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnpointinst_route(inst)); - - public static IntPtr tnpointinst_routes(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnpointinst_routes(inst)); - - public static IntPtr tnpointseq_disc_routes(IntPtr @is) - => SafeExecution(() => MEOSExternalFunctions.tnpointseq_disc_routes(@is)); - - public static IntPtr tnpointseq_cont_routes(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnpointseq_cont_routes(seq)); - - public static IntPtr tnpointseqset_routes(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tnpointseqset_routes(ss)); - - public static IntPtr tnpointseq_linear_positions(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnpointseq_linear_positions(seq)); - - public static IntPtr tnpoint_restrict_stbox(IntPtr temp, IntPtr box, bool border_inc, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_restrict_stbox(temp, box, border_inc, atfunc)); - - public static IntPtr tnpoint_restrict_npoint(IntPtr temp, IntPtr np, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_restrict_npoint(temp, np, atfunc)); - - public static IntPtr tnpoint_restrict_npointset(IntPtr temp, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_restrict_npointset(temp, s, atfunc)); - - public static bool npoint_set_stbox(IntPtr np, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.npoint_set_stbox(np, box)); - - public static void npointarr_set_stbox(IntPtr values, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.npointarr_set_stbox(values, count, box)); - - public static bool nsegment_set_stbox(IntPtr ns, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nsegment_set_stbox(ns, box)); - - public static bool npoint_timestamptz_set_stbox(IntPtr np, long t, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.npoint_timestamptz_set_stbox(np, t, box)); - - public static bool npoint_tstzspan_set_stbox(IntPtr np, IntPtr s, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.npoint_tstzspan_set_stbox(np, s, box)); - - public static void tnpointinst_set_stbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tnpointinst_set_stbox(inst, box)); - - public static void tnpointinstarr_set_stbox(IntPtr inst, int count, int interp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tnpointinstarr_set_stbox(inst, count, interp, box)); - - public static void tnpointseq_expand_stbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnpointseq_expand_stbox(seq, inst)); - - public static long datum_npoint_distance(long np1, long np2) - => SafeExecution(() => MEOSExternalFunctions.datum_npoint_distance(np1, np2)); - - public static IntPtr npoint_parse(IntPtr str, bool end) - => SafeExecution(() => MEOSExternalFunctions.npoint_parse(str, end)); - - public static IntPtr nsegment_parse(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.nsegment_parse(str)); - - public static bool contains_rid_tnpoint_bigint(IntPtr temp, IntPtr rid, int invert) - => SafeExecution(() => MEOSExternalFunctions.contains_rid_tnpoint_bigint(temp, rid, invert)); - - public static bool contained_rid_tnpoint_bigint(IntPtr temp, IntPtr rid, bool invert) - => SafeExecution(() => MEOSExternalFunctions.contained_rid_tnpoint_bigint(temp, rid, invert)); - - public static bool same_rid_tnpoint_bigint(IntPtr temp, IntPtr rid, int invert) - => SafeExecution(() => MEOSExternalFunctions.same_rid_tnpoint_bigint(temp, rid, invert)); - - public static bool overlaps_rid_tnpoint_bigintset(IntPtr temp, IntPtr s, int invert) - => SafeExecution(() => MEOSExternalFunctions.overlaps_rid_tnpoint_bigintset(temp, s, invert)); - - public static bool contains_rid_tnpoint_bigintset(IntPtr temp, IntPtr s, bool invert) - => SafeExecution(() => MEOSExternalFunctions.contains_rid_tnpoint_bigintset(temp, s, invert)); - - public static bool contained_rid_tnpoint_bigintset(IntPtr temp, IntPtr s, bool invert) - => SafeExecution(() => MEOSExternalFunctions.contained_rid_tnpoint_bigintset(temp, s, invert)); - - public static bool same_rid_tnpoint_bigintset(IntPtr temp, IntPtr s, int invert) - => SafeExecution(() => MEOSExternalFunctions.same_rid_tnpoint_bigintset(temp, s, invert)); - - public static bool contains_rid_tnpoint_npoint(IntPtr temp, IntPtr np, int invert) - => SafeExecution(() => MEOSExternalFunctions.contains_rid_tnpoint_npoint(temp, np, invert)); - - public static bool contained_rid_npoint_tnpoint(IntPtr temp, IntPtr np, bool invert) - => SafeExecution(() => MEOSExternalFunctions.contained_rid_npoint_tnpoint(temp, np, invert)); - - public static bool same_rid_tnpoint_npoint(IntPtr temp, IntPtr np, int invert) - => SafeExecution(() => MEOSExternalFunctions.same_rid_tnpoint_npoint(temp, np, invert)); - - public static bool overlaps_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.overlaps_rid_tnpoint_tnpoint(temp1, temp2)); - - public static bool contains_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contains_rid_tnpoint_tnpoint(temp1, temp2)); - - public static bool contained_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.contained_rid_tnpoint_tnpoint(temp1, temp2)); - - public static bool same_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.same_rid_tnpoint_tnpoint(temp1, temp2)); - - public static bool ensure_same_rid_tnpointinst(IntPtr inst1, IntPtr inst2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_rid_tnpointinst(inst1, inst2)); - - public static IntPtr tnpoint_restrict_geom(IntPtr temp, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnpoint_restrict_geom(temp, gs, atfunc)); - - public static int meos_pc_schema_get_srid(uint pcid) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_schema_get_srid(pcid)); - - public static bool ensure_same_pcid_pcpatch(IntPtr pa1, IntPtr pa2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_pcid_pcpatch(pa1, pa2)); - - public static bool ensure_valid_pcpatchset_pcpatch(IntPtr s, IntPtr pa) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_pcpatchset_pcpatch(s, pa)); - - public static IntPtr pcpatch_parse(IntPtr str, bool end) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_parse(str, end)); - - public static IntPtr pcpatch_filter_per_point(IntPtr pa, int pred, IntPtr extra, bool keep_when_true) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_filter_per_point(pa, pred, extra, keep_when_true)); - - public static bool pcpatch_any_point_matches(IntPtr pa, int pred, IntPtr extra) - => SafeExecution(() => MEOSExternalFunctions.pcpatch_any_point_matches(pa, pred, extra)); - - public static bool pcpoint_in_tpcbox(IntPtr pt, IntPtr extra) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_in_tpcbox(pt, extra)); - - public static bool pcpoint_intersects_geometry(IntPtr pt, IntPtr extra) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_intersects_geometry(pt, extra)); - - public static bool ensure_same_pcid_pcpoint(IntPtr pt1, IntPtr pt2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_pcid_pcpoint(pt1, pt2)); - - public static bool ensure_valid_pcpointset_pcpoint(IntPtr s, IntPtr pt) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_pcpointset_pcpoint(s, pt)); - - public static IntPtr pcpoint_parse(IntPtr str, bool end) - => SafeExecution(() => MEOSExternalFunctions.pcpoint_parse(str, end)); - - public static IntPtr meos_pc_point_serialize(IntPtr pcpt) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_point_serialize(pcpt)); - - public static IntPtr meos_pc_point_deserialize(IntPtr serpt, IntPtr schema) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_point_deserialize(serpt, schema)); - - public static ulong meos_pc_patch_serialized_size(IntPtr patch) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_patch_serialized_size(patch)); - - public static IntPtr meos_pc_patch_serialize(IntPtr patch_in, IntPtr userdata) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_patch_serialize(patch_in, userdata)); - - public static IntPtr meos_pc_patch_serialize_to_uncompressed(IntPtr patch_in) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_patch_serialize_to_uncompressed(patch_in)); - - public static IntPtr meos_pc_patch_deserialize(IntPtr serpatch, IntPtr schema) - => SafeExecution(() => MEOSExternalFunctions.meos_pc_patch_deserialize(serpatch, schema)); - - public static void tpointcloudinst_set_tpcbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpointcloudinst_set_tpcbox(inst, box)); - - public static void tpointcloudinstarr_set_tpcbox(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpointcloudinstarr_set_tpcbox(instants, count, lower_inc, upper_inc, interp, box)); - - public static void tpointcloudseq_expand_tpcbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tpointcloudseq_expand_tpcbox(seq, inst)); - - public static void tpointcloudseqarr_set_tpcbox(IntPtr sequences, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tpointcloudseqarr_set_tpcbox(sequences, count, box)); - - public static IntPtr tpcbox_extent_transfn(IntPtr state, IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_extent_transfn(state, temp)); - - public static bool boxop_tpointcloud_tpcbox(IntPtr temp, IntPtr box, IntPtr func, bool inverted) - => SafeExecution(() => MEOSExternalFunctions.boxop_tpointcloud_tpcbox(temp, box, func, inverted)); - - public static bool boxop_tpointcloud_tpointcloud(IntPtr temp1, IntPtr temp2, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.boxop_tpointcloud_tpointcloud(temp1, temp2, func)); - - public static void tpcbox_set_stbox(IntPtr src, IntPtr dst) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_set_stbox(src, dst)); - - public static double nad_tpcbox_tpcbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.nad_tpcbox_tpcbox(box1, box2)); - - public static double nad_tpointcloud_tpcbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.nad_tpointcloud_tpcbox(temp, box)); - - public static double nad_tpointcloud_tpointcloud(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.nad_tpointcloud_tpointcloud(temp1, temp2)); - - public static IntPtr tpcbox_parse(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_parse(str)); - - public static bool tpcbox_index_leaf_consistent(IntPtr key, IntPtr query, int strategy) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_index_leaf_consistent(key, query, strategy)); - - public static bool tpcbox_gist_inner_consistent(IntPtr key, IntPtr query, int strategy) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_gist_inner_consistent(key, query, strategy)); - - public static bool tpcbox_index_recheck(int strategy) - => SafeExecution(() => MEOSExternalFunctions.tpcbox_index_recheck(strategy)); - - public static bool ensure_valid_pose_geo(IntPtr pose, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_pose_geo(pose, gs)); - - public static bool ensure_valid_pose_stbox(IntPtr pose, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_pose_stbox(pose, box)); - - public static bool ensure_valid_pose_pose(IntPtr pose1, IntPtr pose2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_pose_pose(pose1, pose2)); - - public static bool ensure_valid_poseset_pose(IntPtr s, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_poseset_pose(s, pose)); - - public static bool pose_collinear(IntPtr pose1, IntPtr pose2, IntPtr pose3, double ratio) - => SafeExecution(() => MEOSExternalFunctions.pose_collinear(pose1, pose2, pose3, ratio)); - - public static IntPtr posesegm_interpolate(IntPtr start, IntPtr end, double ratio) - => SafeExecution(() => MEOSExternalFunctions.posesegm_interpolate(start, end, ratio)); - - public static IntPtr posesegm_locate(IntPtr start, IntPtr end, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.posesegm_locate(start, end, value)); - - public static string pose_wkt_out(IntPtr pose, bool extended, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.pose_wkt_out(pose, extended, maxdd)); - - public static IntPtr pose_parse(IntPtr str, bool end) - => SafeExecution(() => MEOSExternalFunctions.pose_parse(str, end)); - - public static long datum_pose_point(long pose) - => SafeExecution(() => MEOSExternalFunctions.datum_pose_point(pose)); - - public static long datum_pose_geopoint(long pose) - => SafeExecution(() => MEOSExternalFunctions.datum_pose_geopoint(pose)); - - public static long datum_pose_rotation(long pose) - => SafeExecution(() => MEOSExternalFunctions.datum_pose_rotation(pose)); - - public static long datum_pose_yaw(long pose) - => SafeExecution(() => MEOSExternalFunctions.datum_pose_yaw(pose)); - - public static long datum_pose_pitch(long pose) - => SafeExecution(() => MEOSExternalFunctions.datum_pose_pitch(pose)); - - public static long datum_pose_roll(long pose) - => SafeExecution(() => MEOSExternalFunctions.datum_pose_roll(pose)); - - public static long datum_pose_apply_geo(long pose, long body) - => SafeExecution(() => MEOSExternalFunctions.datum_pose_apply_geo(pose, body)); - - public static long datum_pose_round(long pose, long size) - => SafeExecution(() => MEOSExternalFunctions.datum_pose_round(pose, size)); - - public static long pose_distance(long pose1, long pose2) - => SafeExecution(() => MEOSExternalFunctions.pose_distance(pose1, pose2)); - - public static bool pose_set_stbox(IntPtr pose, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.pose_set_stbox(pose, box)); - - public static void posearr_set_stbox(IntPtr values, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.posearr_set_stbox(values, count, box)); - - public static bool pose_timestamptz_set_stbox(IntPtr pose, long t, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.pose_timestamptz_set_stbox(pose, t, box)); - - public static bool pose_tstzspan_set_stbox(IntPtr pose, IntPtr p, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.pose_tstzspan_set_stbox(pose, p, box)); - - public static bool ensure_valid_tpose_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tpose_geo(temp, gs)); - - public static bool ensure_valid_tpose_pose(IntPtr temp, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tpose_pose(temp, pose)); - - public static bool ensure_valid_tpose_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tpose_stbox(temp, box)); - - public static bool ensure_valid_tpose_tpose(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tpose_tpose(temp1, temp2)); - - public static int tposesegm_intersection_value(long start, long end, long value, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tposesegm_intersection_value(start, end, value, lower, upper, t1, t2)); - - public static int tposesegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tposesegm_intersection(start1, end1, start2, end2, lower, upper, t1, t2)); - - public static void tposeinst_set_stbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tposeinst_set_stbox(inst, box)); - - public static void tposeinstarr_set_stbox(IntPtr instants, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tposeinstarr_set_stbox(instants, count, box)); - - public static void tposeseq_expand_stbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tposeseq_expand_stbox(seq, inst)); - - public static IntPtr tpose_restrict_geom(IntPtr temp, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tpose_restrict_geom(temp, gs, atfunc)); - - public static IntPtr tpose_restrict_stbox(IntPtr temp, IntPtr box, bool border_inc, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tpose_restrict_stbox(temp, box, border_inc, atfunc)); - - public static IntPtr tpose_restrict_elevation(IntPtr temp, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tpose_restrict_elevation(temp, s, atfunc)); - - public static bool bool_in(string str) - => SafeExecution(() => MEOSExternalFunctions.bool_in(str)); - - public static string bool_out(bool b) - => SafeExecution(() => MEOSExternalFunctions.bool_out(b)); - - public static string float8_out(double num, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.float8_out(num, maxdd)); - - public static int date_in(string str) - => SafeExecution(() => MEOSExternalFunctions.date_in(str)); - - public static string date_out(int date) - => SafeExecution(() => MEOSExternalFunctions.date_out(date)); - - public static int interval_cmp(IntPtr interv1, IntPtr interv2) - => SafeExecution(() => MEOSExternalFunctions.interval_cmp(interv1, interv2)); - - public static IntPtr interval_in(string str, int typmod) - => SafeExecution(() => MEOSExternalFunctions.interval_in(str, typmod)); - - public static string interval_out(IntPtr interv) - => SafeExecution(() => MEOSExternalFunctions.interval_out(interv)); - - public static long time_in(string str, int typmod) - => SafeExecution(() => MEOSExternalFunctions.time_in(str, typmod)); - - public static string time_out(long time) - => SafeExecution(() => MEOSExternalFunctions.time_out(time)); - - public static long timestamp_in(string str, int typmod) - => SafeExecution(() => MEOSExternalFunctions.timestamp_in(str, typmod)); - - public static string timestamp_out(long ts) - => SafeExecution(() => MEOSExternalFunctions.timestamp_out(ts)); - - public static long timestamptz_in(string str, int typmod) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_in(str, typmod)); - - public static string timestamptz_out(long tstz) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_out(tstz)); - - public static IntPtr cstring_to_text(string str) - => SafeExecution(() => MEOSExternalFunctions.cstring_to_text(str)); - - public static string text_to_cstring(IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.text_to_cstring(txt)); - - public static IntPtr text_in(string str) - => SafeExecution(() => MEOSExternalFunctions.text_in(str)); - - public static string text_out(IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.text_out(txt)); - - public static int text_cmp(IntPtr txt1, IntPtr txt2, uint collid) - => SafeExecution(() => MEOSExternalFunctions.text_cmp(txt1, txt2, collid)); - - public static IntPtr text_copy(IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.text_copy(txt)); - - public static IntPtr text_initcap(IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.text_initcap(txt)); - - public static IntPtr text_lower(IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.text_lower(txt)); - - public static IntPtr text_upper(IntPtr txt) - => SafeExecution(() => MEOSExternalFunctions.text_upper(txt)); - - public static IntPtr textcat_text_text(IntPtr txt1, IntPtr txt2) - => SafeExecution(() => MEOSExternalFunctions.textcat_text_text(txt1, txt2)); - - public static int ensure_valid_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tquadbin_tquadbin(temp1, temp2)); - - public static bool ensure_valid_tquadbin_quadbin(IntPtr temp, IntPtr cell) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tquadbin_quadbin(temp, cell)); - - public static bool ensure_valid_tquadbin_tgeompoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tquadbin_tgeompoint(temp1, temp2)); - - public static long datum2_quadbin_eq(long d1, long d2, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_quadbin_eq(d1, d2, type)); - - public static long datum2_quadbin_ne(long d1, long d2, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_quadbin_ne(d1, d2, type)); - - public static bool quadbin_set_stbox(IntPtr cell, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.quadbin_set_stbox(cell, box)); - - public static void quadbinarr_set_stbox(IntPtr values, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.quadbinarr_set_stbox(values, count, box)); - - public static void tquadbininst_set_stbox(IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tquadbininst_set_stbox(inst, box)); - - public static void tquadbininstarr_set_stbox(IntPtr instants, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tquadbininstarr_set_stbox(instants, count, box)); - - public static void tquadbinseq_expand_stbox(IntPtr seq, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tquadbinseq_expand_stbox(seq, inst)); - - public static int raquet_pixtype_size(IntPtr pixtype) - => SafeExecution(() => MEOSExternalFunctions.raquet_pixtype_size(pixtype)); - - public static int raquet_pixels_size(IntPtr rq) - => SafeExecution(() => MEOSExternalFunctions.raquet_pixels_size(rq)); - - public static bool raster_quadbin_from_bounds(double origin_x, double origin_y, double pixel_w, double pixel_h, int xsize, int ysize, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.raster_quadbin_from_bounds(origin_x, origin_y, pixel_w, pixel_h, xsize, ysize, result)); - - public static bool ensure_has_geom(short flags) - => SafeExecution(() => MEOSExternalFunctions.ensure_has_geom(flags)); - - public static bool ensure_valid_trgeo_geo(IntPtr temp, IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_trgeo_geo(temp, gs)); - - public static bool ensure_valid_trgeo_stbox(IntPtr temp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_trgeo_stbox(temp, box)); - - public static bool ensure_valid_trgeo_trgeo(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_trgeo_trgeo(temp1, temp2)); - - public static bool ensure_valid_trgeo_tpoint(IntPtr temp1, IntPtr temp2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_trgeo_tpoint(temp1, temp2)); - - public static IntPtr trgeo_geom_p(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_p(temp)); - - public static string trgeo_wkt_out(IntPtr temp, int maxdd, bool extended) - => SafeExecution(() => MEOSExternalFunctions.trgeo_wkt_out(temp, maxdd, extended)); - - public static IntPtr geo_tposeinst_to_trgeo(IntPtr gs, IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.geo_tposeinst_to_trgeo(gs, inst)); - - public static IntPtr geo_tposeseq_to_trgeo(IntPtr gs, IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.geo_tposeseq_to_trgeo(gs, seq)); - - public static IntPtr geo_tposeseqset_to_trgeo(IntPtr gs, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.geo_tposeseqset_to_trgeo(gs, ss)); - - public static bool trgeo_value_at_timestamptz(IntPtr temp, long t, bool strict, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.trgeo_value_at_timestamptz(temp, t, strict, result)); - - public static IntPtr trgeometry_restrict_value(IntPtr temp, long value, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.trgeometry_restrict_value(temp, value, atfunc)); - - public static IntPtr trgeoinst_geom_p(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.trgeoinst_geom_p(inst)); - - public static ulong trgeoinst_pose_varsize(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.trgeoinst_pose_varsize(inst)); - - public static void trgeoinst_set_pose(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.trgeoinst_set_pose(inst)); - - public static IntPtr trgeoinst_tposeinst(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.trgeoinst_tposeinst(inst)); - - public static IntPtr trgeoinst_make1(IntPtr geom, IntPtr pose, long t) - => SafeExecution(() => MEOSExternalFunctions.trgeoinst_make1(geom, pose, t)); - - public static IntPtr trgeoseq_to_tinstant(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_to_tinstant(seq)); - - public static IntPtr trgeoseqset_to_tinstant(IntPtr ts) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_to_tinstant(ts)); - - public static IntPtr trgeo_restrict_geom(IntPtr temp, IntPtr gs, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.trgeo_restrict_geom(temp, gs, atfunc)); - - public static IntPtr trgeo_restrict_stbox(IntPtr temp, IntPtr box, bool border_inc, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.trgeo_restrict_stbox(temp, box, border_inc, atfunc)); - - public static int spatialrel_trgeo_trav_geo(IntPtr temp, IntPtr gs, long param, IntPtr func, int numparam, bool invert) - => SafeExecution(() => MEOSExternalFunctions.spatialrel_trgeo_trav_geo(temp, gs, param, func, numparam, invert)); - - public static int ea_contains_geo_trgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_geo_trgeo(gs, temp, ever)); - - public static int ea_contains_trgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_trgeo_geo(temp, gs, ever)); - - public static int ea_contains_trgeo_trgeo(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_contains_trgeo_trgeo(temp1, temp2, ever)); - - public static int ea_covers_geo_trgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_geo_trgeo(gs, temp, ever)); - - public static int ea_covers_trgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_trgeo_geo(temp, gs, ever)); - - public static int ea_covers_trgeo_trgeo(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_covers_trgeo_trgeo(temp1, temp2, ever)); - - public static int ea_disjoint_geo_trgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_geo_trgeo(gs, temp, ever)); - - public static int ea_disjoint_trgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_trgeo_geo(temp, gs, ever)); - - public static int ea_disjoint_trgeo_trgeo(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_disjoint_trgeo_trgeo(temp1, temp2, ever)); - - public static int ea_intersects_geo_trgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_geo_trgeo(gs, temp, ever)); - - public static int ea_intersects_trgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_trgeo_geo(temp, gs, ever)); - - public static int ea_intersects_trgeo_trgeo(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_intersects_trgeo_trgeo(temp1, temp2, ever)); - - public static int ea_touches_geo_trgeo(IntPtr gs, IntPtr temp, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_geo_trgeo(gs, temp, ever)); - - public static int ea_touches_trgeo_geo(IntPtr temp, IntPtr gs, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_trgeo_geo(temp, gs, ever)); - - public static int ea_touches_trgeo_trgeo(IntPtr temp1, IntPtr temp2, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_touches_trgeo_trgeo(temp1, temp2, ever)); - - public static int ea_dwithin_trgeo_geo(IntPtr temp, IntPtr gs, double dist, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_dwithin_trgeo_geo(temp, gs, dist, ever)); - - public static int ea_dwithin_trgeo_trgeo(IntPtr temp1, IntPtr temp2, double dist, bool ever) - => SafeExecution(() => MEOSExternalFunctions.ea_dwithin_trgeo_trgeo(temp1, temp2, dist, ever)); - - public static IntPtr trgeoseq_geom_p(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_geom_p(seq)); - - public static ulong trgeoseq_pose_varsize(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_pose_varsize(seq)); - - public static void trgeoseq_set_pose(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_set_pose(seq)); - - public static IntPtr trgeoseq_tposeseq(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_tposeseq(seq)); - - public static bool trgeoseq_make_valid(IntPtr geom, IntPtr instants, int count, bool lower_inc, bool upper_inc, bool linear) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_make_valid(geom, instants, count, lower_inc, upper_inc, linear)); - - public static IntPtr trgeoseq_make1_exp(IntPtr geom, IntPtr instants, int count, int maxcount, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_make1_exp(geom, instants, count, maxcount, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr trgeoseq_make1(IntPtr geom, IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_make1(geom, instants, count, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr trgeoseq_make_exp(IntPtr geom, IntPtr instants, int count, int maxcount, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_make_exp(geom, instants, count, maxcount, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr trgeoseq_make(IntPtr geom, IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_make(geom, instants, count, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr trgeoseq_make_free_exp(IntPtr geom, IntPtr instants, int count, int maxcount, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_make_free_exp(geom, instants, count, maxcount, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr trgeoseq_make_free(IntPtr geom, IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseq_make_free(geom, instants, count, lower_inc, upper_inc, interp, normalize)); - - public static IntPtr trgeoinst_to_tsequence(IntPtr inst, int interp) - => SafeExecution(() => MEOSExternalFunctions.trgeoinst_to_tsequence(inst, interp)); - - public static IntPtr trgeoseqset_geom_p(IntPtr ts) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_geom_p(ts)); - - public static IntPtr trgeoseqset_tposeseqset(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_tposeseqset(ss)); - - public static IntPtr trgeoseqset_make1_exp(IntPtr geom, IntPtr sequences, int count, int maxcount, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_make1_exp(geom, sequences, count, maxcount, normalize)); - - public static IntPtr trgeoseqset_make_exp(IntPtr geom, IntPtr sequences, int count, int maxcount, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_make_exp(geom, sequences, count, maxcount, normalize)); - - public static IntPtr trgeoseqset_make(IntPtr geom, IntPtr sequences, int count, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_make(geom, sequences, count, normalize)); - - public static IntPtr trgeoseqset_make_free(IntPtr geom, IntPtr sequences, int count, bool normalize) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_make_free(geom, sequences, count, normalize)); - - public static IntPtr trgeoseqset_make_gaps(IntPtr geom, IntPtr instants, int count, int interp, IntPtr maxt, double maxdist) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_make_gaps(geom, instants, count, interp, maxt, maxdist)); - - public static IntPtr trgeoseqset_to_tsequence(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.trgeoseqset_to_tsequence(ss)); - - public static IntPtr trgeo_to_tsequence(IntPtr temp, string interp_str) - => SafeExecution(() => MEOSExternalFunctions.trgeo_to_tsequence(temp, interp_str)); - - public static IntPtr trgeo_to_tsequenceset(IntPtr temp, string interp_str) - => SafeExecution(() => MEOSExternalFunctions.trgeo_to_tsequenceset(temp, interp_str)); - - public static void trgeoinst_set_stbox(IntPtr geom, IntPtr inst, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.trgeoinst_set_stbox(geom, inst, box)); - - public static void trgeoinstarr_static_stbox(IntPtr geom, IntPtr instants, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.trgeoinstarr_static_stbox(geom, instants, count, box)); - - public static void trgeoinstarr_rotating_stbox(IntPtr geom, IntPtr instants, int count, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.trgeoinstarr_rotating_stbox(geom, instants, count, box)); - - public static void trgeoinstarr_compute_bbox(IntPtr geom, IntPtr instants, int count, int interp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.trgeoinstarr_compute_bbox(geom, instants, count, interp, box)); - - public static bool ensure_span_isof_type(IntPtr s, int spantype) - => SafeExecution(() => MEOSExternalFunctions.ensure_span_isof_type(s, spantype)); - - public static bool ensure_span_isof_basetype(IntPtr s, int basetype) - => SafeExecution(() => MEOSExternalFunctions.ensure_span_isof_basetype(s, basetype)); - - public static bool ensure_same_span_type(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_span_type(s1, s2)); - - public static bool ensure_valid_span_span(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_span_span(s1, s2)); - - public static void span_deserialize(IntPtr s, IntPtr lower, IntPtr upper) - => SafeExecution(() => MEOSExternalFunctions.span_deserialize(s, lower, upper)); - - public static int span_bound_cmp(IntPtr b1, IntPtr b2) - => SafeExecution(() => MEOSExternalFunctions.span_bound_cmp(b1, b2)); - - public static int span_bound_qsort_cmp(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_bound_qsort_cmp(s1, s2)); - - public static int span_lower_cmp(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_lower_cmp(s1, s2)); - - public static int span_upper_cmp(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.span_upper_cmp(s1, s2)); - - public static long span_decr_bound(long upper, int basetype) - => SafeExecution(() => MEOSExternalFunctions.span_decr_bound(upper, basetype)); - - public static long span_incr_bound(long upper, int basetype) - => SafeExecution(() => MEOSExternalFunctions.span_incr_bound(upper, basetype)); - - public static IntPtr spanarr_normalize(IntPtr spans, int count, bool sort, IntPtr newcount) - => SafeExecution(() => MEOSExternalFunctions.spanarr_normalize(spans, count, sort, newcount)); - - public static void span_bounds_shift_scale_value(long shift, long width, int type, bool hasshift, bool haswidth, IntPtr lower, IntPtr upper) - => SafeExecution(() => MEOSExternalFunctions.span_bounds_shift_scale_value(shift, width, type, hasshift, haswidth, lower, upper)); - - public static void span_bounds_shift_scale_time(IntPtr shift, IntPtr duration, IntPtr lower, IntPtr upper) - => SafeExecution(() => MEOSExternalFunctions.span_bounds_shift_scale_time(shift, duration, lower, upper)); - - public static void floatspan_floor_ceil_iter(IntPtr s, int func) - => SafeExecution(() => MEOSExternalFunctions.floatspan_floor_ceil_iter(s, func)); - - public static void numspan_delta_scale_iter(IntPtr s, long origin, long delta, bool hasdelta, double scale) - => SafeExecution(() => MEOSExternalFunctions.numspan_delta_scale_iter(s, origin, delta, hasdelta, scale)); - - public static void tstzspan_delta_scale_iter(IntPtr s, long origin, long delta, double scale) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_delta_scale_iter(s, origin, delta, scale)); - - public static void numspan_shift_scale_iter(IntPtr s, long shift, long width, bool hasshift, bool haswidth, IntPtr delta, IntPtr scale) - => SafeExecution(() => MEOSExternalFunctions.numspan_shift_scale_iter(s, shift, width, hasshift, haswidth, delta, scale)); - - public static void tstzspan_shift_scale1(IntPtr s, IntPtr shift, IntPtr duration, IntPtr delta, IntPtr scale) - => SafeExecution(() => MEOSExternalFunctions.tstzspan_shift_scale1(s, shift, duration, delta, scale)); - - public static int mi_span_value(IntPtr s, long value, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.mi_span_value(s, value, result)); - - public static double dist_double_value_value(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.dist_double_value_value(l, r, type)); - - public static int trgeo_geom_clip_polygon(IntPtr a1, IntPtr b1, IntPtr a2, IntPtr b2, IntPtr pa, IntPtr intervals_out) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_clip_polygon(a1, b1, a2, b2, pa, intervals_out)); - - public static int trgeo_geom_clip_lwpoly(IntPtr a1, IntPtr b1, IntPtr a2, IntPtr b2, IntPtr poly, IntPtr intervals_out) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_clip_lwpoly(a1, b1, a2, b2, poly, intervals_out)); - - public static int trgeo_geom_clip_box(IntPtr a1, IntPtr b1, IntPtr a2, IntPtr b2, double xmin, double ymin, double xmax, double ymax, IntPtr intervals_out) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_clip_box(a1, b1, a2, b2, xmin, ymin, xmax, ymax, intervals_out)); - - public static int trgeo_geom_clip_polygon_posed(IntPtr p_a_local, IntPtr p_b_local, IntPtr pose1, IntPtr pose2, IntPtr pa, IntPtr intervals_out) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_clip_polygon_posed(p_a_local, p_b_local, pose1, pose2, pa, intervals_out)); - - public static int trgeo_geom_clip_lwpoly_posed(IntPtr p_a_local, IntPtr p_b_local, IntPtr pose1, IntPtr pose2, IntPtr poly, IntPtr intervals_out) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_clip_lwpoly_posed(p_a_local, p_b_local, pose1, pose2, poly, intervals_out)); - - public static int trgeo_geom_clip_box_posed(IntPtr p_a_local, IntPtr p_b_local, IntPtr pose1, IntPtr pose2, double xmin, double ymin, double xmax, double ymax, IntPtr intervals_out) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_clip_box_posed(p_a_local, p_b_local, pose1, pose2, xmin, ymin, xmax, ymax, intervals_out)); - - public static int trgeo_geom_clip_lwgeom(IntPtr a1, IntPtr b1, IntPtr a2, IntPtr b2, IntPtr geom, IntPtr intervals_out) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_clip_lwgeom(a1, b1, a2, b2, geom, intervals_out)); - - public static int trgeo_geom_clip_lwgeom_posed(IntPtr p_a_local, IntPtr p_b_local, IntPtr pose1, IntPtr pose2, IntPtr geom, IntPtr intervals_out) - => SafeExecution(() => MEOSExternalFunctions.trgeo_geom_clip_lwgeom_posed(p_a_local, p_b_local, pose1, pose2, geom, intervals_out)); - - public static IntPtr trgeo_parse(IntPtr str, int temptype) - => SafeExecution(() => MEOSExternalFunctions.trgeo_parse(str, temptype)); - - public static bool ensure_same_geom(IntPtr gs1, IntPtr gs2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_geom(gs1, gs2)); - - public static void lwgeom_apply_pose(IntPtr pose, IntPtr geom) - => SafeExecution(() => MEOSExternalFunctions.lwgeom_apply_pose(pose, geom)); - - public static IntPtr geom_apply_pose(IntPtr gs, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.geom_apply_pose(gs, pose)); - - public static double geom_radius(IntPtr gs) - => SafeExecution(() => MEOSExternalFunctions.geom_radius(gs)); - - public static int v_clip_tpoly_point(IntPtr poly, IntPtr point, IntPtr pose, IntPtr poly_feature, IntPtr dist) - => SafeExecution(() => MEOSExternalFunctions.v_clip_tpoly_point(poly, point, pose, poly_feature, dist)); - - public static int v_clip_tpoly_tpoly(IntPtr poly1, IntPtr poly2, IntPtr pose1, IntPtr pose2, IntPtr poly1_feature, IntPtr poly2_feature, IntPtr dist) - => SafeExecution(() => MEOSExternalFunctions.v_clip_tpoly_tpoly(poly1, poly2, pose1, pose2, poly1_feature, poly2_feature, dist)); - - public static void apply_pose_point4d(IntPtr p, IntPtr pose) - => SafeExecution(() => MEOSExternalFunctions.apply_pose_point4d(p, pose)); - - public static IntPtr tfunc_tinstant(IntPtr inst, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tinstant(inst, lfinfo)); - - public static IntPtr tfunc_tsequence(IntPtr seq, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tsequence(seq, lfinfo)); - - public static IntPtr tfunc_tsequenceset(IntPtr ss, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tsequenceset(ss, lfinfo)); - - public static IntPtr tfunc_temporal(IntPtr temp, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_temporal(temp, lfinfo)); - - public static IntPtr tfunc_tinstant_base(IntPtr inst, long value, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tinstant_base(inst, value, lfinfo)); - - public static IntPtr tfunc_tsequence_base(IntPtr seq, long value, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tsequence_base(seq, value, lfinfo)); - - public static IntPtr tfunc_tsequenceset_base(IntPtr ss, long value, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tsequenceset_base(ss, value, lfinfo)); - - public static IntPtr tfunc_temporal_base(IntPtr temp, long value, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_temporal_base(temp, value, lfinfo)); - - public static IntPtr tfunc_tinstant_tinstant(IntPtr inst1, IntPtr inst2, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tinstant_tinstant(inst1, inst2, lfinfo)); - - public static IntPtr tfunc_tdiscseq_tdiscseq(IntPtr seq1, IntPtr seq2, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tdiscseq_tdiscseq(seq1, seq2, lfinfo)); - - public static IntPtr tfunc_tcontseq_tcontseq(IntPtr seq1, IntPtr seq2, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tcontseq_tcontseq(seq1, seq2, lfinfo)); - - public static IntPtr tfunc_tsequenceset_tsequenceset(IntPtr ss1, IntPtr ss2, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_tsequenceset_tsequenceset(ss1, ss2, lfinfo)); - - public static IntPtr tfunc_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.tfunc_temporal_temporal(temp1, temp2, lfinfo)); - - public static int eafunc_temporal_base(IntPtr temp, long value, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.eafunc_temporal_base(temp, value, lfinfo)); - - public static int eafunc_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.eafunc_temporal_temporal(temp1, temp2, lfinfo)); - - public static IntPtr lfunc_set(IntPtr set, IntPtr lfinfo) - => SafeExecution(() => MEOSExternalFunctions.lfunc_set(set, lfinfo)); - - public static string set_out_fn(IntPtr s, int maxdd, IntPtr value_out) - => SafeExecution(() => MEOSExternalFunctions.set_out_fn(s, maxdd, value_out)); - - public static bool ensure_set_isof_type(IntPtr s, int settype) - => SafeExecution(() => MEOSExternalFunctions.ensure_set_isof_type(s, settype)); - - public static bool ensure_valid_set_set(IntPtr s1, IntPtr s2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_set_set(s1, s2)); - - public static bool set_find_value(IntPtr s, long arg1, IntPtr loc) - => SafeExecution(() => MEOSExternalFunctions.set_find_value(s, arg1, loc)); - - public static IntPtr set_unnest_state_make(IntPtr set) - => SafeExecution(() => MEOSExternalFunctions.set_unnest_state_make(set)); - - public static void set_unnest_state_next(IntPtr state) - => SafeExecution(() => MEOSExternalFunctions.set_unnest_state_next(state)); - - public static bool ensure_same_skiplist_subtype(IntPtr state, IntPtr subtype) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_skiplist_subtype(state, subtype)); - - public static void skiplist_set_extra(IntPtr state, IntPtr data, IntPtr size) - => SafeExecution(() => MEOSExternalFunctions.skiplist_set_extra(state, data, size)); - - public static IntPtr skiplist_headval(IntPtr list) - => SafeExecution(() => MEOSExternalFunctions.skiplist_headval(list)); - - public static int common_entry_cmp(IntPtr i1, IntPtr i2) - => SafeExecution(() => MEOSExternalFunctions.common_entry_cmp(i1, i2)); - - public static bool span_index_leaf_consistent(IntPtr key, IntPtr query, int strategy) - => SafeExecution(() => MEOSExternalFunctions.span_index_leaf_consistent(key, query, strategy)); - - public static bool span_gist_inner_consistent(IntPtr key, IntPtr query, int strategy) - => SafeExecution(() => MEOSExternalFunctions.span_gist_inner_consistent(key, query, strategy)); - - public static bool span_index_recheck(int strategy) - => SafeExecution(() => MEOSExternalFunctions.span_index_recheck(strategy)); - - public static int span_lower_qsort_cmp(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.span_lower_qsort_cmp(a, b)); - - public static int span_upper_qsort_cmp(IntPtr a, IntPtr b) - => SafeExecution(() => MEOSExternalFunctions.span_upper_qsort_cmp(a, b)); - - public static IntPtr getQuadrant2D(IntPtr centroid, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.getQuadrant2D(centroid, query)); - - public static bool overlap2D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overlap2D(nodebox, query)); - - public static bool contain2D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.contain2D(nodebox, query)); - - public static bool left2D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.left2D(nodebox, query)); - - public static bool overLeft2D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overLeft2D(nodebox, query)); - - public static bool right2D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.right2D(nodebox, query)); - - public static bool overRight2D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overRight2D(nodebox, query)); - - public static bool adjacent2D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.adjacent2D(nodebox, query)); - - public static double distance_span_nodespan(IntPtr query, IntPtr nodebox) - => SafeExecution(() => MEOSExternalFunctions.distance_span_nodespan(query, nodebox)); - - public static bool span_spgist_get_span(long value, int type, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.span_spgist_get_span(value, type, result)); - - public static void spannode_init(IntPtr nodebox, int spantype, int basetype) - => SafeExecution(() => MEOSExternalFunctions.spannode_init(nodebox, spantype, basetype)); - - public static IntPtr spannode_copy(IntPtr orig) - => SafeExecution(() => MEOSExternalFunctions.spannode_copy(orig)); - - public static void spannode_quadtree_next(IntPtr nodebox, IntPtr centroid, IntPtr quadrant, IntPtr next_nodespan) - => SafeExecution(() => MEOSExternalFunctions.spannode_quadtree_next(nodebox, centroid, quadrant, next_nodespan)); - - public static void spannode_kdtree_next(IntPtr nodebox, IntPtr centroid, IntPtr node, int level, IntPtr next_nodespan) - => SafeExecution(() => MEOSExternalFunctions.spannode_kdtree_next(nodebox, centroid, node, level, next_nodespan)); - - public static bool ensure_spanset_isof_type(IntPtr ss, int spansettype) - => SafeExecution(() => MEOSExternalFunctions.ensure_spanset_isof_type(ss, spansettype)); - - public static bool ensure_same_spanset_type(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_spanset_type(ss1, ss2)); - - public static bool ensure_same_spanset_span_type(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_spanset_span_type(ss, s)); - - public static bool ensure_valid_spanset_span(IntPtr ss, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_spanset_span(ss, s)); - - public static bool ensure_valid_spanset_spanset(IntPtr ss1, IntPtr ss2) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_spanset_spanset(ss1, ss2)); - - public static bool spanset_find_value(IntPtr ss, long v, IntPtr loc) - => SafeExecution(() => MEOSExternalFunctions.spanset_find_value(ss, v, loc)); - - public static long datum_and(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_and(l, r)); - - public static long datum_or(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_or(l, r)); - - public static IntPtr boolop_tbool_bool(IntPtr temp, long b, IntPtr func, bool invert) - => SafeExecution(() => MEOSExternalFunctions.boolop_tbool_bool(temp, b, func, invert)); - - public static IntPtr boolop_tbool_tbool(IntPtr temp1, IntPtr temp2, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.boolop_tbool_tbool(temp1, temp2, func)); - - public static bool ensure_same_dimensionality_tbox(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.ensure_same_dimensionality_tbox(box1, box2)); - - public static IntPtr set_tbox(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.set_tbox(s)); - - public static IntPtr span_tbox(IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.span_tbox(s)); - - public static IntPtr tbox_tstzspan(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_tstzspan(box)); - - public static IntPtr tbox_intspan(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_intspan(box)); - - public static IntPtr tbox_floatspan(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_floatspan(box)); - - public static bool tbox_index_leaf_consistent(IntPtr key, IntPtr query, int strategy) - => SafeExecution(() => MEOSExternalFunctions.tbox_index_leaf_consistent(key, query, strategy)); - - public static bool tbox_gist_inner_consistent(IntPtr key, IntPtr query, int strategy) - => SafeExecution(() => MEOSExternalFunctions.tbox_gist_inner_consistent(key, query, strategy)); - - public static bool tbox_index_recheck(int strategy) - => SafeExecution(() => MEOSExternalFunctions.tbox_index_recheck(strategy)); - - public static void tboxnode_init(IntPtr centroid, IntPtr nodebox) - => SafeExecution(() => MEOSExternalFunctions.tboxnode_init(centroid, nodebox)); - - public static IntPtr tboxnode_copy(IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tboxnode_copy(box)); - - public static IntPtr getQuadrant4D(IntPtr centroid, IntPtr inBox) - => SafeExecution(() => MEOSExternalFunctions.getQuadrant4D(centroid, inBox)); - - public static void tboxnode_quadtree_next(IntPtr nodebox, IntPtr centroid, IntPtr quadrant, IntPtr next_nodebox) - => SafeExecution(() => MEOSExternalFunctions.tboxnode_quadtree_next(nodebox, centroid, quadrant, next_nodebox)); - - public static void tboxnode_kdtree_next(IntPtr nodebox, IntPtr centroid, IntPtr node, int level, IntPtr next_nodebox) - => SafeExecution(() => MEOSExternalFunctions.tboxnode_kdtree_next(nodebox, centroid, node, level, next_nodebox)); - - public static bool overlap4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overlap4D(nodebox, query)); - - public static bool contain4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.contain4D(nodebox, query)); - - public static bool left4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.left4D(nodebox, query)); - - public static bool overLeft4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overLeft4D(nodebox, query)); - - public static bool right4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.right4D(nodebox, query)); - - public static bool overRight4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overRight4D(nodebox, query)); - - public static bool before4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.before4D(nodebox, query)); - - public static bool overBefore4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overBefore4D(nodebox, query)); - - public static bool after4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.after4D(nodebox, query)); - - public static bool overAfter4D(IntPtr nodebox, IntPtr query) - => SafeExecution(() => MEOSExternalFunctions.overAfter4D(nodebox, query)); - - public static double distance_tbox_nodebox(IntPtr query, IntPtr nodebox) - => SafeExecution(() => MEOSExternalFunctions.distance_tbox_nodebox(query, nodebox)); - - public static void tnumber_spgist_get_tbox(long value, int type, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tnumber_spgist_get_tbox(value, type, result)); - - public static int tbox_xmin_cmp(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_xmin_cmp(box1, box2)); - - public static int tbox_xmax_cmp(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_xmax_cmp(box1, box2)); - - public static int tbox_tmin_cmp(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_tmin_cmp(box1, box2)); - - public static int tbox_tmax_cmp(IntPtr box1, IntPtr box2) - => SafeExecution(() => MEOSExternalFunctions.tbox_tmax_cmp(box1, box2)); - - public static int tbox_level_cmp(IntPtr centroid, IntPtr query, int level) - => SafeExecution(() => MEOSExternalFunctions.tbox_level_cmp(centroid, query, level)); - - public static bool tcellindex_type(int type) - => SafeExecution(() => MEOSExternalFunctions.tcellindex_type(type)); - - public static IntPtr dggs_cellops(int temptype) - => SafeExecution(() => MEOSExternalFunctions.dggs_cellops(temptype)); - - public static IntPtr tcellindex_get_resolution(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcellindex_get_resolution(temp)); - - public static IntPtr tcellindex_is_valid_cell(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcellindex_is_valid_cell(temp)); - - public static IntPtr tcellindex_cell_to_parent(IntPtr temp, int resolution) - => SafeExecution(() => MEOSExternalFunctions.tcellindex_cell_to_parent(temp, resolution)); - - public static IntPtr tcellindex_cell_to_point(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcellindex_cell_to_point(temp)); - - public static IntPtr tcellindex_cell_to_boundary(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcellindex_cell_to_boundary(temp)); - - public static IntPtr tcellindex_cell_area(IntPtr temp) - => SafeExecution(() => MEOSExternalFunctions.tcellindex_cell_area(temp)); - - public static long datum_min_int32(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_min_int32(l, r)); - - public static long datum_max_int32(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_max_int32(l, r)); - - public static long datum_min_int64(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_min_int64(l, r)); - - public static long datum_max_int64(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_max_int64(l, r)); - - public static long datum_min_float8(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_min_float8(l, r)); - - public static long datum_max_float8(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_max_float8(l, r)); - - public static long datum_sum_int32(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_sum_int32(l, r)); - - public static long datum_sum_int64(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_sum_int64(l, r)); - - public static long datum_sum_float8(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_sum_float8(l, r)); - - public static long datum_min_text(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_min_text(l, r)); - - public static long datum_max_text(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_max_text(l, r)); - - public static long datum_sum_double2(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_sum_double2(l, r)); - - public static long datum_sum_double3(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_sum_double3(l, r)); - - public static long datum_sum_double4(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_sum_double4(l, r)); - - public static int temporal_skiplist_common(IntPtr list, IntPtr values, int count, IntPtr lower, IntPtr upper, IntPtr update) - => SafeExecution(() => MEOSExternalFunctions.temporal_skiplist_common(list, values, count, lower, upper, update)); - - public static IntPtr temporal_skiplist_merge(IntPtr spliced, int spliced_count, IntPtr values, int count, IntPtr func, bool crossings, IntPtr newcount, IntPtr tofree, IntPtr nfree) - => SafeExecution(() => MEOSExternalFunctions.temporal_skiplist_merge(spliced, spliced_count, values, count, func, crossings, newcount, tofree, nfree)); - - public static IntPtr tinstant_tagg(IntPtr instants1, int count1, IntPtr instants2, int count2, IntPtr func, IntPtr newcount, IntPtr tofree, IntPtr nfree) - => SafeExecution(() => MEOSExternalFunctions.tinstant_tagg(instants1, count1, instants2, count2, func, newcount, tofree, nfree)); - - public static IntPtr tsequence_tagg(IntPtr sequences1, int count1, IntPtr sequences2, int count2, IntPtr func, bool crossings, IntPtr newcount) - => SafeExecution(() => MEOSExternalFunctions.tsequence_tagg(sequences1, count1, sequences2, count2, func, crossings, newcount)); - - public static IntPtr tcontseq_tagg_transfn(IntPtr state, IntPtr seq, IntPtr func, bool interpoint) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_tagg_transfn(state, seq, func, interpoint)); - - public static IntPtr temporal_tagg_combinefn(IntPtr state1, IntPtr state2, IntPtr func, bool crossings) - => SafeExecution(() => MEOSExternalFunctions.temporal_tagg_combinefn(state1, state2, func, crossings)); - - public static IntPtr tinstant_tagg_transfn(IntPtr state, IntPtr inst, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tinstant_tagg_transfn(state, inst, func)); - - public static IntPtr tinstant_tavg_finalfn(IntPtr instants, int count) - => SafeExecution(() => MEOSExternalFunctions.tinstant_tavg_finalfn(instants, count)); - - public static IntPtr tsequence_tavg_finalfn(IntPtr sequences, int count) - => SafeExecution(() => MEOSExternalFunctions.tsequence_tavg_finalfn(sequences, count)); - - public static IntPtr tnumberinst_transform_tavg(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_transform_tavg(inst)); - - public static IntPtr[] temporal_transform_tcount(IntPtr temp) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_transform_tcount(temp, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] temporal_transform_tagg(IntPtr temp, IntPtr func) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_transform_tagg(temp, _cnt, func)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr tsequenceset_tagg_transfn(IntPtr state, IntPtr ss, IntPtr func, bool crossings) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_tagg_transfn(state, ss, func, crossings)); - - public static IntPtr tdiscseq_tagg_transfn(IntPtr state, IntPtr seq, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_tagg_transfn(state, seq, func)); - - public static IntPtr temporal_tagg_transfn(IntPtr state, IntPtr temp, IntPtr arg2, bool crossings) - => SafeExecution(() => MEOSExternalFunctions.temporal_tagg_transfn(state, temp, arg2, crossings)); - - public static IntPtr temporal_tagg_transform_transfn(IntPtr state, IntPtr temp, IntPtr func, bool crossings, IntPtr transform) - => SafeExecution(() => MEOSExternalFunctions.temporal_tagg_transform_transfn(state, temp, func, crossings, transform)); - - public static double temporal_similarity(IntPtr temp1, IntPtr temp2, IntPtr simfunc) - => SafeExecution(() => MEOSExternalFunctions.temporal_similarity(temp1, temp2, simfunc)); - - public static IntPtr[] temporal_similarity_path(IntPtr temp1, IntPtr temp2, IntPtr simfunc) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_similarity_path(temp1, temp2, _cnt, simfunc)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static ulong temporal_bbox_size(int tempype) - => SafeExecution(() => MEOSExternalFunctions.temporal_bbox_size(tempype)); - - public static void tinstarr_set_bbox(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tinstarr_set_bbox(instants, count, lower_inc, upper_inc, interp, box)); - - public static void tsequence_compute_bbox(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tsequence_compute_bbox(seq)); - - public static void tseqarr_compute_bbox(IntPtr sequences, int count, IntPtr bbox) - => SafeExecution(() => MEOSExternalFunctions.tseqarr_compute_bbox(sequences, count, bbox)); - - public static void tsequenceset_compute_bbox(IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_compute_bbox(ss)); - - public static bool boxop_temporal_tstzspan(IntPtr temp, IntPtr s, IntPtr func, bool invert) - => SafeExecution(() => MEOSExternalFunctions.boxop_temporal_tstzspan(temp, s, func, invert)); - - public static bool boxop_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.boxop_temporal_temporal(temp1, temp2, func)); - - public static bool boxop_tnumber_numspan(IntPtr temp, IntPtr span, IntPtr func, bool invert) - => SafeExecution(() => MEOSExternalFunctions.boxop_tnumber_numspan(temp, span, func, invert)); - - public static bool boxop_tnumber_tbox(IntPtr temp, IntPtr box, IntPtr func, bool invert) - => SafeExecution(() => MEOSExternalFunctions.boxop_tnumber_tbox(temp, box, func, invert)); - - public static bool boxop_tnumber_tnumber(IntPtr temp1, IntPtr temp2, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.boxop_tnumber_tnumber(temp1, temp2, func)); - - public static int eacomp_base_temporal(long value, IntPtr temp, IntPtr func, bool ever) - => SafeExecution(() => MEOSExternalFunctions.eacomp_base_temporal(value, temp, func, ever)); - - public static int eacomp_temporal_base(IntPtr temp, long value, IntPtr func, bool ever) - => SafeExecution(() => MEOSExternalFunctions.eacomp_temporal_base(temp, value, func, ever)); - - public static int eacomp_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr func, bool ever) - => SafeExecution(() => MEOSExternalFunctions.eacomp_temporal_temporal(temp1, temp2, func, ever)); - - public static IntPtr tcomp_base_temporal(long value, IntPtr temp, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tcomp_base_temporal(value, temp, func)); - - public static IntPtr tcomp_temporal_base(IntPtr temp, long value, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tcomp_temporal_base(temp, value, func)); - - public static IntPtr tcomp_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.tcomp_temporal_temporal(temp1, temp2, func)); - - public static IntPtr tdiscseq_at_timestamptz(IntPtr seq, long t) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_at_timestamptz(seq, t)); - - public static IntPtr tdiscseq_restrict_value(IntPtr seq, long value, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_restrict_value(seq, value, atfunc)); - - public static IntPtr tdiscseq_restrict_values(IntPtr seq, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_restrict_values(seq, s, atfunc)); - - public static IntPtr tdiscseq_minus_timestamptz(IntPtr seq, long t) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_minus_timestamptz(seq, t)); - - public static IntPtr tdiscseq_restrict_tstzset(IntPtr seq, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_restrict_tstzset(seq, s, atfunc)); - - public static IntPtr tdiscseq_restrict_tstzspanset(IntPtr seq, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_restrict_tstzspanset(seq, ss, atfunc)); - - public static int tcontseq_restrict_value_iter(IntPtr seq, long value, bool atfunc, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_restrict_value_iter(seq, value, atfunc, result)); - - public static IntPtr tcontseq_delete_timestamptz(IntPtr seq, long t) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_delete_timestamptz(seq, t)); - - public static IntPtr tcontseq_delete_tstzset(IntPtr seq, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_delete_tstzset(seq, s)); - - public static IntPtr tcontseq_delete_tstzspanset(IntPtr seq, IntPtr ss) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_delete_tstzspanset(seq, ss)); - - public static IntPtr tcontseq_at_tstzset(IntPtr seq, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_at_tstzset(seq, s)); - - public static IntPtr tcontseq_minus_timestamptz(IntPtr seq, long t) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_minus_timestamptz(seq, t)); - - public static IntPtr tcontseq_minus_tstzset(IntPtr seq, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_minus_tstzset(seq, s)); - - public static IntPtr tcontseq_minus_tstzspan(IntPtr seq, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_minus_tstzspan(seq, s)); - - public static IntPtr tcontseq_restrict_value(IntPtr seq, long value, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_restrict_value(seq, value, atfunc)); - - public static IntPtr tcontseq_restrict_values(IntPtr seq, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_restrict_values(seq, s, atfunc)); - - public static int tsequence_at_values_iter(IntPtr seq, IntPtr set, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tsequence_at_values_iter(seq, set, result)); - - public static int tnumberseq_cont_restrict_span_iter(IntPtr seq, IntPtr span, bool atfunc, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_cont_restrict_span_iter(seq, span, atfunc, result)); - - public static int tnumberseq_cont_restrict_spanset_iter(IntPtr seq, IntPtr ss, bool atfunc, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_cont_restrict_spanset_iter(seq, ss, atfunc, result)); - - public static IntPtr tsegment_at_timestamptz(IntPtr inst1, IntPtr inst2, int interp, long t) - => SafeExecution(() => MEOSExternalFunctions.tsegment_at_timestamptz(inst1, inst2, interp, t)); - - public static int tcontseq_minus_timestamp_iter(IntPtr seq, long t, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_minus_timestamp_iter(seq, t, result)); - - public static int tcontseq_minus_tstzset_iter(IntPtr seq, IntPtr s, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_minus_tstzset_iter(seq, s, result)); - - public static int tcontseq_at_tstzspanset1(IntPtr seq, IntPtr ss, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_at_tstzspanset1(seq, ss, result)); - - public static int tcontseq_minus_tstzspanset_iter(IntPtr seq, IntPtr ss, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_minus_tstzspanset_iter(seq, ss, result)); - - public static IntPtr tcontseq_at_tstzspan(IntPtr seq, IntPtr s) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_at_tstzspan(seq, s)); - - public static IntPtr tcontseq_at_timestamptz(IntPtr seq, long t) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_at_timestamptz(seq, t)); - - public static IntPtr tcontseq_restrict_tstzspanset(IntPtr seq, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_restrict_tstzspanset(seq, ss, atfunc)); - - public static bool tdiscseq_value_at_timestamptz(IntPtr seq, long t, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_value_at_timestamptz(seq, t, result)); - - public static IntPtr tnumberseq_disc_restrict_span(IntPtr seq, IntPtr span, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_disc_restrict_span(seq, span, atfunc)); - - public static IntPtr tnumberseq_disc_restrict_spanset(IntPtr seq, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_disc_restrict_spanset(seq, ss, atfunc)); - - public static IntPtr tnumberseq_cont_restrict_span(IntPtr seq, IntPtr span, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_cont_restrict_span(seq, span, atfunc)); - - public static IntPtr tnumberseq_cont_restrict_spanset(IntPtr seq, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_cont_restrict_spanset(seq, ss, atfunc)); - - public static double tnumberseq_cont_twavg(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_cont_twavg(seq)); - - public static int span_num_bins(IntPtr s, long size, long origin, IntPtr start_bin, IntPtr end_bin) - => SafeExecution(() => MEOSExternalFunctions.span_num_bins(s, size, origin, start_bin, end_bin)); - - public static IntPtr temporal_time_bin_init(IntPtr temp, IntPtr duration, long torigin, IntPtr nbins) - => SafeExecution(() => MEOSExternalFunctions.temporal_time_bin_init(temp, duration, torigin, nbins)); - - public static IntPtr tbox_tile_state_make(IntPtr temp, IntPtr box, long vsize, IntPtr duration, long xorigin, long torigin) - => SafeExecution(() => MEOSExternalFunctions.tbox_tile_state_make(temp, box, vsize, duration, xorigin, torigin)); - - public static void tbox_tile_state_next(IntPtr state) - => SafeExecution(() => MEOSExternalFunctions.tbox_tile_state_next(state)); - - public static void tbox_tile_state_set(long value, long t, long vsize, long tunits, int basetype, int spantype, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_tile_state_set(value, t, vsize, tunits, basetype, spantype, box)); - - public static long interval_units(IntPtr interval) - => SafeExecution(() => MEOSExternalFunctions.interval_units(interval)); - - public static long timestamptz_bin_start(long timestamp, long tunits, long torigin) - => SafeExecution(() => MEOSExternalFunctions.timestamptz_bin_start(timestamp, tunits, torigin)); - - public static long datum_bin(long value, long size, long offset, int basetype) - => SafeExecution(() => MEOSExternalFunctions.datum_bin(value, size, offset, basetype)); - - public static IntPtr tnumber_value_time_tile_init(IntPtr temp, long vsize, IntPtr duration, long vorigin, long torigin, IntPtr ntiles) - => SafeExecution(() => MEOSExternalFunctions.tnumber_value_time_tile_init(temp, vsize, duration, vorigin, torigin, ntiles)); - - public static bool tbox_tile_state_get(IntPtr state, IntPtr box) - => SafeExecution(() => MEOSExternalFunctions.tbox_tile_state_get(state, box)); - - public static IntPtr[] temporal_transform_wcount(IntPtr temp, IntPtr interval) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.temporal_transform_wcount(temp, interval, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr[] tnumber_transform_wavg(IntPtr temp, IntPtr interval) - { - IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int)); - try - { - IntPtr _p = SafeExecution(() => MEOSExternalFunctions.tnumber_transform_wavg(temp, interval, _cnt)); - int _n = Marshal.ReadInt32(_cnt); - IntPtr[] _out = new IntPtr[_n]; - for (int _i = 0; _i < _n; _i++) - { _out[_i] = Marshal.ReadIntPtr(_p, _i * IntPtr.Size); } - return _out; - } - finally { Marshal.FreeHGlobal(_cnt); } - } - - public static IntPtr temporal_wagg_transfn(IntPtr state, IntPtr temp, IntPtr interval, IntPtr func, bool min, bool crossings) - => SafeExecution(() => MEOSExternalFunctions.temporal_wagg_transfn(state, temp, interval, func, min, crossings)); - - public static IntPtr temporal_wagg_transform_transfn(IntPtr state, IntPtr temp, IntPtr interval, IntPtr func, IntPtr transform) - => SafeExecution(() => MEOSExternalFunctions.temporal_wagg_transform_transfn(state, temp, interval, func, transform)); - - public static void tinstant_set(IntPtr inst, long value, long t) - => SafeExecution(() => MEOSExternalFunctions.tinstant_set(inst, value, t)); - - public static double tnumberinst_double(IntPtr inst) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_double(inst)); - - public static string tinstant_to_string(IntPtr inst, int maxdd, IntPtr value_out) - => SafeExecution(() => MEOSExternalFunctions.tinstant_to_string(inst, maxdd, value_out)); - - public static bool tinstant_restrict_values_test(IntPtr inst, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_values_test(inst, s, atfunc)); - - public static bool tnumberinst_restrict_span_test(IntPtr inst, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_restrict_span_test(inst, s, atfunc)); - - public static bool tnumberinst_restrict_spanset_test(IntPtr inst, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tnumberinst_restrict_spanset_test(inst, ss, atfunc)); - - public static bool tinstant_restrict_tstzset_test(IntPtr inst, IntPtr s, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_tstzset_test(inst, s, atfunc)); - - public static bool tinstant_restrict_tstzspanset_test(IntPtr inst, IntPtr ss, bool atfunc) - => SafeExecution(() => MEOSExternalFunctions.tinstant_restrict_tstzspanset_test(inst, ss, atfunc)); - - public static bool intersection_tinstant_tinstant(IntPtr inst1, IntPtr inst2, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tinstant_tinstant(inst1, inst2, inter1, inter2)); - - public static void _mulmat(IntPtr a, IntPtr b, IntPtr c, int arows, int acols, int bcols) - => SafeExecution(() => MEOSExternalFunctions._mulmat(a, b, c, arows, acols, bcols)); - - public static void _mulvec(IntPtr a, IntPtr x, IntPtr y, int m, int n) - => SafeExecution(() => MEOSExternalFunctions._mulvec(a, x, y, m, n)); - - public static void _transpose(IntPtr a, IntPtr at, int m, int n) - => SafeExecution(() => MEOSExternalFunctions._transpose(a, at, m, n)); - - public static void _addmat(IntPtr a, IntPtr b, IntPtr c, int m, int n) - => SafeExecution(() => MEOSExternalFunctions._addmat(a, b, c, m, n)); - - public static void _negate(IntPtr a, int m, int n) - => SafeExecution(() => MEOSExternalFunctions._negate(a, m, n)); - - public static void _addeye(IntPtr a, int n) - => SafeExecution(() => MEOSExternalFunctions._addeye(a, n)); - - public static int _choldc1(IntPtr a, IntPtr p, int n) - => SafeExecution(() => MEOSExternalFunctions._choldc1(a, p, n)); - - public static int _choldcsl(IntPtr A, IntPtr a, IntPtr p, int n) - => SafeExecution(() => MEOSExternalFunctions._choldcsl(A, a, p, n)); - - public static int _cholsl(IntPtr A, IntPtr a, IntPtr p, int n) - => SafeExecution(() => MEOSExternalFunctions._cholsl(A, a, p, n)); - - public static void _addvec(IntPtr a, IntPtr b, IntPtr c, int n) - => SafeExecution(() => MEOSExternalFunctions._addvec(a, b, c, n)); - - public static void _sub(IntPtr a, IntPtr b, IntPtr c, int n) - => SafeExecution(() => MEOSExternalFunctions._sub(a, b, c, n)); - - public static int invert(IntPtr a, IntPtr ainv) - => SafeExecution(() => MEOSExternalFunctions.invert(a, ainv)); - - public static void ekf_initialize(IntPtr ekf, float pdiag) - => SafeExecution(() => MEOSExternalFunctions.ekf_initialize(ekf, pdiag)); - - public static void ekf_predict(IntPtr ekf, float fx, float F, float Q) - => SafeExecution(() => MEOSExternalFunctions.ekf_predict(ekf, fx, F, Q)); - - public static void ekf_update_step3(IntPtr ekf, float GH) - => SafeExecution(() => MEOSExternalFunctions.ekf_update_step3(ekf, GH)); - - public static int ekf_update(IntPtr ekf, float z, float hx, float H, float R) - => SafeExecution(() => MEOSExternalFunctions.ekf_update(ekf, z, hx, H, R)); - - public static int tfloat_arithop_turnpt(long start1, long end1, long start2, long end2, long param, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tfloat_arithop_turnpt(start1, end1, start2, end2, param, lower, upper, t1, t2)); - - public static IntPtr arithop_tnumber_number(IntPtr temp, long value, IntPtr oper, IntPtr func, bool invert) - => SafeExecution(() => MEOSExternalFunctions.arithop_tnumber_number(temp, value, oper, func, invert)); - - public static IntPtr arithop_tnumber_tnumber(IntPtr temp1, IntPtr temp2, IntPtr oper, IntPtr func, IntPtr tpfunc) - => SafeExecution(() => MEOSExternalFunctions.arithop_tnumber_tnumber(temp1, temp2, oper, func, tpfunc)); - - public static bool float_collinear(double x1, double x2, double x3, double ratio) - => SafeExecution(() => MEOSExternalFunctions.float_collinear(x1, x2, x3, ratio)); - - public static double floatsegm_interpolate(double value1, double value2, IntPtr value) - => SafeExecution(() => MEOSExternalFunctions.floatsegm_interpolate(value1, value2, value)); - - public static IntPtr floatsegm_locate(double value1, double value2, double value) - => SafeExecution(() => MEOSExternalFunctions.floatsegm_locate(value1, value2, value)); - - public static int tnumbersegm_intersection(long start1, long end1, long start2, long end2, int basetype, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tnumbersegm_intersection(start1, end1, start2, end2, basetype, lower, upper, t1, t2)); - - public static bool tsequence_norm_test(long value1, long value2, long value3, int basetype, int interp, long t1, long t2, long t3) - => SafeExecution(() => MEOSExternalFunctions.tsequence_norm_test(value1, value2, value3, basetype, interp, t1, t2, t3)); - - public static bool tsequence_join_test(IntPtr seq1, IntPtr seq2, IntPtr removelast, IntPtr removefirst) - => SafeExecution(() => MEOSExternalFunctions.tsequence_join_test(seq1, seq2, removelast, removefirst)); - - public static IntPtr tsequence_join(IntPtr seq1, IntPtr seq2, bool removelast, bool removefirst) - => SafeExecution(() => MEOSExternalFunctions.tsequence_join(seq1, seq2, removelast, removefirst)); - - public static IntPtr tinstarr_normalize(IntPtr instants, int interp, int count, IntPtr newcount) - => SafeExecution(() => MEOSExternalFunctions.tinstarr_normalize(instants, interp, count, newcount)); - - public static int tcontseq_find_timestamptz(IntPtr seq, long t) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_find_timestamptz(seq, t)); - - public static int tdiscseq_find_timestamptz(IntPtr seq, long t) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_find_timestamptz(seq, t)); - - public static IntPtr tseqarr2_to_tseqarr(IntPtr sequences, IntPtr countseqs, int count, int totalseqs) - => SafeExecution(() => MEOSExternalFunctions.tseqarr2_to_tseqarr(sequences, countseqs, count, totalseqs)); - - public static bool ensure_valid_tinstarr_common(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tinstarr_common(instants, count, lower_inc, upper_inc, interp)); - - public static IntPtr tsequence_make_exp1(IntPtr instants, int count, int maxcount, bool lower_inc, bool upper_inc, int interp, bool normalize, IntPtr bbox) - => SafeExecution(() => MEOSExternalFunctions.tsequence_make_exp1(instants, count, maxcount, lower_inc, upper_inc, interp, normalize, bbox)); - - public static bool synchronize_tsequence_tsequence(IntPtr seq1, IntPtr seq2, IntPtr sync1, IntPtr sync2, bool interpoint) - => SafeExecution(() => MEOSExternalFunctions.synchronize_tsequence_tsequence(seq1, seq2, sync1, sync2, interpoint)); - - public static int tfloatsegm_intersection_value(long start, long end, long value, long lower, long upper, IntPtr t) - => SafeExecution(() => MEOSExternalFunctions.tfloatsegm_intersection_value(start, end, value, lower, upper, t)); - - public static int tsegment_intersection_value(long start, long end, long value, int temptype, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tsegment_intersection_value(start, end, value, temptype, lower, upper, t1, t2)); - - public static int tsegment_intersection(long start1, long end1, long start2, long end2, int temptype, long lower, long upper, IntPtr t1, IntPtr t2) - => SafeExecution(() => MEOSExternalFunctions.tsegment_intersection(start1, end1, start2, end2, temptype, lower, upper, t1, t2)); - - public static long tsegment_value_at_timestamptz(long start, long end, int temptype, long lower, long upper, long t) - => SafeExecution(() => MEOSExternalFunctions.tsegment_value_at_timestamptz(start, end, temptype, lower, upper, t)); - - public static bool intersection_tdiscseq_tdiscseq(IntPtr seq1, IntPtr seq2, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tdiscseq_tdiscseq(seq1, seq2, inter1, inter2)); - - public static bool intersection_tcontseq_tdiscseq(IntPtr seq1, IntPtr seq2, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tcontseq_tdiscseq(seq1, seq2, inter1, inter2)); - - public static bool intersection_tdiscseq_tcontseq(IntPtr @is, IntPtr seq2, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tdiscseq_tcontseq(@is, seq2, inter1, inter2)); - - public static bool intersection_tsequence_tinstant(IntPtr seq, IntPtr inst, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tsequence_tinstant(seq, inst, inter1, inter2)); - - public static bool intersection_tinstant_tsequence(IntPtr inst, IntPtr seq, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tinstant_tsequence(inst, seq, inter1, inter2)); - - public static string tsequence_to_string(IntPtr seq, int maxdd, bool component, IntPtr value_out) - => SafeExecution(() => MEOSExternalFunctions.tsequence_to_string(seq, maxdd, component, value_out)); - - public static bool ensure_increasing_timestamps(IntPtr inst1, IntPtr inst2, bool strict) - => SafeExecution(() => MEOSExternalFunctions.ensure_increasing_timestamps(inst1, inst2, strict)); - - public static void bbox_expand(IntPtr box1, IntPtr box2, int temptype) - => SafeExecution(() => MEOSExternalFunctions.bbox_expand(box1, box2, temptype)); - - public static bool ensure_valid_tinstarr(IntPtr instants, int count, bool merge, int interp) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tinstarr(instants, count, merge, interp)); - - public static bool tsequence_make_valid(IntPtr instants, int count, bool lower_inc, bool upper_inc, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequence_make_valid(instants, count, lower_inc, upper_inc, interp)); - - public static void tnumberseq_shift_scale_value_iter(IntPtr seq, long origin, long delta, bool hasdelta, double scale) - => SafeExecution(() => MEOSExternalFunctions.tnumberseq_shift_scale_value_iter(seq, origin, delta, hasdelta, scale)); - - public static void tsequence_shift_scale_time_iter(IntPtr seq, long delta, double scale) - => SafeExecution(() => MEOSExternalFunctions.tsequence_shift_scale_time_iter(seq, delta, scale)); - - public static int tstepseq_to_linear_iter(IntPtr seq, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tstepseq_to_linear_iter(seq, result)); - - public static IntPtr tstepseq_to_linear(IntPtr seq) - => SafeExecution(() => MEOSExternalFunctions.tstepseq_to_linear(seq)); - - public static int tsequence_segments_iter(IntPtr seq, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.tsequence_segments_iter(seq, result)); - - public static int tsequence_timestamps_iter(IntPtr seq, IntPtr times) - => SafeExecution(() => MEOSExternalFunctions.tsequence_timestamps_iter(seq, times)); - - public static bool tsequenceset_find_timestamptz(IntPtr ss, long t, IntPtr loc) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_find_timestamptz(ss, t, loc)); - - public static IntPtr tseqarr_normalize(IntPtr sequences, int count, IntPtr newcount) - => SafeExecution(() => MEOSExternalFunctions.tseqarr_normalize(sequences, count, newcount)); - - public static double datum_distance(long value1, long value2, int basetype, short flags) - => SafeExecution(() => MEOSExternalFunctions.datum_distance(value1, value2, basetype, flags)); - - public static IntPtr ensure_valid_tinstarr_gaps(IntPtr instants, int count, bool merge, double maxdist, IntPtr maxt, IntPtr nsplits) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tinstarr_gaps(instants, count, merge, maxdist, maxt, nsplits)); - - public static bool ensure_valid_tseqarr(IntPtr sequences, int count) - => SafeExecution(() => MEOSExternalFunctions.ensure_valid_tseqarr(sequences, count)); - - public static bool synchronize_tsequenceset_tsequence(IntPtr ss, IntPtr seq, IntPtr mode, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.synchronize_tsequenceset_tsequence(ss, seq, mode, inter1, inter2)); - - public static bool synchronize_tsequenceset_tsequenceset(IntPtr ss1, IntPtr ss2, IntPtr mode, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.synchronize_tsequenceset_tsequenceset(ss1, ss2, mode, inter1, inter2)); - - public static bool intersection_tsequenceset_tinstant(IntPtr ss, IntPtr inst, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tsequenceset_tinstant(ss, inst, inter1, inter2)); - - public static bool intersection_tinstant_tsequenceset(IntPtr inst, IntPtr ss, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tinstant_tsequenceset(inst, ss, inter1, inter2)); - - public static bool intersection_tsequenceset_tdiscseq(IntPtr ss, IntPtr @is, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tsequenceset_tdiscseq(ss, @is, inter1, inter2)); - - public static bool intersection_tdiscseq_tsequenceset(IntPtr @is, IntPtr ss, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tdiscseq_tsequenceset(@is, ss, inter1, inter2)); - - public static bool intersection_tsequence_tsequenceset(IntPtr seq, IntPtr ss, IntPtr mode, IntPtr inter1, IntPtr inter2) - => SafeExecution(() => MEOSExternalFunctions.intersection_tsequence_tsequenceset(seq, ss, mode, inter1, inter2)); - - public static string tsequenceset_to_string(IntPtr ss, int maxdd, IntPtr value_out) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_to_string(ss, maxdd, value_out)); - - public static long datum_textcat(long l, long r) - => SafeExecution(() => MEOSExternalFunctions.datum_textcat(l, r)); - - public static long datum_lower(long value) - => SafeExecution(() => MEOSExternalFunctions.datum_lower(value)); - - public static long datum_upper(long value) - => SafeExecution(() => MEOSExternalFunctions.datum_upper(value)); - - public static long datum_initcap(long value) - => SafeExecution(() => MEOSExternalFunctions.datum_initcap(value)); - - public static IntPtr textfunc_ttext(IntPtr temp, int func) - => SafeExecution(() => MEOSExternalFunctions.textfunc_ttext(temp, func)); - - public static IntPtr textfunc_ttext_text(IntPtr temp, long value, IntPtr func, bool invert) - => SafeExecution(() => MEOSExternalFunctions.textfunc_ttext_text(temp, value, func, invert)); - - public static IntPtr textfunc_ttext_ttext(IntPtr temp1, IntPtr temp2, IntPtr func) - => SafeExecution(() => MEOSExternalFunctions.textfunc_ttext_ttext(temp1, temp2, func)); - - public static IntPtr datum_as_wkb(long value, int type, IntPtr variant, IntPtr size_out) - => SafeExecution(() => MEOSExternalFunctions.datum_as_wkb(value, type, variant, size_out)); - - public static string datum_as_hexwkb(long value, int type, IntPtr variant, IntPtr size) - => SafeExecution(() => MEOSExternalFunctions.datum_as_hexwkb(value, type, variant, size)); - - public static long type_from_wkb(IntPtr wkb, IntPtr size, int type) - => SafeExecution(() => MEOSExternalFunctions.type_from_wkb(wkb, size, type)); - - public static long type_from_hexwkb(string hexwkb, IntPtr size, int type) - => SafeExecution(() => MEOSExternalFunctions.type_from_hexwkb(hexwkb, size, type)); - - public static bool ensure_end_input(IntPtr str, string type) - => SafeExecution(() => MEOSExternalFunctions.ensure_end_input(str, type)); - - public static void p_whitespace(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.p_whitespace(str)); - - public static bool p_delimchar(IntPtr str, byte delim) - => SafeExecution(() => MEOSExternalFunctions.p_delimchar(str, delim)); - - public static bool p_obrace(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.p_obrace(str)); - - public static bool ensure_obrace(IntPtr str, string type) - => SafeExecution(() => MEOSExternalFunctions.ensure_obrace(str, type)); - - public static bool p_cbrace(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.p_cbrace(str)); - - public static bool ensure_cbrace(IntPtr str, string type) - => SafeExecution(() => MEOSExternalFunctions.ensure_cbrace(str, type)); - - public static bool p_obracket(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.p_obracket(str)); - - public static bool p_cbracket(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.p_cbracket(str)); - - public static bool p_oparen(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.p_oparen(str)); - - public static bool ensure_oparen(IntPtr str, string type) - => SafeExecution(() => MEOSExternalFunctions.ensure_oparen(str, type)); - - public static bool p_cparen(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.p_cparen(str)); - - public static bool ensure_cparen(IntPtr str, string type) - => SafeExecution(() => MEOSExternalFunctions.ensure_cparen(str, type)); - - public static bool p_comma(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.p_comma(str)); - - public static bool basetype_parse(IntPtr str, int basetypid, byte delim, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.basetype_parse(str, basetypid, delim, result)); - - public static bool double_parse(IntPtr str, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.double_parse(str, result)); - - public static bool elem_parse(IntPtr str, int basetype, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.elem_parse(str, basetype, result)); - - public static IntPtr set_parse(IntPtr str, int basetype) - => SafeExecution(() => MEOSExternalFunctions.set_parse(str, basetype)); - - public static bool span_parse(IntPtr str, int spantype, bool end, IntPtr span) - => SafeExecution(() => MEOSExternalFunctions.span_parse(str, spantype, end, span)); - - public static IntPtr spanset_parse(IntPtr str, int spantype) - => SafeExecution(() => MEOSExternalFunctions.spanset_parse(str, spantype)); - - public static IntPtr tbox_parse(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.tbox_parse(str)); - - public static long timestamp_parse(IntPtr str) - => SafeExecution(() => MEOSExternalFunctions.timestamp_parse(str)); - - public static IntPtr tinstant_parse(IntPtr str, int temptype, bool end) - => SafeExecution(() => MEOSExternalFunctions.tinstant_parse(str, temptype, end)); - - public static IntPtr tdiscseq_parse(IntPtr str, int temptype) - => SafeExecution(() => MEOSExternalFunctions.tdiscseq_parse(str, temptype)); - - public static IntPtr tcontseq_parse(IntPtr str, int temptype, int interp, bool end) - => SafeExecution(() => MEOSExternalFunctions.tcontseq_parse(str, temptype, interp, end)); - - public static IntPtr tsequenceset_parse(IntPtr str, int temptype, int interp) - => SafeExecution(() => MEOSExternalFunctions.tsequenceset_parse(str, temptype, interp)); - - public static IntPtr temporal_parse(IntPtr str, int temptype) - => SafeExecution(() => MEOSExternalFunctions.temporal_parse(str, temptype)); - - public static long datum_copy(long value, int typid) - => SafeExecution(() => MEOSExternalFunctions.datum_copy(value, typid)); - - public static double datum_double(long d, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_double(d, type)); - - public static long double_datum(double d, int type) - => SafeExecution(() => MEOSExternalFunctions.double_datum(d, type)); - - public static IntPtr bstring2bytea(IntPtr wkb, IntPtr size) - => SafeExecution(() => MEOSExternalFunctions.bstring2bytea(wkb, size)); - - public static bool basetype_in(string str, int type, bool end, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.basetype_in(str, type, end, result)); - - public static string basetype_out(long value, int type, int maxdd) - => SafeExecution(() => MEOSExternalFunctions.basetype_out(value, type, maxdd)); - - public static void pfree_array(IntPtr array, int count) - => SafeExecution(() => MEOSExternalFunctions.pfree_array(array, count)); - - public static bool string_escape(string str, int quotes, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.string_escape(str, quotes, result)); - - public static ulong string_unescape(string str, IntPtr result) - => SafeExecution(() => MEOSExternalFunctions.string_unescape(str, result)); - - public static string stringarr_to_string(IntPtr strings, int count, string prefix, byte open, byte close, int quotes, bool spaces) - => SafeExecution(() => MEOSExternalFunctions.stringarr_to_string(strings, count, prefix, open, close, quotes, spaces)); - - public static void datumarr_sort(IntPtr values, int count, int basetype) - => SafeExecution(() => MEOSExternalFunctions.datumarr_sort(values, count, basetype)); - - public static void tstzarr_sort(IntPtr times, int count) - => SafeExecution(() => MEOSExternalFunctions.tstzarr_sort(times, count)); - - public static void spanarr_sort(IntPtr spans, int count) - => SafeExecution(() => MEOSExternalFunctions.spanarr_sort(spans, count)); - - public static void tinstarr_sort(IntPtr instants, int count) - => SafeExecution(() => MEOSExternalFunctions.tinstarr_sort(instants, count)); - - public static void tseqarr_sort(IntPtr sequences, int count) - => SafeExecution(() => MEOSExternalFunctions.tseqarr_sort(sequences, count)); - - public static int datumarr_remove_duplicates(IntPtr values, int count, int basetype) - => SafeExecution(() => MEOSExternalFunctions.datumarr_remove_duplicates(values, count, basetype)); - - public static int tstzarr_remove_duplicates(IntPtr values, int count) - => SafeExecution(() => MEOSExternalFunctions.tstzarr_remove_duplicates(values, count)); - - public static int tinstarr_remove_duplicates(IntPtr instants, int count) - => SafeExecution(() => MEOSExternalFunctions.tinstarr_remove_duplicates(instants, count)); - - public static long datum_add(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_add(l, r, type)); - - public static long datum_sub(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_sub(l, r, type)); - - public static long datum_mul(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_mul(l, r, type)); - - public static long datum_div(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_div(l, r, type)); - - public static int datum_cmp(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_cmp(l, r, type)); - - public static bool datum_eq(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_eq(l, r, type)); - - public static bool datum_ne(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_ne(l, r, type)); - - public static bool datum_lt(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_lt(l, r, type)); - - public static bool datum_le(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_le(l, r, type)); - - public static bool datum_gt(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_gt(l, r, type)); - - public static bool datum_ge(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum_ge(l, r, type)); - - public static long datum2_eq(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_eq(l, r, type)); - - public static long datum2_ne(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_ne(l, r, type)); - - public static long datum2_lt(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_lt(l, r, type)); - - public static long datum2_le(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_le(l, r, type)); - - public static long datum2_gt(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_gt(l, r, type)); - - public static long datum2_ge(long l, long r, int type) - => SafeExecution(() => MEOSExternalFunctions.datum2_ge(l, r, type)); - - public static double hypot3d(double x, double y, double z) - => SafeExecution(() => MEOSExternalFunctions.hypot3d(x, y, z)); - - } -} diff --git a/MEOS.NET/Internal/MEOSExternalFunctions.cs b/MEOS.NET/Internal/MEOSExternalFunctions.cs deleted file mode 100644 index 8cda874..0000000 --- a/MEOS.NET/Internal/MEOSExternalFunctions.cs +++ /dev/null @@ -1,14653 +0,0 @@ -using System.CodeDom.Compiler; -using System.Runtime.InteropServices; - -using MEOS.NET.Enums; - -namespace MEOS.NET.Internal -{ - internal partial class MEOSExposedFunctions - { - [GeneratedCode("MEOS.NET.Builder.MEOSIDL", "0.1.0")] - private partial class MEOSExternalFunctions - { - private const string DllPath = "meos"; - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_error(int errlevel, int errcode, string format); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int meos_errno(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int meos_errno_set(int err); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int meos_errno_restore(int err); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int meos_errno_reset(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_array_create(int elem_size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_array_add(IntPtr array, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_array_get(IntPtr array, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int meos_array_count(IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_array_reset(IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_array_reset_free(IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_array_destroy(IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_array_destroy_free(IntPtr array); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr rtree_create_intspan(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr rtree_create_bigintspan(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr rtree_create_floatspan(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr rtree_create_datespan(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr rtree_create_tstzspan(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr rtree_create_tbox(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr rtree_create_stbox(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void rtree_free(IntPtr rtree); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void rtree_insert(IntPtr rtree, IntPtr box, int id); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void rtree_insert_temporal(IntPtr rtree, IntPtr temp, int id); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void rtree_insert_temporal_split(IntPtr rtree, IntPtr temp, int id, int maxboxes); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int rtree_search(IntPtr rtree, IntPtr op, IntPtr query, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int rtree_search_temporal(IntPtr rtree, IntPtr op, IntPtr temp, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int rtree_search_temporal_dedup(IntPtr rtree, IntPtr op, IntPtr temp, int maxboxes, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_initialize_error_handler(IntPtr err_handler); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_initialize_allocator(IntPtr malloc_fn, IntPtr realloc_fn, IntPtr free_fn); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_initialize_noexit_error_handler(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_initialize_timezone(string name); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_initialize_collation(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_finalize_timezone(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_finalize_collation(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_finalize_projsrs(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_finalize_ways(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_set_datestyle(string newval, IntPtr extra); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_set_intervalstyle(string newval, int extra); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string meos_get_datestyle(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string meos_get_intervalstyle(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_set_spatial_ref_sys_csv(string path); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_set_ways_csv(string path); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_initialize(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_finalize(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string bigintset_out(IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_expand(IntPtr s, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string bigintspan_out(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspanset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string bigintspanset_out(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr dateset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string dateset_out(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespan_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string datespan_out(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespanset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string datespanset_out(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string floatset_out(IntPtr set, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_expand(IntPtr s, double value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string floatspan_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string floatspanset_out(IntPtr ss, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string intset_out(IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspan_expand(IntPtr s, int value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspan_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string intspan_out(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspanset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string intspanset_out(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string set_as_hexwkb(IntPtr s, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_as_wkb(IntPtr s, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_from_wkb(IntPtr wkb, ulong size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string span_as_hexwkb(IntPtr s, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_as_wkb(IntPtr s, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_from_wkb(IntPtr wkb, ulong size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string spanset_as_hexwkb(IntPtr ss, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_as_wkb(IntPtr ss, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_from_wkb(IntPtr wkb, ulong size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string textset_out(IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tstzset_out(IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tstzspan_out(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tstzspanset_out(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_make(IntPtr lower, IntPtr upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr dateset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespan_make(int lower, int upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_make(double lower, double upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspan_make(int lower, int upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_copy(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_copy(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_copy(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_make(IntPtr spans, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_make(long lower, long upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_to_set(IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_to_span(int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_to_spanset(int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr date_to_set(int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr date_to_span(int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr date_to_spanset(int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr dateset_to_tstzset(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespan_to_tstzspan(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespanset_to_tstzspanset(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr float_to_set(double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr float_to_span(double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr float_to_spanset(double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_to_intset(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_to_intspan(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_to_bigintspan(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_to_intspanset(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr int_to_set(int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr int_to_span(int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr int_to_spanset(int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intset_to_floatset(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspan_to_floatspan(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspan_to_bigintspan(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_to_intspan(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_to_floatspan(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspanset_to_floatspanset(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_to_span(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_to_spanset(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_to_spanset(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr text_to_set(IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr timestamptz_to_set(long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr timestamptz_to_span(long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr timestamptz_to_spanset(long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzset_to_dateset(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_to_datespan(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_to_datespanset(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool bigintset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_lower(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_upper(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_width(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspanset_lower(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspanset_upper(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspanset_width(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int dateset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int dateset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool dateset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr dateset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespan_duration(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int datespan_lower(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int datespan_upper(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datespanset_date_n(IntPtr ss, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespanset_dates(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespanset_duration(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int datespanset_end_date(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int datespanset_num_dates(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int datespanset_start_date(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool floatset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatspan_lower(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatspan_upper(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatspan_width(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatspanset_lower(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatspanset_upper(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatspanset_width(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intspan_lower(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intspan_upper(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intspan_width(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intspanset_lower(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intspanset_upper(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intspanset_width(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int set_hash(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_hash_extended(IntPtr s, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int set_num_values(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_hash(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_hash_extended(IntPtr s, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_lower_inc(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_upper_inc(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_end_span(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spanset_hash(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_hash_extended(IntPtr ss, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_lower_inc(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spanset_num_spans(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_span(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_span_n(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_spanarr(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_start_span(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_upper_inc(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool textset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tstzset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tstzset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tstzset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_duration(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tstzspan_lower(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tstzspan_upper(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_duration(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tstzspanset_end_timestamptz(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tstzspanset_lower(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tstzspanset_num_timestamps(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tstzspanset_start_timestamptz(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_timestamps(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tstzspanset_timestamptz_n(IntPtr ss, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tstzspanset_upper(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintset_shift_scale(IntPtr s, IntPtr shift, IntPtr width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_shift_scale(IntPtr s, IntPtr shift, IntPtr width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspanset_shift_scale(IntPtr ss, IntPtr shift, IntPtr width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr dateset_shift_scale(IntPtr s, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespan_shift_scale(IntPtr s, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespanset_shift_scale(IntPtr ss, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_ceil(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_degrees(IntPtr s, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_floor(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_radians(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatset_shift_scale(IntPtr s, double shift, double width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_ceil(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_degrees(IntPtr s, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_floor(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_radians(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_round(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_shift_scale(IntPtr s, double shift, double width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_ceil(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_floor(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_degrees(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_radians(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_round(IntPtr ss, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_shift_scale(IntPtr ss, double shift, double width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intset_shift_scale(IntPtr s, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspan_shift_scale(IntPtr s, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspanset_shift_scale(IntPtr ss, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_expand(IntPtr s, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_round(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textcat_text_textset(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textcat_textset_text(IntPtr s, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textset_initcap(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textset_lower(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textset_upper(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long timestamptz_tprecision(long t, IntPtr duration, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzset_shift_scale(IntPtr s, IntPtr shift, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzset_tprecision(IntPtr s, IntPtr duration, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_shift_scale(IntPtr s, IntPtr shift, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_tprecision(IntPtr s, IntPtr duration, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_shift_scale(IntPtr ss, IntPtr shift, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_tprecision(IntPtr ss, IntPtr duration, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int set_cmp(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_eq(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_ge(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_gt(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_le(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_lt(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_ne(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_cmp(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_eq(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_ge(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_gt(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_le(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_lt(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_ne(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spanset_cmp(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_eq(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_ge(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_gt(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_le(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_lt(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_ne(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_spans(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_split_each_n_spans(IntPtr s, int elems_per_span, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_split_n_spans(IntPtr s, int span_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_spans(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_split_each_n_spans(IntPtr ss, int elems_per_span, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_split_n_spans(IntPtr ss, int span_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_bigint_set(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_bigint_span(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_bigint_spanset(IntPtr i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_date_set(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_date_span(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_date_spanset(int d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_float_set(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_float_span(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_float_spanset(double d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_int_set(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_int_span(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_int_spanset(int i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_text_set(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_timestamptz_set(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_timestamptz_span(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_timestamptz_spanset(long t, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_text(IntPtr s, IntPtr t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_date_set(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_date_span(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_date_spanset(int d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_timestamptz_set(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_timestamptz_span(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_timestamptz_spanset(long t, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_date_set(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_date_span(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_date_spanset(int d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_timestamptz_set(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_timestamptz_span(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_timestamptz_spanset(long t, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_bigint_set(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_bigint_span(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_bigint_spanset(IntPtr i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_float_set(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_float_span(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_float_spanset(double d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_int_set(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_int_span(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_int_spanset(int i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_set_text(IntPtr s, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_text_set(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_date_set(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_date_span(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_date_spanset(int d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_timestamptz_set(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_timestamptz_span(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_timestamptz_spanset(long t, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_date_set(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_date_span(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_date_spanset(int d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_timestamptz_set(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_timestamptz_span(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_timestamptz_spanset(long t, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_bigint_set(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_bigint_span(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_bigint_spanset(IntPtr i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_float_set(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_float_span(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_float_spanset(double d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_int_set(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_int_span(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_int_spanset(int i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_set_text(IntPtr s, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_text_set(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_bigint_set(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_bigint_span(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_bigint_spanset(IntPtr i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_float_set(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_float_span(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_float_spanset(double d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_int_set(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_int_span(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_int_spanset(int i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_set_text(IntPtr s, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_text_set(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_bigint_set(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_bigint_span(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_bigint_spanset(IntPtr i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_float_set(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_float_span(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_float_spanset(double d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_int_set(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_int_span(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_int_spanset(int i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_set_text(IntPtr s, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_text_set(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_bigint_set(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_date_set(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_float_set(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_int_set(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_text(IntPtr s, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_text_set(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_timestamptz_set(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_bigint_set(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_bigint_span(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_bigint_spanset(IntPtr i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_date_set(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_date_span(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_date_spanset(int d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_float_set(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_float_span(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_float_spanset(double d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_int_set(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_int_span(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_int_spanset(int i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_text(IntPtr s, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_text_set(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_timestamptz_set(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_timestamptz_span(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_timestamptz_spanset(long t, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_bigint_set(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_bigint_span(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_bigint_spanset(IntPtr i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_date_set(int d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_date_span(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_date_spanset(int d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_float_set(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_float_span(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_float_spanset(double d, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_int_set(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_int_span(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_int_spanset(int i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_text(IntPtr s, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr super_union_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_span_spanset(IntPtr s, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_text_set(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_timestamptz_set(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_timestamptz_span(long t, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_timestamptz_spanset(long t, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr distance_bigintset_bigintset(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr distance_bigintspan_bigintspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr distance_bigintspanset_bigintspan(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr distance_bigintspanset_bigintspanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_dateset_dateset(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_datespan_datespan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_datespanset_datespan(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_datespanset_datespanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_floatset_floatset(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_floatspan_floatspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_floatspanset_floatspan(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_floatspanset_floatspanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_intset_intset(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_intspan_intspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_intspanset_intspan(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_intspanset_intspanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr distance_set_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_set_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_set_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_set_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_set_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr distance_span_bigint(IntPtr s, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_span_date(IntPtr s, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_span_float(IntPtr s, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_span_int(IntPtr s, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_span_timestamptz(IntPtr s, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr distance_spanset_bigint(IntPtr ss, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_spanset_date(IntPtr ss, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_spanset_float(IntPtr ss, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int distance_spanset_int(IntPtr ss, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_spanset_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_tstzset_tstzset(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_tstzspan_tstzspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_tstzspanset_tstzspan(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_tstzspanset_tstzspanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_extent_transfn(IntPtr state, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_union_transfn(IntPtr state, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr date_extent_transfn(IntPtr state, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr date_union_transfn(IntPtr state, int d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr float_extent_transfn(IntPtr state, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr float_union_transfn(IntPtr state, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr int_extent_transfn(IntPtr state, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr int_union_transfn(IntPtr state, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_extent_transfn(IntPtr state, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_union_finalfn(IntPtr state); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_union_transfn(IntPtr state, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_extent_transfn(IntPtr state, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_union_transfn(IntPtr state, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_extent_transfn(IntPtr state, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_union_finalfn(IntPtr state); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_union_transfn(IntPtr state, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr text_union_transfn(IntPtr state, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr timestamptz_extent_transfn(IntPtr state, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr timestamptz_union_transfn(IntPtr state, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_get_bin(IntPtr value, IntPtr vsize, IntPtr vorigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspan_bins(IntPtr s, IntPtr vsize, IntPtr vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigintspanset_bins(IntPtr ss, IntPtr vsize, IntPtr vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int date_get_bin(int d, IntPtr duration, int torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespan_bins(IntPtr s, IntPtr duration, int torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datespanset_bins(IntPtr ss, IntPtr duration, int torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double float_get_bin(double value, double vsize, double vorigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspan_bins(IntPtr s, double vsize, double vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatspanset_bins(IntPtr ss, double vsize, double vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int int_get_bin(int value, int vsize, int vorigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspan_bins(IntPtr s, int vsize, int vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intspanset_bins(IntPtr ss, int vsize, int vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long timestamptz_get_bin(long t, IntPtr duration, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_bins(IntPtr s, IntPtr duration, long origin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_bins(IntPtr ss, IntPtr duration, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tbox_as_hexwkb(IntPtr box, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_as_wkb(IntPtr box, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_from_wkb(IntPtr wkb, ulong size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tbox_out(IntPtr box, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr float_timestamptz_to_tbox(double d, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr float_tstzspan_to_tbox(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr int_timestamptz_to_tbox(int i, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_timestamptz_to_tbox(IntPtr i, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr int_tstzspan_to_tbox(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_tstzspan_to_tbox(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr numspan_tstzspan_to_tbox(IntPtr span, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr numspan_timestamptz_to_tbox(IntPtr span, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_copy(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_make(IntPtr s, IntPtr p); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr float_to_tbox(double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr int_to_tbox(int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bigint_to_tbox(IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_to_tbox(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_to_tbox(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_to_tbox(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_to_intspan(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_to_bigintspan(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_to_floatspan(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_to_tstzspan(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr timestamptz_to_tbox(long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tbox_hash(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_hash_extended(IntPtr box, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_hast(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_hasx(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_tmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_tmax_inc(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_tmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_tmin_inc(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_xmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_xmax_inc(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_xmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_xmin_inc(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tboxfloat_xmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tboxfloat_xmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tboxint_xmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tboxbigint_xmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tboxint_xmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tboxbigint_xmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatbox_expand(IntPtr box, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintbox_expand(IntPtr box, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_expand_time(IntPtr box, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_round(IntPtr box, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatbox_shift_scale(IntPtr box, double shift, double width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintbox_shift_scale(IntPtr box, int shift, int width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_shift_scale_time(IntPtr box, IntPtr shift, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintbox_expand(IntPtr box, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintbox_shift_scale(IntPtr box, IntPtr shift, IntPtr width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_tbox_tbox(IntPtr box1, IntPtr box2, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tbox_cmp(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_eq(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_ge(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_gt(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_le(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_lt(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_ne(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tbool_out(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string temporal_as_hexwkb(IntPtr temp, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string temporal_as_mfjson(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool with_bbox, int flags, int precision, string srs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_as_wkb(IntPtr temp, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_from_wkb(IntPtr wkb, ulong size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tfloat_out(IntPtr temp, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tint_out(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tbigint_out(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string ttext_out(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_from_base_temp([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolinst_make([MarshalAs(UnmanagedType.U1)] bool b, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolseq_from_base_tstzset([MarshalAs(UnmanagedType.U1)] bool b, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolseq_from_base_tstzspan([MarshalAs(UnmanagedType.U1)] bool b, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolseqset_from_base_tstzspanset([MarshalAs(UnmanagedType.U1)] bool b, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_copy(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_from_base_temp(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatinst_make(double d, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatseq_from_base_tstzset(double d, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatseq_from_base_tstzspan(double d, IntPtr s, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatseqset_from_base_tstzspanset(double d, IntPtr ss, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_from_base_temp(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_from_base_temp(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintinst_make(int i, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintinst_make(IntPtr i, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintseq_from_base_tstzset(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintseq_from_base_tstzset(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintseq_from_base_tstzspan(int i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintseq_from_base_tstzspan(IntPtr i, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintseqset_from_base_tstzspanset(int i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintseqset_from_base_tstzspanset(IntPtr i, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_make(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_make(IntPtr sequences, int count, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_make_gaps(IntPtr instants, int count, int interp, IntPtr maxt, double maxdist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_from_base_temp(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextinst_make(IntPtr txt, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextseq_from_base_tstzset(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextseq_from_base_tstzspan(IntPtr txt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextseqset_from_base_tstzspanset(IntPtr txt, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_to_tint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_to_tstzspan(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_to_tint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_to_tbigint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_to_tfloat(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_to_tbigint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_to_tint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_to_tfloat(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_to_span(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_to_tbox(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbool_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbool_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbool_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbool_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_duration(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool boundspan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_end_instant(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_end_sequence(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long temporal_end_timestamptz(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int temporal_hash(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_instant_n(IntPtr temp, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_instants(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string temporal_interp(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_lower_inc(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_max_instant(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_min_instant(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int temporal_num_instants(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int temporal_num_sequences(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int temporal_num_timestamps(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_segm_duration(IntPtr temp, IntPtr duration, [MarshalAs(UnmanagedType.U1)] bool atleast, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_segments(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_sequence_n(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_sequences(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_start_instant(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_start_sequence(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long temporal_start_timestamptz(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_stops(IntPtr temp, double maxdist, IntPtr minduration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string temporal_subtype(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string temporal_basetype_name(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_time(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_timestamps(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_timestamptz_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_upper_inc(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tfloat_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tfloat_min_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tfloat_max_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tfloat_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tfloat_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tfloat_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tint_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tint_max_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_max_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tint_min_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_min_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tint_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbigint_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tint_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tint_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbigint_value_n(IntPtr temp, IntPtr n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumber_avg_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumber_integral(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumber_twavg(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_valuespans(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_max_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_min_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ttext_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ttext_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double float_degrees(double value, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temparr_round(IntPtr temp, int count, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_round(IntPtr temp, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_scale_time(IntPtr temp, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_set_interp(IntPtr temp, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_shift_scale_time(IntPtr temp, IntPtr shift, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_shift_time(IntPtr temp, IntPtr shift); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_to_tinstant(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_to_tsequence(IntPtr temp, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_to_tsequenceset(IntPtr temp, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_ceil(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_degrees(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_floor(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_radians(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_scale_value(IntPtr temp, double width); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_shift_scale_value(IntPtr temp, double shift, double width); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_shift_value(IntPtr temp, double shift); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_scale_value(IntPtr temp, int width); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_scale_value(IntPtr temp, IntPtr width); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_shift_scale_value(IntPtr temp, int shift, int width); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_shift_scale_value(IntPtr temp, IntPtr shift, IntPtr width); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_shift_value(IntPtr temp, int shift); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_shift_value(IntPtr temp, IntPtr shift); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_append_tinstant(IntPtr temp, IntPtr inst, int interp, double maxdist, IntPtr maxt, [MarshalAs(UnmanagedType.U1)] bool expand); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_append_tsequence(IntPtr temp, IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool expand); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_delete_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_delete_tstzset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_delete_tstzspan(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_delete_tstzspanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_insert(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_merge(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_merge_array(IntPtr temparr, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_update(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_at_value(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_minus_value(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_after_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_at_max(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_at_min(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_at_timestamptz(IntPtr temp, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_at_tstzset(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_at_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_at_tstzspanset(IntPtr temp, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_at_values(IntPtr temp, IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_before_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_minus_max(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_minus_min(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_minus_timestamptz(IntPtr temp, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_minus_tstzset(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_minus_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_minus_tstzspanset(IntPtr temp, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_minus_values(IntPtr temp, IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_at_value(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_minus_value(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_at_value(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_minus_value(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_at_span(IntPtr temp, IntPtr span); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_at_spanset(IntPtr temp, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_at_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_minus_span(IntPtr temp, IntPtr span); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_minus_spanset(IntPtr temp, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_minus_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_at_value(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_minus_value(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int temporal_cmp(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_eq(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_ge(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_gt(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_le(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_lt(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_ne(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_bool_tbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tbool_bool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_bool_tbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tbool_bool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_bool_tbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tbool_bool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_bool_tbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tbool_bool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_bigint_tbigint(IntPtr i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tbigint_bigint(IntPtr temp, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_bool_tbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tbool_bool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tge_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tge_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tge_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tge_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tge_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tge_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tge_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgt_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgt_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgt_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgt_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgt_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgt_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgt_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tle_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tle_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tle_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tle_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tle_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tle_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tle_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tlt_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tlt_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tlt_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tlt_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tlt_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tlt_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tlt_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_bool_tbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_float_tfloat(double d, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_int_tint(int i, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tbool_bool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_spans(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_split_each_n_spans(IntPtr temp, int elem_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_split_n_spans(IntPtr temp, int span_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_split_each_n_tboxes(IntPtr temp, int elem_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_split_n_tboxes(IntPtr temp, int box_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_tboxes(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_temporal_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_tstzspan_temporal(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_numspan_tnumber(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_tbox_tnumber(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tand_bool_tbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tand_tbool_bool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tand_tbool_tbool(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_when_true(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnot_tbool(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tor_bool_tbool([MarshalAs(UnmanagedType.U1)] bool b, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tor_tbool_bool(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tor_tbool_tbool(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr add_float_tfloat(double d, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr add_int_tint(int i, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr add_tfloat_float(IntPtr tnumber, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr add_tint_int(IntPtr tnumber, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr add_bigint_tbigint(IntPtr i, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr add_tbigint_bigint(IntPtr tnumber, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr add_tnumber_tnumber(IntPtr tnumber1, IntPtr tnumber2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr div_float_tfloat(double d, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr div_int_tint(int i, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr div_tfloat_float(IntPtr tnumber, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr div_tint_int(IntPtr tnumber, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr div_bigint_tbigint(IntPtr i, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr div_tbigint_bigint(IntPtr tnumber, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr div_tnumber_tnumber(IntPtr tnumber1, IntPtr tnumber2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr mul_float_tfloat(double d, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr mul_int_tint(int i, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr mul_tfloat_float(IntPtr tnumber, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr mul_tint_int(IntPtr tnumber, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr mul_bigint_tbigint(IntPtr i, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr mul_tbigint_bigint(IntPtr tnumber, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr mul_tnumber_tnumber(IntPtr tnumber1, IntPtr tnumber2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr sub_float_tfloat(double d, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr sub_int_tint(int i, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr sub_tfloat_float(IntPtr tnumber, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr sub_tint_int(IntPtr tnumber, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr sub_bigint_tbigint(IntPtr i, IntPtr tnumber); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr sub_tbigint_bigint(IntPtr tnumber, IntPtr i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr sub_tnumber_tnumber(IntPtr tnumber1, IntPtr tnumber2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_derivative(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_exp(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_ln(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_log10(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_sin(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_cos(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_tan(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_abs(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_trend(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double float_angular_difference(double degrees1, double degrees2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_angular_difference(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_delta_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textcat_text_ttext(IntPtr txt, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textcat_ttext_text(IntPtr temp, IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textcat_ttext_ttext(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_initcap(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_upper(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_lower(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tboxfloat_tboxfloat(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int nad_tboxint_tboxint(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tfloat_float(IntPtr temp, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tfloat_tfloat(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tfloat_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int nad_tint_int(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int nad_tint_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int nad_tint_tint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_tand_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_tand_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_tor_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbool_tor_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_extent_transfn(IntPtr s, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tagg_finalfn(IntPtr state); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tcount_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tcount_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_tmax_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_tmax_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_tmin_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_tmin_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_tsum_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_tsum_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_wmax_transfn(IntPtr state, IntPtr temp, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_wmin_transfn(IntPtr state, IntPtr temp, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_wsum_transfn(IntPtr state, IntPtr temp, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr timestamptz_tcount_transfn(IntPtr state, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_tmax_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_tmax_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_tmin_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_tmin_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_tsum_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_tsum_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_wmax_transfn(IntPtr state, IntPtr temp, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_wmin_transfn(IntPtr state, IntPtr temp, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_wsum_transfn(IntPtr state, IntPtr temp, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_extent_transfn(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_tavg_finalfn(IntPtr state); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_tavg_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_tavg_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_wavg_transfn(IntPtr state, IntPtr temp, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzset_tcount_transfn(IntPtr state, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_tcount_transfn(IntPtr state, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_tcount_transfn(IntPtr state, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_merge_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_merge_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_tmax_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_tmax_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_tmin_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_tmin_combinefn(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_simplify_dp(IntPtr temp, double dist, [MarshalAs(UnmanagedType.U1)] bool synchronized); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_simplify_max_dist(IntPtr temp, double dist, [MarshalAs(UnmanagedType.U1)] bool synchronized); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_simplify_min_dist(IntPtr temp, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_simplify_min_tdelta(IntPtr temp, IntPtr mint); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tprecision(IntPtr temp, IntPtr duration, long origin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tsample(IntPtr temp, IntPtr duration, long origin, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double temporal_dyntimewarp_distance(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_dyntimewarp_path(IntPtr temp1, IntPtr temp2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double temporal_frechet_distance(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_frechet_path(IntPtr temp1, IntPtr temp2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double temporal_hausdorff_distance(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double temporal_average_hausdorff_distance(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double temporal_lcss_distance(IntPtr temp1, IntPtr temp2, double epsilon); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_ext_kalman_filter(IntPtr temp, double gate, double q, double variance, [MarshalAs(UnmanagedType.U1)] bool to_drop); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_time_bins(IntPtr temp, IntPtr duration, long origin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_time_split(IntPtr temp, IntPtr duration, long torigin, IntPtr bins, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_time_boxes(IntPtr temp, IntPtr duration, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_value_bins(IntPtr temp, double vsize, double vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_value_boxes(IntPtr temp, double vsize, double vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_value_split(IntPtr temp, double size, double origin, IntPtr bins, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_value_time_boxes(IntPtr temp, double vsize, IntPtr duration, double vorigin, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloat_value_time_split(IntPtr temp, double vsize, IntPtr duration, double vorigin, long torigin, IntPtr value_bins, IntPtr time_bins, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatbox_time_tiles(IntPtr box, IntPtr duration, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatbox_value_tiles(IntPtr box, double vsize, double vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatbox_value_time_tiles(IntPtr box, double vsize, IntPtr duration, double vorigin, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_time_boxes(IntPtr temp, IntPtr duration, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_value_bins(IntPtr temp, int vsize, int vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_value_boxes(IntPtr temp, int vsize, int vorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_value_split(IntPtr temp, int vsize, int vorigin, IntPtr bins, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_value_time_boxes(IntPtr temp, int vsize, IntPtr duration, int vorigin, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tint_value_time_split(IntPtr temp, int size, IntPtr duration, int vorigin, long torigin, IntPtr value_bins, IntPtr time_bins, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintbox_time_tiles(IntPtr box, IntPtr duration, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintbox_value_tiles(IntPtr box, int xsize, int xorigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintbox_value_time_tiles(IntPtr box, int xsize, IntPtr duration, int xorigin, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr box3d_from_gbox(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr box3d_make(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr box3d_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string box3d_out(IntPtr box, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr gbox_make([MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool hasm, [MarshalAs(UnmanagedType.U1)] bool geodetic, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, double mmin, double mmax); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr gbox_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string gbox_out(IntPtr box, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_as_ewkb(IntPtr gs, string endian, IntPtr size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string geo_as_ewkt(IntPtr gs, int precision); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string geo_as_geojson(IntPtr gs, int option, int precision, string srs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string geo_as_hexewkb(IntPtr gs, string endian); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string geo_as_text(IntPtr gs, int precision); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_from_ewkb(IntPtr wkb, ulong wkb_size, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_from_geojson(string geojson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_from_text(string wkt, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string geo_out(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geog_from_hexewkb(string wkt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geog_in(string str, int typmod); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_from_hexewkb(string wkt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_in(string str, int typmod); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_copy(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geogpoint_make2d(int srid, double x, double y); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geogpoint_make3dz(int srid, double x, double y, double z); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geompoint_make2d(int srid, double x, double y); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geompoint_make3dz(int srid, double x, double y, double z); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_to_geog(IntPtr geom); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geog_to_geom(IntPtr geog); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geo_is_empty(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geo_is_unitary(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string geo_typename(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geog_area(IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geog_centroid(IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geog_length(IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geog_perimeter(IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_azimuth(IntPtr gs1, IntPtr gs2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geom_length(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geom_perimeter(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int line_numpoints(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr line_point_n(IntPtr geom, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_reverse(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_round(IntPtr gs, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_set_srid(IntPtr gs, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int geo_srid(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_transform(IntPtr geom, int srid_to); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_transform_pipeline(IntPtr gs, string pipeline, int srid_to, [MarshalAs(UnmanagedType.U1)] bool is_forward); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_collect_garray(IntPtr gsarr, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_makeline_garray(IntPtr gsarr, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int geo_num_points(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int geo_num_geos(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_geo_n(IntPtr geom, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_pointarr(IntPtr gs, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_points(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_array_union(IntPtr gsarr, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_boundary(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_buffer(IntPtr gs, double size, string @params); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_centroid(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_convex_hull(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_difference2d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_intersection2d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_intersection2d_coll(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_min_bounding_radius(IntPtr geom, IntPtr radius); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_shortestline2d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_shortestline3d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_unary_union(IntPtr gs, double prec); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr line_interpolate_point(IntPtr gs, double distance_fraction, [MarshalAs(UnmanagedType.U1)] bool repeat); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double line_locate_point(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr line_substring(IntPtr gs, double from, double to); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geog_dwithin(IntPtr g1, IntPtr g2, double tolerance, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geog_intersects(IntPtr gs1, IntPtr gs2, [MarshalAs(UnmanagedType.U1)] bool use_spheroid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_contains(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_covers(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_disjoint2d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_dwithin(IntPtr gs1, IntPtr gs2, double tolerance); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_dwithin2d(IntPtr gs1, IntPtr gs2, double tolerance); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_dwithin3d(IntPtr gs1, IntPtr gs2, double tolerance); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_intersects(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_intersects2d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_intersects3d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_relate_pattern(IntPtr gs1, IntPtr gs2, string patt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_touches(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_stboxes(IntPtr gs, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_split_each_n_stboxes(IntPtr gs, int elem_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_split_n_stboxes(IntPtr gs, int box_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geog_distance(IntPtr g1, IntPtr g2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geom_distance2d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geom_distance3d(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int geo_equals(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geo_same(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geogset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geomset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string spatialset_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string spatialset_as_text(IntPtr set, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string spatialset_as_ewkt(IntPtr set, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geoset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_to_set(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geoset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geoset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geoset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geoset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_geo_set(IntPtr gs, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_geo(IntPtr s, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_union_transfn(IntPtr state, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_geo_set(IntPtr gs, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_geo(IntPtr s, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_geo_set(IntPtr gs, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_geo(IntPtr s, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_geo_set(IntPtr gs, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_geo(IntPtr s, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spatialset_set_srid(IntPtr s, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spatialset_srid(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spatialset_transform(IntPtr s, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spatialset_transform_pipeline(IntPtr s, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string stbox_as_hexwkb(IntPtr box, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_as_wkb(IntPtr box, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_from_wkb(IntPtr wkb, ulong size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string stbox_out(IntPtr box, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_timestamptz_to_stbox(IntPtr gs, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_tstzspan_to_stbox(IntPtr gs, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_copy(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_make([MarshalAs(UnmanagedType.U1)] bool hasx, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_to_stbox(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spatialset_to_stbox(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_to_box3d(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_to_gbox(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_to_geo(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_to_tstzspan(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr timestamptz_to_stbox(long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzset_to_stbox(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspan_to_stbox(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstzspanset_to_stbox(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double stbox_area(IntPtr box, [MarshalAs(UnmanagedType.U1)] bool spheroid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int stbox_hash(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_hash_extended(IntPtr box, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_hast(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_hasx(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_hasz(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_isgeodetic(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double stbox_perimeter(IntPtr box, [MarshalAs(UnmanagedType.U1)] bool spheroid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_tmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_tmax_inc(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_tmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_tmin_inc(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double stbox_volume(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_xmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_xmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_ymax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_ymin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_zmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_zmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_expand_space(IntPtr box, double d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_expand_time(IntPtr box, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_get_space(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_quad_split(IntPtr box, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_round(IntPtr box, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_shift_scale_time(IntPtr box, IntPtr shift, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stboxarr_round(IntPtr boxarr, int count, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_set_srid(IntPtr box, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int stbox_srid(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_transform(IntPtr box, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_transform_pipeline(IntPtr box, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool above_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool back_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool below_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool front_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overabove_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overback_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbelow_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overfront_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_stbox_stbox(IntPtr box1, IntPtr box2, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int stbox_cmp(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_eq(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_ge(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_gt(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_le(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_lt(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_ne(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tspatial_out(IntPtr temp, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpoint_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpoint_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeography_from_mfjson(string mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeography_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometry_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometry_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompoint_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompoint_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tspatial_as_ewkt(IntPtr temp, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tspatial_as_text(IntPtr temp, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_from_base_temp(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoinst_make(IntPtr gs, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseq_from_base_tstzset(IntPtr gs, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseq_from_base_tstzspan(IntPtr gs, IntPtr s, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseqset_from_base_tstzspanset(IntPtr gs, IntPtr ss, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_from_base_temp(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointinst_make(IntPtr gs, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_from_base_tstzset(IntPtr gs, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_from_base_tstzspan(IntPtr gs, IntPtr s, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_make_coords(IntPtr xcoords, IntPtr ycoords, IntPtr zcoords, IntPtr times, int count, int srid, [MarshalAs(UnmanagedType.U1)] bool geodetic, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseqset_from_base_tstzspanset(IntPtr gs, IntPtr ss, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr box3d_to_stbox(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr gbox_to_stbox(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geomeas_to_tpoint(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpoint_to_tgeography(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeography_to_tgeogpoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeography_to_tgeometry(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometry_to_tgeography(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometry_to_tgeompoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompoint_to_tgeometry(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_as_mvtgeom(IntPtr temp, IntPtr bounds, int extent, int buffer, [MarshalAs(UnmanagedType.U1)] bool clip_geom); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpoint_tfloat_to_geomeas(IntPtr tpoint, IntPtr measure, [MarshalAs(UnmanagedType.U1)] bool segmentize, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatial_to_stbox(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool bearing_point_point(IntPtr gs1, IntPtr gs2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bearing_tpoint_point(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bearing_tpoint_tpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_centroid(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_convex_hull(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_traversed_area(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool unary_union); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tgeo_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tgeo_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_angular_difference(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_azimuth(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_cumulative_length(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpoint_direction(IntPtr temp, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_get_x(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_get_y(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_get_z(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpoint_is_simple(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tpoint_length(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_speed(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_trajectory(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool unary_union); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_twcentroid(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_affine(IntPtr temp, IntPtr a); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_scale(IntPtr temp, IntPtr scale, IntPtr sorigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_make_simple(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tspatial_srid(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatial_set_srid(IntPtr temp, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatial_transform(IntPtr temp, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatial_transform_pipeline(IntPtr temp, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_at_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_at_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_at_value(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_minus_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_minus_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_minus_value(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_at_elevation(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_at_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_at_value(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_minus_elevation(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_minus_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_minus_value(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_stboxes(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_space_boxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_space_time_boxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_split_each_n_stboxes(IntPtr temp, int elem_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_split_n_stboxes(IntPtr temp, int box_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool above_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool above_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool above_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool back_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool back_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool back_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool below_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool below_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool below_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool front_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool front_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool front_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overabove_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overabove_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overabove_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overback_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overback_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overback_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbelow_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbelow_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbelow_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overfront_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overfront_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overfront_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_stbox_tspatial(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_tspatial_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acontains_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acontains_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acontains_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adisjoint_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adisjoint_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adisjoint_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adwithin_geo_tgeo(IntPtr gs, IntPtr temp, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adwithin_tgeo_geo(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adwithin_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int aintersects_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int aintersects_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int aintersects_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int atouches_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int atouches_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int atouches_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int atouches_tpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int econtains_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int econtains_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int econtains_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edisjoint_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edisjoint_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edisjoint_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edwithin_geo_tgeo(IntPtr gs, IntPtr temp, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edwithin_tgeo_geo(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edwithin_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eintersects_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eintersects_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eintersects_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int etouches_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int etouches_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int etouches_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int etouches_tpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontains_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontains_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontains_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcovers_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcovers_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcovers_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_geo_tgeo(IntPtr gs, IntPtr temp, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_tgeo_geo(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_geo_tgeo(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr edwithin_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr adwithin_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr eintersects_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr aintersects_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr etouches_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr atouches_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr edisjoint_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr adisjoint_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, double dist, IntPtr count, IntPtr periods); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count, IntPtr periods); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count, IntPtr periods); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2, IntPtr count, IntPtr periods); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_stbox_geo(IntPtr box, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double stbox_spatial_distance(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tgeo_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double mindistance_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double threshold); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double mindistance_tgeoarr_tgeoarr(IntPtr arr1, int count1, IntPtr arr2, int count2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_tcentroid_finalfn(IntPtr state); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_tcentroid_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatial_extent_transfn(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_get_space_tile(IntPtr point, double xsize, double ysize, double zsize, IntPtr sorigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_get_space_time_tile(IntPtr point, long t, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_get_time_tile(long t, IntPtr duration, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_space_tiles(IntPtr bounds, double xsize, double ysize, double zsize, IntPtr sorigin, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_space_time_tiles(IntPtr bounds, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_time_tiles(IntPtr bounds, IntPtr duration, long torigin, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_space_split(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_space_time_split(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_cluster_kmeans(IntPtr geoms, uint ngeoms, uint k, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_cluster_dbscan(IntPtr geoms, uint ngeoms, double tolerance, int minpoints, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_cluster_intersecting(IntPtr geoms, uint ngeoms, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_cluster_within(IntPtr geoms, uint ngeoms, double tolerance, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string cbuffer_as_ewkt(IntPtr cb, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string cbuffer_as_hexwkb(IntPtr cb, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string cbuffer_as_text(IntPtr cb, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_as_wkb(IntPtr cb, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_from_wkb(IntPtr wkb, ulong size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string cbuffer_out(IntPtr cb, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_copy(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_make(IntPtr point, double radius); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_to_geom(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_to_stbox(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbufferarr_to_geom(IntPtr cbarr, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_to_cbuffer(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_hash(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_hash_extended(IntPtr cb, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_point(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double cbuffer_radius(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_round(IntPtr cb, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbufferarr_round(IntPtr cbarr, int count, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void cbuffer_set_srid(IntPtr cb, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_srid(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_transform(IntPtr cb, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_transform_pipeline(IntPtr cb, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int contains_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int covers_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int disjoint_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int dwithin_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int intersects_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int touches_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_tstzspan_to_stbox(IntPtr cb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_timestamptz_to_stbox(IntPtr cb, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_cbuffer_geo(IntPtr cb, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_cbuffer_stbox(IntPtr cb, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_cbuffer_stbox(IntPtr cb, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_cmp(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_eq(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_ge(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_gt(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_le(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_lt(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_ne(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_nsame(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_same(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbufferset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string cbufferset_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbufferset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_to_set(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbufferset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbufferset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbufferset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbufferset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_union_transfn(IntPtr state, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_cbuffer_set(IntPtr cb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_cbuffer(IntPtr s, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_cbuffer_set(IntPtr cb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_cbuffer(IntPtr s, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_cbuffer_set(IntPtr cb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_cbuffer(IntPtr s, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_cbuffer_set(IntPtr cb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_cbuffer(IntPtr s, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_from_mfjson(string mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbufferinst_make(IntPtr cb, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_make(IntPtr tpoint, IntPtr tfloat); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_from_base_temp(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbufferseq_from_base_tstzset(IntPtr cb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbufferseq_from_base_tstzspan(IntPtr cb, IntPtr s, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbufferseqset_from_base_tstzspanset(IntPtr cb, IntPtr ss, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_points(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_radius(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_traversed_area(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool unary_union); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_convex_hull(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tcbuffer_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tcbuffer_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_to_tfloat(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_to_tgeompoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometry_to_tcbuffer(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_expand(IntPtr temp, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_at_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_at_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_at_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_minus_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_minus_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_minus_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tcbuffer_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double mindistance_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double threshold); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acontains_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acontains_geo_tcbuffer(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acontains_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acontains_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_geo_tcbuffer(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adisjoint_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adisjoint_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adisjoint_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adwithin_tcbuffer_geo(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adwithin_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adwithin_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int aintersects_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int aintersects_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int aintersects_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int atouches_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int atouches_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int atouches_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int econtains_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int econtains_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int econtains_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_geo_tcbuffer(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edisjoint_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edisjoint_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edwithin_tcbuffer_geo(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edwithin_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edwithin_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eintersects_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eintersects_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eintersects_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int etouches_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int etouches_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int etouches_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontains_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontains_geo_tcbuffer(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontains_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontains_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontains_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcovers_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcovers_geo_tcbuffer(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcovers_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcovers_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcovers_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_geo_tcbuffer(IntPtr gs, IntPtr temp, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_tcbuffer_geo(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_geo_tcbuffer(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdisjoint_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_geo_tcbuffer(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintersects_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_geo_tcbuffer(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_cbuffer_tcbuffer(IntPtr cb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttouches_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_cbuffer_cbuffer(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_cbuffer_geo(IntPtr cb, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_cbuffer_stbox(IntPtr cb, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_cbufferset_cbuffer(IntPtr s, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_collinear(IntPtr cb1, IntPtr cb2, IntPtr cbuf3, double ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffersegm_interpolate(IntPtr start, IntPtr end, IntPtr ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffersegm_locate(IntPtr start, IntPtr end, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_parse(IntPtr str, [MarshalAs(UnmanagedType.U1)] bool end); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string cbuffer_wkt_out(long value, int maxdd, [MarshalAs(UnmanagedType.U1)] bool extended); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_point_p(IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_cbuffer_round(long buffer, long size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cbuffer_transf_pj(IntPtr cb, int srid_to, IntPtr pj); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double cbuffer_distance(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_cbuffer_distance(long cb1, long cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffersegm_distance_turnpt(IntPtr start1, IntPtr end1, IntPtr start2, IntPtr end2, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_contains(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_covers(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_disjoint(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_intersects(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_dwithin(IntPtr cb1, IntPtr cb2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int cbuffer_touches(IntPtr cb1, IntPtr cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_cbuffer_contains(long cb1, long cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_cbuffer_covers(long cb1, long cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_cbuffer_disjoint(long cb1, long cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_cbuffer_intersects(long cb1, long cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_cbuffer_dwithin(long cb1, long cb2, long dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_cbuffer_touches(long cb1, long cb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temptype_subtype(int subtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temptype_subtype_all(int subtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tempsubtype_name(int subtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tempsubtype_from_string(string str, IntPtr subtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string meosoper_name(IntPtr oper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meosoper_from_string(string name); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string interptype_name(int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int interptype_from_string(string interp_str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int meos_typeof_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string meostype_name(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int temptype_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int settype_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spantype_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spantype_spansettype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spansettype_spantype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int basetype_spantype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int basetype_settype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tnumber_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geo_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool meos_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool alphanum_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool alphanum_temptype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool time_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool numset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_numset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool timeset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_spantype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_set_spantype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool alphanumset_type(int settype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geoset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_geoset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spatialset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_spatialset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_canon_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool type_span_bbox(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_tbox_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_span_tbox_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool numspan_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool numspan_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_numspan_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool timespan_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool timespan_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool timespanset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_timespanset_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temptype_supports_linear(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool basetype_byvalue(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool basetype_varlength(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial short meostype_length(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool talphanum_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool talpha_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tnumber_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tnumber_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tnumber_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tnumber_spantype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spatial_basetype(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tspatial_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tspatial_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpoint_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tpoint_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tgeo_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tgeo_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tgeo_type_all(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tgeo_type_all(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tgeometry_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tgeometry_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tgeodetic_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tgeodetic_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_tnumber_tpoint_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr gsl_get_generation_rng(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr gsl_get_aggregation_rng(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_ceil(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_degrees(long d, long normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_float_round(long value, long size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_floor(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int datum_hash(long d, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datum_hash_extended(long d, int basetype, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_radians(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void floatspan_round_set(IntPtr s, int maxdd, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_in(string str, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string set_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_in(string str, int spantype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string span_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_in(string str, int spantype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string spanset_out(IntPtr ss, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_make(IntPtr values, int count, int basetype, [MarshalAs(UnmanagedType.U1)] bool order); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_make_exp(IntPtr values, int count, int maxcount, int basetype, [MarshalAs(UnmanagedType.U1)] bool order); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_make_free(IntPtr values, int count, int basetype, [MarshalAs(UnmanagedType.U1)] bool order); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_make(long lower, long upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void span_set(long lower, long upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int basetype, int spantype, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_make_exp(IntPtr spans, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool normalize, [MarshalAs(UnmanagedType.U1)] bool order); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_make_free(IntPtr spans, int count, [MarshalAs(UnmanagedType.U1)] bool normalize, [MarshalAs(UnmanagedType.U1)] bool order); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_span(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_spanset(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void value_set_span(long value, int basetype, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr value_set(long d, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr value_span(long d, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr value_spanset(long d, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long numspan_width(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long numspanset_width(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long set_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int set_mem_size(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void set_set_subspan(IntPtr s, int minidx, int maxidx, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void set_set_span(IntPtr s, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long set_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_vals(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long spanset_lower(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spanset_mem_size(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_sps(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long spanset_upper(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void datespan_set_tstzspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void bigintspan_set_floatspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void bigintspan_set_intspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void floatspan_set_bigintspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void floatspan_set_intspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void intspan_set_bigintspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void intspan_set_floatspan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr numset_shift_scale(IntPtr s, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr numspan_expand(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr numspan_shift_scale(IntPtr s, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr numspanset_shift_scale(IntPtr ss, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_compact(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void span_expand(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_compact(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_expand_value(IntPtr box, long value, int basetyp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textcat_textset_text_common(IntPtr s, IntPtr txt, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzspan_set_datespan(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_value_set(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_value_span(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ovadj_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_value_set(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_value_span(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool lfnadj_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_value_set(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_value_span(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_value_set(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_value_span(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_value_set(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_value_span(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool bbox_type(int bboxtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial ulong bbox_get_size(int bboxtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int bbox_max_dims(int bboxtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_bbox_eq(IntPtr box1, IntPtr box2, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int temporal_bbox_cmp(IntPtr box1, IntPtr box2, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void bbox_union_span_span(IntPtr s1, IntPtr s2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool inter_span_span(IntPtr s1, IntPtr s2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_value_set(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_value_span(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int mi_span_span(IntPtr s1, IntPtr s2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_value_set(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_value_span(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_value_set(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_value_span(long value, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_value_spanset(long value, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long distance_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long distance_set_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long distance_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long distance_span_value(IntPtr s, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long distance_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long distance_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long distance_spanset_value(IntPtr ss, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long distance_value_value(long l, long r, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanbase_extent_transfn(IntPtr state, long value, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr value_union_transfn(IntPtr state, long value, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr number_tstzspan_to_tbox(long d, int basetype, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr number_timestamptz_to_tbox(long d, int basetype, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tbox_set(IntPtr s, IntPtr p, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void float_set_tbox(double d, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void int_set_tbox(int i, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void number_set_tbox(long d, int basetype, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr number_tbox(long value, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void numset_set_tbox(IntPtr s, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void numspan_set_tbox(IntPtr span, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void timestamptz_set_tbox(long t, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzset_set_tbox(IntPtr s, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzspan_set_tbox(IntPtr s, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_shift_scale_value(IntPtr box, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tbox_expand(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool inter_tbox_tbox(IntPtr box1, IntPtr box2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolinst_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolseq_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolseqset_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboolseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_in(string str, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string temporal_out(IntPtr temp, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temparr_out(IntPtr temparr, int count, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatinst_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatseq_from_mfjson(IntPtr mfjson, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatseqset_from_mfjson(IntPtr mfjson, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfloatseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_from_mfjson(IntPtr mfjson, [MarshalAs(UnmanagedType.U1)] bool spatial, int srid, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_in(string str, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tinstant_out(IntPtr inst, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintinst_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintseq_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintseqset_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigintseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintinst_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintseq_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintseqset_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tintseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_from_mfjson(IntPtr mfjson, [MarshalAs(UnmanagedType.U1)] bool spatial, int srid, int temptype, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_in(string str, int temptype, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tsequence_out(IntPtr seq, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_from_mfjson(IntPtr mfjson, [MarshalAs(UnmanagedType.U1)] bool spatial, int srid, int temptype, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_in(string str, int temptype, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tsequenceset_out(IntPtr ss, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextinst_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextseq_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextseqset_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttextseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_from_mfjson(string mfjson, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_from_base_temp(long value, int temptype, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_copy(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_make(long value, int temptype, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_make_free(long value, int temptype, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_copy(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_from_base_temp(long value, int temptype, IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_from_base_tstzset(long value, int temptype, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_from_base_tstzspan(long value, int temptype, IntPtr s, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_make_exp(IntPtr instants, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_make_free(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_copy(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tseqsetarr_to_tseqset(IntPtr seqsets, int count, int totalseqs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_from_base_temp(long value, int temptype, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_from_base_tstzspanset(long value, int temptype, IntPtr ss, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_make_exp(IntPtr sequences, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_make_free(IntPtr sequences, int count, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void temporal_set_tstzspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tinstant_set_tstzspan(IntPtr inst, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnumber_set_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnumberinst_set_tbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnumberseq_set_tbox(IntPtr seq, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnumberseqset_set_tbox(IntPtr ss, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequence_set_tstzspan(IntPtr seq, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequenceset_set_tstzspan(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_end_inst(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long temporal_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_inst_n(IntPtr temp, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_insts_p(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_max_inst_p(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long temporal_max_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial ulong temporal_mem_size(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_min_inst_p(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long temporal_min_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_sequences_p(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void temporal_set_bbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_start_inst(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long temporal_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_values_p(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tinstant_hash(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_insts(IntPtr inst, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tinstant_set_bbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_time(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_timestamps(IntPtr inst, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tinstant_value_p(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tinstant_value(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tinstant_value_at_timestamptz(IntPtr inst, long t, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_values_p(IntPtr inst, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnumber_set_span(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberinst_valuespans(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberseq_avg_val(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_valuespans(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberseqset_avg_val(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseqset_valuespans(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_duration(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsequence_end_timestamptz(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequence_hash(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_insts_p(IntPtr seq, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_max_inst_p(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsequence_max_val(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_min_inst_p(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsequence_min_val(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_segments(IntPtr seq, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_seqs(IntPtr seq, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsequence_start_timestamptz(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_time(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_timestamps(IntPtr seq, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequence_value_at_timestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_values_p(IntPtr seq, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_duration(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool boundspan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsequenceset_end_timestamptz(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequenceset_hash(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_inst_n(IntPtr ss, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_insts_p(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_max_inst_p(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsequenceset_max_val(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_min_inst_p(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsequenceset_min_val(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequenceset_num_instants(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequenceset_num_timestamps(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_segments(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_sequences_p(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsequenceset_start_timestamptz(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_time(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequenceset_timestamptz_n(IntPtr ss, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_timestamps(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequenceset_value_at_timestamptz(IntPtr ss, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequenceset_value_n(IntPtr ss, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequenceset_value_n_p(IntPtr ss, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_values_p(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void temporal_restart(IntPtr temp, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tsequence(IntPtr temp, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tsequenceset(IntPtr temp, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_shift_time(IntPtr inst, IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_to_tsequence(IntPtr inst, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_to_tsequence_free(IntPtr inst, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_to_tsequenceset(IntPtr inst, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_shift_scale_value(IntPtr temp, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberinst_shift_value(IntPtr inst, long shift); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_shift_scale_value(IntPtr seq, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseqset_shift_scale_value(IntPtr ss, long start, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequence_restart(IntPtr seq, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_set_interp(IntPtr seq, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_shift_scale_time(IntPtr seq, IntPtr shift, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_subseq(IntPtr seq, int from, int to, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_to_tinstant(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_to_tsequenceset(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_to_tsequenceset_free(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_to_tsequenceset_interp(IntPtr seq, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequenceset_restart(IntPtr ss, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_set_interp(IntPtr ss, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_shift_scale_time(IntPtr ss, IntPtr start, IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_to_discrete(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_to_linear(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_to_step(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_to_tinstant(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_to_tsequence(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_merge(IntPtr inst1, IntPtr inst2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_merge_array(IntPtr instants, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_append_tinstant(IntPtr seq, IntPtr inst, double maxdist, IntPtr maxt, [MarshalAs(UnmanagedType.U1)] bool expand); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_append_tsequence(IntPtr seq1, IntPtr seq2, [MarshalAs(UnmanagedType.U1)] bool expand); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_delete_timestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_delete_tstzset(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_delete_tstzspan(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_delete_tstzspanset(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_insert(IntPtr seq1, IntPtr seq2, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_merge(IntPtr seq1, IntPtr seq2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_merge_array(IntPtr sequences, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_append_tinstant(IntPtr ss, IntPtr inst, double maxdist, IntPtr maxt, [MarshalAs(UnmanagedType.U1)] bool expand); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_append_tsequence(IntPtr ss, IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool expand); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_delete_timestamptz(IntPtr ss, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_delete_tstzset(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_delete_tstzspan(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_delete_tstzspanset(IntPtr ss, IntPtr ps); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_insert(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_merge(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_merge_array(IntPtr seqsets, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequence_expand_bbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequence_set_bbox(IntPtr seq, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequenceset_expand_bbox(IntPtr ss, IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequenceset_set_bbox(IntPtr ss, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_after_timestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_before_timestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_restrict_minmax(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_after_timestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_before_timestamptz(IntPtr seq, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_restrict_minmax(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_bbox_restrict_set(IntPtr temp, IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_restrict_minmax(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_restrict_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_restrict_tstzset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_restrict_tstzspan(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_restrict_tstzspanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_restrict_value(IntPtr temp, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_restrict_values(IntPtr temp, IntPtr set, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_after_timestamptz(IntPtr inst, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_before_timestamptz(IntPtr inst, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_restrict_tstzspan(IntPtr inst, IntPtr period, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_restrict_tstzspanset(IntPtr inst, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_restrict_timestamptz(IntPtr inst, long t, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_restrict_tstzset(IntPtr inst, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_restrict_value(IntPtr inst, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_restrict_values(IntPtr inst, IntPtr set, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_restrict_span(IntPtr temp, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_restrict_spanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberinst_restrict_span(IntPtr inst, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberinst_restrict_spanset(IntPtr inst, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseqset_restrict_span(IntPtr ss, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseqset_restrict_spanset(IntPtr ss, IntPtr spanset, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_at_timestamptz(IntPtr seq, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_restrict_tstzspan(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_restrict_tstzspanset(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_after_timestamptz(IntPtr ss, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_before_timestamptz(IntPtr ss, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_restrict_minmax(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_restrict_tstzspan(IntPtr ss, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_restrict_tstzspanset(IntPtr ss, IntPtr ps, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_restrict_timestamptz(IntPtr ss, long t, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_restrict_tstzset(IntPtr ss, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_restrict_value(IntPtr ss, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_restrict_values(IntPtr ss, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tinstant_cmp(IntPtr inst1, IntPtr inst2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tinstant_eq(IntPtr inst1, IntPtr inst2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequence_cmp(IntPtr seq1, IntPtr seq2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequence_eq(IntPtr seq1, IntPtr seq2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequenceset_cmp(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequenceset_eq(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ge_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_gt_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_le_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_lt_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ge_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_gt_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_le_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_base_temporal(long value, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_lt_temporal_base(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberinst_abs(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberinst_distance(IntPtr inst1, IntPtr inst2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_abs(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_angular_difference(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_delta_value(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseqset_abs(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseqset_angular_difference(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseqset_delta_value(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tnumber_number(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tbox_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tnumber_number(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberseq_integral(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberseq_twavg(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberseqset_integral(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberseqset_twavg(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_compact(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_compact(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_compact(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_skiplist_make(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr skiplist_make(IntPtr key_size, IntPtr value_size, IntPtr comp_fn, IntPtr merge_fn); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int skiplist_search(IntPtr list, IntPtr key, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void skiplist_free(IntPtr list); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void skiplist_splice(IntPtr list, IntPtr keys, IntPtr values, int count, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings, IntPtr sktype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void temporal_skiplist_splice(IntPtr list, IntPtr values, int count, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr skiplist_values(IntPtr list); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr skiplist_keys_values(IntPtr list, IntPtr values); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_app_tinst_transfn(IntPtr state, IntPtr inst, int interp, double maxdist, IntPtr maxt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_app_tseq_transfn(IntPtr state, IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_bins(IntPtr s, long size, long origin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_bins(IntPtr ss, long size, long origin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_value_bins(IntPtr temp, long size, long origin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_value_time_boxes(IntPtr temp, long vsize, IntPtr duration, long vorigin, long torigin, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_value_split(IntPtr temp, long vsize, long vorigin, IntPtr bins, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_get_value_time_tile(long value, long t, long vsize, IntPtr duration, long vorigin, long torigin, int basetype, int spantype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_value_time_split(IntPtr temp, long size, IntPtr duration, long vorigin, long torigin, IntPtr value_bins, IntPtr time_bins, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string double2_out(IntPtr d, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void double2_set(double a, double b, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr double2_add(IntPtr d1, IntPtr d2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool double2_eq(IntPtr d1, IntPtr d2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string double3_out(IntPtr d, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void double3_set(double a, double b, double c, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr double3_add(IntPtr d1, IntPtr d2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool double3_eq(IntPtr d1, IntPtr d2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string double4_out(IntPtr d, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void double4_set(double a, double b, double c, double d, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr double4_add(IntPtr d1, IntPtr d2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool double4_eq(IntPtr d1, IntPtr d2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool double2_collinear(IntPtr x1, IntPtr x2, IntPtr x3, double ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool double3_collinear(IntPtr x1, IntPtr x2, IntPtr x3, double ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool double4_collinear(IntPtr x1, IntPtr x2, IntPtr x3, double ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr double2segm_interpolate(IntPtr start, IntPtr end, IntPtr ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr double3segm_interpolate(IntPtr start, IntPtr end, IntPtr ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr double4segm_interpolate(IntPtr start, IntPtr end, IntPtr ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int pg_atoi(string s, int size, int c); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_X(int type, short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_Z(int type, short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_T(int type, short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_not_Z(int type, short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_not_null(IntPtr ptr); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_one_not_null(IntPtr ptr1, IntPtr ptr2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_one_true([MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_interp(int temptype, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_continuous(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_interp(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_continuous_interp(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_linear_interp(short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_nonlinear_interp(short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_common_dimension(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_temporal_isof_type(IntPtr temp, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_temporal_isof_basetype(IntPtr temp, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_temporal_isof_subtype(IntPtr temp, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_temporal_type(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnumber_numspan(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnumber_numspanset(IntPtr temp, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnumber_tbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_temporal_set(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_temporal_temporal(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnumber_tnumber(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_not_negative(int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_positive(int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool not_negative_datum(long size, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_not_negative_datum(long size, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool positive_datum(long size, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_positive_datum(long size, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_day_duration(IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool positive_duration(IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_positive_duration(IntPtr duration); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_bbox_ptr(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr mode, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string mobilitydb_version(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string mobilitydb_full_version(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr round_fn(int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool temporal_bbox_restrict_value(IntPtr temp, long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tcbuffer_cbuffer(IntPtr temp, IntPtr cb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tcbuffer_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tcbuffer_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcbuffersegm_intersection_value(long start, long end, long value, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcbuffersegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcbuffersegm_dwithin_turnpt(long start1, long end1, long start2, long end2, long dist, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcbuffersegm_tdwithin_turnpt(long start1, long end1, long start2, long end2, long dist, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcbuffersegm_distance_turnpt(long start1, long end1, long start2, long end2, long dist, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_geo_ctx_make(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tcbuffer_geo_ctx_free(IntPtr ctx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcbuffer_geo_ctx_nsegs(IntPtr ctx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tcbuffer_disc_within_ctx(IntPtr cb, double dist, IntPtr ctx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcbufferseg_within_ctx(IntPtr cb1, IntPtr cb2, double dist, IntPtr ctx, IntPtr outlo, IntPtr outhi, int maxout); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tcbuffer_disc_touch_ctx(IntPtr cb, IntPtr ctx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcbufferseg_touch_roots(IntPtr cb1, IntPtr cb2, IntPtr ctx, IntPtr outt, int maxout); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool cbuffer_set_stbox(IntPtr cb, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void cbufferarr_set_stbox(IntPtr values, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void cbuffer_timestamptz_set_stbox(IntPtr cb, long t, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void cbuffer_tstzspan_set_stbox(IntPtr cb, IntPtr s, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tcbufferinst_set_stbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tcbufferinstarr_set_stbox(IntPtr instants, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tcbufferseq_expand_stbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbufferinst_traversed_area(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbufferseq_traversed_area(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool unary_union); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbufferseqset_traversed_area(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool unary_union); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffersegm_traversed_area(IntPtr inst1, IntPtr inst2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_restrict_cbuffer(IntPtr temp, IntPtr cb, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_restrict_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcbuffer_restrict_geom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_geo_tcbuffer(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_tcbuffer_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_geo_tcbuffer(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_tcbuffer_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_tcbuffer_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_geo_tcbuffer(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_tcbuffer_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_geo_tcbuffer(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_tcbuffer_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_geo_tcbuffer(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_cbuffer_tcbuffer(IntPtr cb, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_dwithin_tcbuffer_tcbuffer(IntPtr temp1, IntPtr temp2, double dist, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinterrel_tcbuffer_cbuffer(IntPtr temp, IntPtr cb, [MarshalAs(UnmanagedType.U1)] bool tinter); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinterrel_tcbuffer_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool tinter); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edisjoint_tcbuffer_geo_native(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eatouches_tcbuffer_geo_native(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr clipper2_clip_poly_poly(IntPtr subj, IntPtr clip, int op); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr clipper2_traj_poly_periods(IntPtr seq, IntPtr gs, IntPtr out_count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr clip_poly_poly(IntPtr subj, IntPtr clip, IntPtr operation); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int lwproj_lookup(int srid_from, int srid_to, IntPtr pj); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spheroid_init_from_srid(int srid, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void srid_check_latlong(int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int srid_is_latlong(int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_serialize(IntPtr lwgeom); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geog_serialize(IntPtr lwgeom); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_postgis_valid_typmod(IntPtr gs, int typmod); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string geo_as_wkt(IntPtr gs, int precision, [MarshalAs(UnmanagedType.U1)] bool extended); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr box2d_to_lwgeom(IntPtr box, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr box3d_to_lwgeom(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr MEOS_POSTGIS2GEOS(IntPtr pglwgeom); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr MEOS_GEOS2POSTGIS(IntPtr geom, byte want3d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_spatialrel(IntPtr gs1, IntPtr gs2, IntPtr rel); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr lwgeom_line_interpolate_point(IntPtr geom, double fraction, int srid, byte repeat); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void point_get_coords(IntPtr point, [MarshalAs(UnmanagedType.U1)] bool hasz, IntPtr x, IntPtr y, IntPtr z); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzset_stbox_slice(long tsdatum, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzspanset_stbox_slice(long psdatum, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_index_leaf_consistent(IntPtr key, IntPtr query, int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_gist_inner_consistent(IntPtr key, IntPtr query, int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_index_recheck(int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stboxnode_copy(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int getQuadrant8D(IntPtr centroid, IntPtr inBox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stboxnode_init(IntPtr centroid, IntPtr nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stboxnode_quadtree_next(IntPtr nodebox, IntPtr centroid, int quadrant, IntPtr next_nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stboxnode_kdtree_next(IntPtr nodebox, IntPtr centroid, int node, int level, IntPtr next_nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlap8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlapKD(IntPtr nodebox, IntPtr query, int level); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contain8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool containKD(IntPtr nodebox, IntPtr query, int level); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overLeft8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overRight8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool below8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overBelow8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool above8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overAbove8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool front8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overFront8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool back8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overBack8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overBefore8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overAfter8D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_stbox_nodebox(IntPtr query, IntPtr nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatial_spgist_get_stbox(long value, int type, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void mobilitydb_init(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_stbox(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_geo(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcomp_geo_tgeo(IntPtr gs, IntPtr temp, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcomp_tgeo_geo(IntPtr temp, IntPtr gs, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_geoaggstate(IntPtr state, int srid, [MarshalAs(UnmanagedType.U1)] bool hasz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_geoaggstate_state(IntPtr state1, IntPtr state2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_transform_tcentroid(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointinst_tcentroid_finalfn(IntPtr instants, int count, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_tcentroid_finalfn(IntPtr sequences, int count, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool point3d_min_dist(IntPtr p1, IntPtr p2, IntPtr p3, IntPtr p4, IntPtr fraction); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tgeompointsegm_distance_turnpt(long start1, long end1, long start2, long end2, long param, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tgeogpointsegm_distance_turnpt(long start1, long end1, long start2, long end2, long param, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tinstant_distance(IntPtr inst1, IntPtr inst2, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_at_geom(IntPtr seq, IntPtr gs, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_interperiods(IntPtr seq, IntPtr gs, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void datum_point4d(long value, IntPtr p); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int geopoint_cmp(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geopoint_eq(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geopoint_same(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datum_point_eq(long point1, long point2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datum_point_same(long point1, long point2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_point_eq(long point1, long point2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_point_ne(long point1, long point2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_point_same(long point1, long point2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_point_nsame(long point1, long point2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_geom_centroid(long geo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_geog_centroid(long geo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_extract_elements(IntPtr gs, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_serialize(IntPtr geom); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_distance_fn(short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pt_distance_fn(short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_distance2d(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_distance3d(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geog_distance(long geog1, long geog2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pt_distance2d(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pt_distance3d(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial short spatial_flags(long d, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_srid_is_latlong(int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_spatial_validity(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_not_geodetic(short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_geodetic(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_geodetic_geo(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_geodetic_tspatial_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_geodetic_tspatial_base(IntPtr temp, long @base); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_srid_known(int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_srid(int srid1, int srid2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_srid_reconcile(int srid1, int srid2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_dimensionality(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_spatial_dimensionality(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_spatial_dimensionality(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_dimensionality_geo(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_dimensionality_tspatial_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_dimensionality_tspatial_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_spatial_dimensionality_stbox_geo(IntPtr box, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_geodetic_stbox_geo(IntPtr box, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_Z_geo(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_not_Z_geo(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_M_geo(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_not_M_geo(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_not_geodetic_geo(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_point_type(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_mline_type(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool circle_type(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_circle_type(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_not_empty(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_stbox_geo(IntPtr box, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tspatial_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tspatial_base(IntPtr temp, long @base); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tspatial_tspatial(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_spatial_stbox_stbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tgeo_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_geo_geo(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tgeo_tgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tpoint_tpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool mline_type(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_get_coord(IntPtr temp, int coord); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eacomp_tgeo_geo(IntPtr temp, IntPtr gs, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr closest_point2d_on_segment_ratio(IntPtr p, IntPtr A, IntPtr B, IntPtr closest); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr closest_point3dz_on_segment_ratio(IntPtr p, IntPtr A, IntPtr B, IntPtr closest); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr closest_point_on_segment_sphere(IntPtr p, IntPtr A, IntPtr B, IntPtr closest, IntPtr dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void interpolate_point4d_spheroid(IntPtr p1, IntPtr p2, IntPtr p, IntPtr s, double f); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geopoint_make(double x, double y, double z, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr lwcircle_make(double x, double y, double radius, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geocircle_make(double x, double y, double radius, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long pointsegm_interpolate(long start, long end, IntPtr ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pointsegm_locate(long start, long end, long point, IntPtr dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tgeompointsegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tgeogpointsegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geopoint_collinear(long value1, long value2, long value3, double ratio, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool geodetic); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr lwpointarr_remove_duplicates(IntPtr points, int count, IntPtr newcount); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr lwpointarr_make_trajectory(IntPtr points, int count, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr lwline_make(long value1, long value2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr lwcoll_from_points_lines(IntPtr points, IntPtr lines, int npoints, int nlines); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tpointseq_stops_iter(IntPtr seq, double maxdist, int mintunits, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_contains(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_covers(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_disjoint2d(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_disjoint3d(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geog_disjoint(long geog1, long geog2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_intersects2d(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_intersects3d(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geog_intersects(long geog1, long geog2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_touches(long geom1, long geom2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_dwithin2d(long geom1, long geom2, long dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_dwithin3d(long geom1, long geom2, long dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geog_dwithin(long geog1, long geog2, long dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geom_relate_pattern(long geog1, long geog2, long p); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_disjoint_fn(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_disjoint_fn_geo(short flags1, IntPtr flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_intersects_fn(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_intersects_fn_geo(short flags1, IntPtr flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_dwithin_fn(short flags1, short flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_dwithin_fn_geo(short flags1, IntPtr flags2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tpointsegm_tdwithin_turnpt(long start1, long end1, long start2, long end2, long value, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spatialrel_geo_geo(IntPtr gs1, IntPtr gs2, long param, IntPtr func, int numparam, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spatialrel_tgeo_tgeo(IntPtr temp1, IntPtr temp2, long param, IntPtr func, int numparam); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_geo_tgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_tgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_tgeo_tgeo(IntPtr temp, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_geo_tgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_tgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_tgeo_tgeo(IntPtr temp, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_geo_tgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_tgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_tgeo_tgeo(IntPtr temp, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_geo_tgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_tgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_tgeo_tgeo(IntPtr temp, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_tpoint_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_tgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_tgeo_tgeo(IntPtr temp, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_dwithin_tgeo_geo(IntPtr temp, IntPtr gs, double dist, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_dwithin_tgeo_tgeo(IntPtr temp1, IntPtr temp2, double dist, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_spatialrel_tspatial_geo(IntPtr temp, IntPtr gs, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool ever, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_spatialrel_tspatial_tspatial(IntPtr temp1, IntPtr temp2, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatialrel_tspatial_base(IntPtr temp, long @base, long param, IntPtr func, int numparam, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatialrel_tspatial_tspatial(IntPtr temp1, IntPtr temp2, long param, IntPtr func, int numparam, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinterrel_tgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool tinter); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinterrel_tspatial_base(IntPtr temp, long @base, [MarshalAs(UnmanagedType.U1)] bool tinter, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinterrel_tspatial_tspatial(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool tinter); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_tspatial_tspatial(IntPtr sync1, IntPtr sync2, long dist, IntPtr func, IntPtr tpfn); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tdwithin_add_solutions(int solutions, long lower, long upper, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc1, long t1, long t2, IntPtr instants, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdwithin_tspatial_spatial(IntPtr temp, long @base, long dist, IntPtr func, IntPtr tpfn); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bitmatrix_make(IntPtr count, int ndims); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tpoint_set_tiles(IntPtr temp, IntPtr state, IntPtr bm); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_at_tile(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stbox_tile_state_set(double x, double y, double z, long t, double xsize, double ysize, double zsize, IntPtr tunits, [MarshalAs(UnmanagedType.U1)] bool hasx, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool hast, int srid, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_tile_state_make(IntPtr temp, IntPtr box, double xsize, double ysize, double zsize, IntPtr duration, int sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stbox_tile_state_next(IntPtr state); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool stbox_tile_state_get(IntPtr state, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_space_time_tile_init(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr ntiles); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_space_time_tile(IntPtr point, long t, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool hasx, [MarshalAs(UnmanagedType.U1)] bool hast); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr create_trip(IntPtr lines, IntPtr maxSpeeds, IntPtr categories, uint noEdges, long startTime, [MarshalAs(UnmanagedType.U1)] bool disturbData, int verbosity); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spatialarr_wkt_out(IntPtr spatialarr, int basetype, int count, int maxdd, [MarshalAs(UnmanagedType.U1)] bool extended); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string spatialbase_as_text(long value, int type, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string spatialbase_as_ewkt(long value, int type, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool point_transf_pj(IntPtr gs, int srid_to, IntPtr pj); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tgeoinst_set_stbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tgeoinstarr_set_stbox(IntPtr instants, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tgeoseq_expand_stbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialinst_set_stbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialinstarr_set_stbox(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialseqarr_set_stbox(IntPtr sequences, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialseq_expand_stbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void spatialarr_set_bbox(IntPtr values, int basetype, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_tspatial_stbox(IntPtr temp, IntPtr box, IntPtr @bool, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_tspatial_tspatial(IntPtr temp1, IntPtr temp2, IntPtr @bool); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool srid_parse(IntPtr str, IntPtr srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spatial_parse_elem(IntPtr str, int temptype, byte delim, IntPtr temp_srid, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geo_parse(IntPtr str, int basetype, byte delim, IntPtr srid, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_parse_dims(IntPtr str, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid, string type_str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr stbox_parse(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_parse(IntPtr str, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatialinst_parse(IntPtr str, int temptype, [MarshalAs(UnmanagedType.U1)] bool end, IntPtr temp_srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatialseq_disc_parse(IntPtr str, int temptype, IntPtr temp_srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatialseq_cont_parse(IntPtr str, int temptype, int interp, [MarshalAs(UnmanagedType.U1)] bool end, IntPtr temp_srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatialseqset_parse(IntPtr str, int temptype, int interp, IntPtr temp_srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tspatial_parse(IntPtr str, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3_are_neighbor_cells_meos(IntPtr origin, IntPtr destination); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cells_to_directed_edge_meos(IntPtr origin, IntPtr destination); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3_is_valid_directed_edge_meos(IntPtr edge); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_get_directed_edge_origin_meos(IntPtr edge); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_get_directed_edge_destination_meos(IntPtr edge); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_parent_meos(IntPtr origin, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_center_child_meos(IntPtr origin, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_child_pos_meos(IntPtr child, int parentRes); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_child_pos_to_cell_meos(IntPtr childPos, IntPtr parent, int childRes); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int h3_get_resolution_meos(IntPtr hex); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int h3_get_base_cell_number_meos(IntPtr hex); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3_is_valid_cell_meos(IntPtr hex); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3_is_res_class_iii_meos(IntPtr hex); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3_is_pentagon_meos(IntPtr hex); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_get_num_cells_meos(int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_grid_distance_meos(IntPtr originIndex, IntPtr h3Index); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_vertex_meos(IntPtr cell, int vertexNum); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3_is_valid_vertex_meos(IntPtr vertex); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3index_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string h3index_out(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3index_eq(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3index_ne(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3index_lt(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3index_le(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3index_gt(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3index_ge(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int h3index_cmp(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int h3index_hash(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_grid_disk(IntPtr origin, int k); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_grid_ring(IntPtr origin, int k); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_grid_path_cells(IntPtr start, IntPtr end); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_children(IntPtr origin, int childRes); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_compact_cells(IntPtr cells); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_uncompact_cells(IntPtr cells, int res); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_origin_to_directed_edges(IntPtr origin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_vertexes(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_get_icosahedron_faces(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ensure_valid_th3index_th3index(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_th3index_h3index(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_th3index_tgeogpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_h3index_eq(long d1, long d2, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_h3index_ne(long d1, long d2, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool h3index_set_stbox(IntPtr cell, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void h3indexarr_set_stbox(IntPtr values, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void th3indexinst_set_stbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void th3indexinstarr_set_stbox(IntPtr instants, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void th3indexseq_expand_stbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_gs_point_to_cell(IntPtr point, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_gs_point(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_gs_boundary(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cell_boundary_to_gs(IntPtr bnd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double h3_sample_step_deg(int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_latlng_deg_to_cell(double lat_deg, double lng_deg, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_parent_next_meos(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_center_child_next_meos(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_directed_edge_to_gs_boundary(IntPtr edge); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_vertex_to_gs_point(IntPtr vertex); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_cell_to_local_ij_meos(IntPtr origin, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_local_ij_to_cell_meos(IntPtr origin, IntPtr coord); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3_unit_from_cstring(string unit); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double h3_cell_area_meos(IntPtr cell, IntPtr unit); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double h3_edge_length_meos(IntPtr edge, IntPtr unit); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double h3_gs_great_circle_distance_meos(IntPtr a, IntPtr b, IntPtr unit); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_get_resolution(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_get_base_cell_number(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_is_valid_cell(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_is_res_class_iii(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_is_pentagon(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_parent(long cell_d, long res_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_parent_next(long cell_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_center_child(long cell_d, long res_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_center_child_next(long cell_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_child_pos(long cell_d, long parent_res_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_child_pos_to_cell(long pos_d, long parent_d, long child_res_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_are_neighbor_cells(long origin_d, long dest_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cells_to_directed_edge(long origin_d, long dest_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_is_valid_directed_edge(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_get_directed_edge_origin(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_get_directed_edge_destination(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_directed_edge_to_boundary(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_vertex(long cell_d, long vnum_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_vertex_to_latlng(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_is_valid_vertex(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_grid_distance(long origin_d, long dest_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_local_ij(long origin_d, long cell_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_local_ij_to_cell(long origin_d, long coord_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_latlng_to_cell(long point_d, long res_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_latlng(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_to_boundary(long d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_cell_area(long cell_d, long unit_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_edge_length(long edge_d, long unit_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_h3_great_circle_distance(long a_d, long b_d, long unit_d); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string json_out(IntPtr js); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_from_text(IntPtr txt, [MarshalAs(UnmanagedType.U1)] bool unique_keys); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string jsonb_out(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_make(IntPtr keys_vals, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_make_two_arg(IntPtr keys, IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_copy(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_make(IntPtr keys_vals, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_make_two_arg(IntPtr keys, IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_to_bool(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string jsonb_to_cstring(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int jsonb_to_float4(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int jsonb_to_float8(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial short jsonb_to_int16(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int jsonb_to_int32(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_to_int64(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int jsonb_to_numeric(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_to_text(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_array_element(IntPtr js, int element); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_array_element_text(IntPtr js, int element); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_array_elements(IntPtr js, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_array_elements_text(IntPtr js, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int json_array_length(IntPtr js); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_each(IntPtr js, IntPtr values, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_each_text(IntPtr js, IntPtr values, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_extract_path(IntPtr js, IntPtr path_elems, int path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_extract_path_text(IntPtr js, IntPtr path_elems, int path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_object_field(IntPtr js, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_object_field_text(IntPtr js, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_object_keys(IntPtr js, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_typeof(IntPtr js); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_array_element(IntPtr jb, int element); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_array_element_text(IntPtr jb, int element); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_array_elements(IntPtr jb, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_array_elements_text(IntPtr jb, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int jsonb_array_length(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_contained(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_contains(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_each(IntPtr jb, IntPtr values, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_each_text(IntPtr jb, IntPtr values, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_exists(IntPtr jb, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_exists_array(IntPtr jb, IntPtr keys_elems, int keys_len, [MarshalAs(UnmanagedType.U1)] bool any); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_extract_path(IntPtr jb, IntPtr path_elems, int path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_extract_path_text(IntPtr jb, IntPtr path_elems, int path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int jsonb_hash(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_hash_extended(IntPtr jb, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_object_field(IntPtr jb, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_object_field_text(IntPtr jb, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_object_keys(IntPtr jb, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr json_strip_nulls(IntPtr js, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_concat(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_delete(IntPtr jb, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_delete_array(IntPtr jb, IntPtr keys_elems, int keys_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_delete_index(IntPtr jb, int idx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_delete_path(IntPtr jb, IntPtr path_elems, int path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_insert(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool after); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_pretty(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_set(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_set_lax(IntPtr jb, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create, IntPtr handle_null); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_strip_nulls(IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int jsonb_cmp(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_eq(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_ge(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_gt(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_le(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_lt(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_ne(IntPtr jb1, IntPtr jb2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int jsonb_path_exists(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonb_path_match(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_path_query_all(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_path_query_array(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_path_query_first(IntPtr jb, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonpath_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonpath_copy(IntPtr jp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string jsonpath_out(IntPtr jp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string jsonbset_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_to_set(IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool jsonbset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr concat_jsonbset_jsonb(IntPtr s, IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_array_length(IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_object_field(IntPtr set, IntPtr key, [MarshalAs(UnmanagedType.U1)] bool astext, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_array_element(IntPtr set, int idx, [MarshalAs(UnmanagedType.U1)] bool astext, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_delete_index(IntPtr set, int idx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_delete(IntPtr set, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_delete_array(IntPtr set, IntPtr keys, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_exists(IntPtr set, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_exists_array(IntPtr set, IntPtr keys, int count, [MarshalAs(UnmanagedType.U1)] bool any); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_set(IntPtr set, IntPtr keys, int count, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create, IntPtr null_handle, [MarshalAs(UnmanagedType.U1)] bool lax); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_to_alphanumset(IntPtr set, string key, int settype, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_to_intset(IntPtr set, string key, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_to_floatset(IntPtr set, string key, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_to_textset_key(IntPtr set, string key, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_strip_nulls(IntPtr set, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_pretty(IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_delete_path(IntPtr set, IntPtr path_elems, int path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_extract_path(IntPtr set, IntPtr path_elems, int path_len, [MarshalAs(UnmanagedType.U1)] bool astext, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_insert(IntPtr set, IntPtr path_elems, int path_len, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool after); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_path_exists(IntPtr set, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_path_match(IntPtr set, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_path_query_array(IntPtr set, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbset_path_query_first(IntPtr set, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_jsonb_set(IntPtr jb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_jsonb(IntPtr s, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_jsonb_set(IntPtr jb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_jsonb(IntPtr s, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonb_union_transfn(IntPtr state, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_jsonb_set(IntPtr jb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_jsonb(IntPtr s, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_jsonb_set(IntPtr jb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_jsonb(IntPtr s, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tjsonb_out(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbinst_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbseq_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbseqset_from_mfjson(IntPtr mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_from_base_temp(IntPtr jsonb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbinst_make(IntPtr jsonb, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbseq_from_base_tstzset(IntPtr jsonb, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbseq_from_base_tstzspan(IntPtr jsonb, IntPtr sp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonbseqset_from_base_tstzspanset(IntPtr jsonb, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_to_ttext(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ttext_to_tjsonb(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tjsonb_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tjsonb_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr concat_tjsonb_jsonb(IntPtr temp, IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr concat_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr contains_tjsonb_jsonb(IntPtr temp, IntPtr jb, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr contains_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr null_handle_type_from_string(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjson_array_element(IntPtr temp, int idx, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjson_array_length(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjson_extract_path(IntPtr temp, IntPtr path_elems, int path_len, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjson_object_field(IntPtr temp, IntPtr key, [MarshalAs(UnmanagedType.U1)] bool astext, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjson_strip_nulls(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_array_element(IntPtr temp, int idx, [MarshalAs(UnmanagedType.U1)] bool astext, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_array_length(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_delete(IntPtr temp, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_delete_array(IntPtr temp, IntPtr keys, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_delete_index(IntPtr temp, int idx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_delete_path(IntPtr temp, IntPtr path_elems, int path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_exists(IntPtr temp, IntPtr key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_exists_array(IntPtr temp, IntPtr keys, int count, [MarshalAs(UnmanagedType.U1)] bool any); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_extract_path(IntPtr temp, IntPtr path_elems, int path_len, [MarshalAs(UnmanagedType.U1)] bool astext, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_insert(IntPtr temp, IntPtr keys, int count, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool after); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_object_field(IntPtr temp, IntPtr key, [MarshalAs(UnmanagedType.U1)] bool astext, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_path_exists(IntPtr temp, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_path_match(IntPtr temp, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_path_query_array(IntPtr temp, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_path_query_first(IntPtr temp, IntPtr jp, IntPtr vars, [MarshalAs(UnmanagedType.U1)] bool silent, [MarshalAs(UnmanagedType.U1)] bool tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_pretty(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_set(IntPtr temp, IntPtr keys, int count, IntPtr newjb, [MarshalAs(UnmanagedType.U1)] bool create, IntPtr handle_null, [MarshalAs(UnmanagedType.U1)] bool lax); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_strip_nulls(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool strip_in_arrays); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_to_tbool(IntPtr temp, string key, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_to_tfloat(IntPtr temp, string key, int interp, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_to_tint(IntPtr temp, string key, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_to_ttext_key(IntPtr temp, string key, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_at_value(IntPtr temp, IntPtr jsb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_minus_value(IntPtr temp, IntPtr jsb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_jsonb_tjsonb(IntPtr jb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tjsonb_jsonb(IntPtr temp, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_jsonb_tjsonb(IntPtr jb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tjsonb_jsonb(IntPtr temp, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_jsonb_tjsonb(IntPtr jb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tjsonb_jsonb(IntPtr temp, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_jsonb_tjsonb(IntPtr jb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tjsonb_jsonb(IntPtr temp, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tjsonb_tjsonb(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_jsonb_tjsonb(IntPtr jb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tjsonb_jsonb(IntPtr temp, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_jsonb_tjsonb(IntPtr jb, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tjsonb_jsonb(IntPtr temp, IntPtr jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr setPath(IntPtr it, IntPtr path_elems, IntPtr path_nulls, int path_len, IntPtr st, int level, IntPtr newval, int op_type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void setPathObject(IntPtr it, IntPtr path_elems, IntPtr path_nulls, int path_len, IntPtr st, int level, IntPtr newval, uint npairs, int op_type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void setPathArray(IntPtr it, IntPtr path_elems, IntPtr path_nulls, int path_len, IntPtr st, int level, IntPtr newval, uint nelems, int op_type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_concat(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_contained(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_contains(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_delete(long jb, long key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_delete_array(long jb, long array, long count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_delete_index(long jb, long idx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_json_array_element(long txt, long element); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_array_element(long jb, long element); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_json_array_element_text(long txt, long element); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_array_element_text(long jb, long element); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_exists(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_exists_array(long value, long array, long count, long any); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_json_array_length(long txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_array_length(long txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_json_object_field(long txt, long key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_object_field(long jb, long key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_json_object_field_text(long txt, long key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_object_field_text(long jb, long key); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_json_strip_nulls(long txt, long strip_in_arrays); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_strip_nulls(long jb, long strip_in_arrays); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_pretty(long jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_json_extract_path(long txt, long path_elems, long path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_extract_path(long jb, long path_elems, long path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_json_extract_path_text(long txt, long path_elems, long path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_extract_path_text(long jb, long path_elems, long path_len); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_set(long jb, long keys, long count, long newjb, long create); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_set_lax(long jb, long keys, long count, long newjb, long create, long null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_delete_path(long jb, long keys, long count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_insert(long jb, long keys, long count, long newjb, long after); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_path_exists(long jb, long jp, long vars, long silent, long tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_path_match(long jb, long jp, long vars, long silent, long tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_path_query_array(long jb, long jp, long vars, long silent, long tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_path_query_first(long jb, long jp, long vars, long silent, long tz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_to_text(long jb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_text_to_jsonb(long txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_jsonb_to_alphanum(long jb, long key, long temptype, long null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tjsonb_to_talphanum(IntPtr temp, string key, int resbasetype, int interp, IntPtr null_handle); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbfunc_jsonbset(IntPtr s, int func, int intype, int restype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbfunc_jsonbset_jsonb(IntPtr s, IntPtr jb, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr jsonbfunc_jsonbset_text(IntPtr s, IntPtr txt, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3index_from_wkb(IntPtr wkb, IntPtr size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3index_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr h3index_as_wkb(IntPtr cell, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string h3index_as_hexwkb(IntPtr cell, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3indexinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3indexseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3indexseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_make(IntPtr value, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3indexinst_make(IntPtr value, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3indexseq_make(IntPtr values, IntPtr times, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3indexseqset_make(IntPtr sequences, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool th3index_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool th3index_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_to_th3index(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_to_tbigint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_h3index_th3index(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_th3index_h3index(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_h3index_th3index(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_th3index_h3index(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_h3index_th3index(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_th3index_h3index(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_h3index_th3index(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_th3index_h3index(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_th3index_th3index(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_th3index_th3index(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_th3index_th3index(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_th3index_th3index(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_h3index_th3index(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_th3index_h3index(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_th3index_th3index(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_h3index_th3index(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_th3index_h3index(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_th3index_th3index(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_get_resolution(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_get_base_cell_number(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_is_valid_cell(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_is_res_class_iii(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_is_pentagon(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_to_parent(IntPtr temp, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_to_parent_next(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_to_center_child(IntPtr temp, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_to_center_child_next(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_to_child_pos(IntPtr temp, int parent_res); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_child_pos_to_cell(IntPtr child_pos, IntPtr parent, int child_res); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpoint_to_th3index(IntPtr temp, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompoint_to_th3index(IntPtr temp, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_to_tgeogpoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_to_tgeompoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_to_boundary(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_to_h3index_set(IntPtr gs, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_h3indexset_th3index(IntPtr cells, IntPtr th3idx); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_are_neighbor_cells(IntPtr origin, IntPtr dest); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cells_to_directed_edge(IntPtr origin, IntPtr dest); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_is_valid_directed_edge(IntPtr edge); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_get_directed_edge_origin(IntPtr edge); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_get_directed_edge_destination(IntPtr edge); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_directed_edge_to_boundary(IntPtr edge); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_to_vertex(IntPtr temp, int vertex_num); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_vertex_to_latlng(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_is_valid_vertex(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_grid_distance(IntPtr origin, IntPtr dest); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_to_local_ij(IntPtr origin, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_local_ij_to_cell(IntPtr origin, IntPtr coord); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_cell_area(IntPtr temp, string unit); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr th3index_edge_length(IntPtr temp, string unit); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpoint_great_circle_distance(IntPtr a, IntPtr b, string unit); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr proj_get_context(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geos_get_context(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_geo_round(long value, long size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr point_round(IntPtr gs, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stbox_set([MarshalAs(UnmanagedType.U1)] bool hasx, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr s, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void gbox_set_stbox(IntPtr box, int srid, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geo_set_stbox(IntPtr gs, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void geoarr_set_stbox(IntPtr values, int count, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spatial_set_stbox(long d, int basetype, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void spatialset_set_stbox(IntPtr set, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stbox_set_box3d(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stbox_set_gbox(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzset_set_stbox(IntPtr s, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzspan_set_stbox(IntPtr s, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzspanset_set_stbox(IntPtr s, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void stbox_expand(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool inter_stbox_stbox(IntPtr box1, IntPtr box2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpointinst_from_mfjson(IntPtr mfjson, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpointinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpointseq_from_mfjson(IntPtr mfjson, int srid, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpointseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpointseqset_from_mfjson(IntPtr mfjson, int srid, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeogpointseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointinst_from_mfjson(IntPtr mfjson, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointseq_from_mfjson(IntPtr mfjson, int srid, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointseqset_from_mfjson(IntPtr mfjson, int srid, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeographyinst_from_mfjson(IntPtr mfjson, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeographyinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeographyseq_from_mfjson(IntPtr mfjson, int srid, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeographyseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeographyseqset_from_mfjson(IntPtr mfjson, int srid, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeographyseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometryinst_from_mfjson(IntPtr mfjson, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometryinst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometryseq_from_mfjson(IntPtr mfjson, int srid, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometryseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometryseqset_from_mfjson(IntPtr mfjson, int srid, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeometryseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatial_set_stbox(IntPtr temp, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialseq_set_stbox(IntPtr seq, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialseqset_set_stbox(IntPtr ss, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_restrict_elevation(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_restrict_geom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_restrict_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoinst_restrict_geom(IntPtr inst, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoinst_restrict_stbox(IntPtr inst, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseq_restrict_geom(IntPtr seq, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseq_restrict_stbox(IntPtr seq, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseqset_restrict_geom(IntPtr ss, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseqset_restrict_stbox(IntPtr ss, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_linear_inter_geom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool clip); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_linear_dwithin_geom(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_linear_distance_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpoint_linear_restrict_geom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool geom_clip_supported(IntPtr geom); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spatial_srid(long d, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spatial_set_srid(long d, int basetype, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tspatialinst_srid(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_azimuth(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_cumulative_length(IntPtr seq, double prevlength); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpointseq_is_simple(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tpointseq_length(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_linear_trajectory(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool unary_union); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseq_stboxes(IntPtr seq, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseq_split_n_stboxes(IntPtr seq, int max_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseqset_azimuth(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseqset_cumulative_length(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpointseqset_is_simple(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tpointseqset_length(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseqset_stboxes(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeoseqset_split_n_stboxes(IntPtr ss, int max_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeominst_tgeoginst(IntPtr inst, [MarshalAs(UnmanagedType.U1)] bool oper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeomseq_tgeogseq(IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool oper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeomseqset_tgeogseqset(IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool oper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeom_tgeog(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool oper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeo_tpoint(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool oper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialinst_set_srid(IntPtr inst, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_make_simple(IntPtr seq, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialseq_set_srid(IntPtr seq, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseqset_make_simple(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tspatialseqset_set_srid(IntPtr ss, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseq_twcentroid(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointseqset_twcentroid(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string npoint_as_ewkt(IntPtr np, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string npoint_as_hexwkb(IntPtr np, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string npoint_as_text(IntPtr np, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_as_wkb(IntPtr np, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_from_wkb(IntPtr wkb, IntPtr size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string npoint_out(IntPtr np, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegment_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string nsegment_out(IntPtr ns, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_make(IntPtr rid, double pos); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegment_make(IntPtr rid, double pos1, double pos2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geompoint_to_npoint(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_to_nsegment(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_to_geompoint(IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_to_nsegment(IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_to_stbox(IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegment_to_geom(IntPtr ns); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegment_to_stbox(IntPtr ns); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int npoint_hash(IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_hash_extended(IntPtr np, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double npoint_position(IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_route(IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nsegment_end_position(IntPtr ns); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegment_route(IntPtr ns); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nsegment_start_position(IntPtr ns); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool route_exists(IntPtr rid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr route_geom(IntPtr rid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double route_length(IntPtr rid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_round(IntPtr np, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegment_round(IntPtr ns, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int get_srid_ways(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int npoint_srid(IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int nsegment_srid(IntPtr ns); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_timestamptz_to_stbox(IntPtr np, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_tstzspan_to_stbox(IntPtr np, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int npoint_cmp(IntPtr np1, IntPtr np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_eq(IntPtr np1, IntPtr np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_ge(IntPtr np1, IntPtr np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_gt(IntPtr np1, IntPtr np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_le(IntPtr np1, IntPtr np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_lt(IntPtr np1, IntPtr np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_ne(IntPtr np1, IntPtr np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_same(IntPtr np1, IntPtr np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int nsegment_cmp(IntPtr ns1, IntPtr ns2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool nsegment_eq(IntPtr ns1, IntPtr ns2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool nsegment_ge(IntPtr ns1, IntPtr ns2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool nsegment_gt(IntPtr ns1, IntPtr ns2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool nsegment_le(IntPtr ns1, IntPtr ns2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool nsegment_lt(IntPtr ns1, IntPtr ns2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool nsegment_ne(IntPtr ns1, IntPtr ns2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string npointset_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_to_set(IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointset_routes(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npointset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_npoint_set(IntPtr np, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_npoint(IntPtr s, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_npoint_set(IntPtr np, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_npoint(IntPtr s, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_npoint_set(IntPtr np, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_npoint(IntPtr s, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_union_transfn(IntPtr state, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_npoint_set(IntPtr np, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_npoint(IntPtr s, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_from_mfjson(string mfjson); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tnpoint_out(IntPtr temp, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointinst_make(IntPtr np, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_from_base_temp(IntPtr np, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseq_from_base_tstzset(IntPtr np, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseq_from_base_tstzspan(IntPtr np, IntPtr s, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseqset_from_base_tstzspanset(IntPtr np, IntPtr ss, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompoint_to_tnpoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_to_tgeompoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_cumulative_length(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnpoint_length(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_positions(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_route(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_routes(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_speed(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_trajectory(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tnpoint_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tnpoint_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_twcentroid(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_at_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_at_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_at_npointset(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_at_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_minus_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_minus_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_minus_npointset(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_minus_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tnpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tnpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tnpoint_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tnpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tnpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_tcentroid_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_npoint_tnpoint(IntPtr np, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_npoint_tnpoint(IntPtr np, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_npoint_tnpoint(IntPtr np, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_npoint_tnpoint(IntPtr np, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpoint_hex_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pcpoint_hex_out(IntPtr pt, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpoint_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pcpoint_as_hexwkb(IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpoint_copy(IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial uint pcpoint_get_pcid(IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int pcpoint_hash(IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpoint_hash_extended(IntPtr pt, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_get_x(IntPtr pt, IntPtr schema, IntPtr @out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_get_y(IntPtr pt, IntPtr schema, IntPtr @out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_get_z(IntPtr pt, IntPtr schema, IntPtr @out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_get_dim(IntPtr pt, IntPtr schema, string name, IntPtr @out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpoint_to_tpcbox(IntPtr pt, IntPtr schema); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_pc_schema(uint pcid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_pc_schema_register(uint pcid, IntPtr schema); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_pc_schema_register_xml(uint pcid, IntPtr schema, string xml_text); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string meos_pc_schema_xml(uint pcid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void meos_pc_schema_clear(); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int pcpoint_cmp(IntPtr pt1, IntPtr pt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_eq(IntPtr pt1, IntPtr pt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_ne(IntPtr pt1, IntPtr pt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_lt(IntPtr pt1, IntPtr pt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_le(IntPtr pt1, IntPtr pt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_gt(IntPtr pt1, IntPtr pt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_ge(IntPtr pt1, IntPtr pt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_hex_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pcpatch_hex_out(IntPtr pa, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pcpatch_as_hexwkb(IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_copy(IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial uint pcpatch_get_pcid(IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial uint pcpatch_npoints(IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int pcpatch_hash(IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_hash_extended(IntPtr pa, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int pcpatch_cmp(IntPtr pa1, IntPtr pa2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpatch_eq(IntPtr pa1, IntPtr pa2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpatch_ne(IntPtr pa1, IntPtr pa2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpatch_lt(IntPtr pa1, IntPtr pa2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpatch_le(IntPtr pa1, IntPtr pa2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpatch_gt(IntPtr pa1, IntPtr pa2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpatch_ge(IntPtr pa1, IntPtr pa2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpointset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pcpointset_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpointset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpoint_to_set(IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpointset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpointset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpointset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpointset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_pcpoint(IntPtr s, IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_pcpoint_set(IntPtr pt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_pcpoint_set(IntPtr pt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_pcpoint(IntPtr s, IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_pcpoint_set(IntPtr pt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_pcpoint(IntPtr s, IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_pcpoint_set(IntPtr pt, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_pcpoint(IntPtr s, IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpoint_union_transfn(IntPtr state, IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatchset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pcpatchset_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatchset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_to_set(IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatchset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatchset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpatchset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatchset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_pcpatch(IntPtr s, IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_pcpatch_set(IntPtr pa, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_pcpatch_set(IntPtr pa, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_pcpatch(IntPtr s, IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_pcpatch_set(IntPtr pa, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_pcpatch(IntPtr s, IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_pcpatch_set(IntPtr pa, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_pcpatch(IntPtr s, IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_union_transfn(IntPtr state, IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpcbox_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tpcbox_out(IntPtr box, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpcbox_make([MarshalAs(UnmanagedType.U1)] bool hasx, [MarshalAs(UnmanagedType.U1)] bool hasz, [MarshalAs(UnmanagedType.U1)] bool hast, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid, uint pcid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, IntPtr period); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpcbox_copy(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_to_tpcbox(IntPtr pa, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_hasx(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_hasz(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_hast(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_geodetic(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_xmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_xmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_ymin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_ymax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_zmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_zmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_tmin(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_tmin_inc(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_tmax(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_tmax_inc(IntPtr box, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tpcbox_srid(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial uint tpcbox_pcid(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpcbox_to_stbox(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tpcbox_expand(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpcbox_round(IntPtr box, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpcbox_set_srid(IntPtr box, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_tpcbox_tpcbox(IntPtr box1, IntPtr box2, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool inter_tpcbox_tpcbox(IntPtr box1, IntPtr box2, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tpcbox_cmp(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_eq(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_ne(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_lt(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_le(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_gt(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_ge(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overleft_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overright_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool below_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbelow_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool above_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overabove_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool front_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overfront_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool back_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overback_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overbefore_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overafter_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_pcid_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpointcloudinst_make(IntPtr pt, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool eintersects_tpcpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tpcpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pose_as_ewkt(IntPtr pose, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pose_as_hexwkb(IntPtr pose, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pose_as_text(IntPtr pose, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_as_wkb(IntPtr pose, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_from_wkb(IntPtr wkb, IntPtr size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pose_out(IntPtr pose, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_from_geopose(string json); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pose_as_geopose(IntPtr pose, int conformance, int precision); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_from_geopose(string json); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tpose_as_geopose(IntPtr temp, int conformance, int precision); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_apply_geo(IntPtr pose, IntPtr body); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_apply_geo(IntPtr temp, IntPtr body); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_copy(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_make_2d(double x, double y, double theta, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_make_3d(double x, double y, double z, double W, double X, double Y, double Z, [MarshalAs(UnmanagedType.U1)] bool geodetic, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_make_point2d(IntPtr gs, double theta); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_make_point3d(IntPtr gs, double W, double X, double Y, double Z); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_to_point(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_to_stbox(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int pose_hash(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_hash_extended(IntPtr pose, IntPtr seed); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_orientation(IntPtr pose, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double pose_rotation(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double pose_yaw(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double pose_pitch(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double pose_roll(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double pose_angular_distance(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_normalize(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_round(IntPtr pose, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr posearr_round(IntPtr posearr, int count, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void pose_set_srid(IntPtr pose, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int pose_srid(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_transform(IntPtr pose, int srid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_transform_pipeline(IntPtr pose, string pipelinestr, int srid, [MarshalAs(UnmanagedType.U1)] bool is_forward); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_tstzspan_to_stbox(IntPtr pose, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_timestamptz_to_stbox(IntPtr pose, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_pose_geo(IntPtr pose, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_pose_pose(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_pose_stbox(IntPtr pose, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int pose_cmp(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_eq(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_ge(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_gt(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_le(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_lt(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_ne(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_nsame(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_same(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr poseset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string poseset_out(IntPtr s, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr poseset_make(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_to_set(IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr poseset_end_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr poseset_start_value(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool poseset_value_n(IntPtr s, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr poseset_values(IntPtr s, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_pose_set(IntPtr pose, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_set_pose(IntPtr s, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_pose_set(IntPtr pose, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr intersection_set_pose(IntPtr s, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_pose_set(IntPtr pose, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr minus_set_pose(IntPtr s, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_union_transfn(IntPtr state, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_pose_set(IntPtr pose, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr union_set_pose(IntPtr s, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_from_mfjson(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tposeinst_make(IntPtr pose, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_from_base_temp(IntPtr pose, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tposeseq_from_base_tstzset(IntPtr pose, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tposeseq_from_base_tstzspan(IntPtr pose, IntPtr s, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tposeseqset_from_base_tstzspanset(IntPtr pose, IntPtr ss, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_make(IntPtr tpoint, IntPtr tradius); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_to_tpoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_points(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_rotation(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_yaw(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_pitch(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_roll(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_speed(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_angular_speed(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_trajectory(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpose_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpose_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_at_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_at_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_at_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_minus_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_minus_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_minus_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tpose_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tpose_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tpose_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tpose_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tpose_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_pose_tpose(IntPtr pose, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_pose_tpose(IntPtr pose, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_pose_tpose(IntPtr pose, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_pose_tpose(IntPtr pose, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_pose_tpose(IntPtr pose, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_pose_tpose(IntPtr pose, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_is_valid_index(IntPtr index); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_is_valid_cell(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_tile_to_cell(uint x, uint y, uint z); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void quadbin_cell_to_tile(IntPtr cell, IntPtr x, IntPtr y, IntPtr z); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial uint quadbin_get_resolution(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_cell_to_parent(IntPtr cell, uint parent_resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_cell_to_children(IntPtr cell, uint children_resolution, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_cell_sibling(IntPtr cell, string direction); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_k_ring(IntPtr cell, int k, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_point_to_cell(double longitude, double latitude, uint resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void quadbin_cell_to_point(IntPtr cell, IntPtr longitude, IntPtr latitude); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void quadbin_cell_to_bounding_box(IntPtr cell, IntPtr xmin, IntPtr ymin, IntPtr xmax, IntPtr ymax); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double quadbin_cell_area(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string quadbin_index_to_string(IntPtr index); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_string_to_index(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string quadbin_cell_to_quadkey(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_parse(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_eq(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_ne(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_lt(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_le(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_gt(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_ge(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int quadbin_cmp(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial uint quadbin_hash(IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_grid_disk(IntPtr origin, int k); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr quadbin_cell_to_children_set(IntPtr origin, int children_resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbin_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbininst_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbinseq_in(string str, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbinseqset_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbin_make(IntPtr value, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbininst_make(IntPtr value, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbinseq_make(IntPtr values, IntPtr times, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbinseqset_make(IntPtr sequences, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbin_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbin_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tquadbin_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbin_values(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tquadbin_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbigint_to_tquadbin(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbin_to_tbigint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_quadbin_tquadbin(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tquadbin_quadbin(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_quadbin_tquadbin(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tquadbin_quadbin(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_quadbin_tquadbin(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tquadbin_quadbin(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_quadbin_tquadbin(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tquadbin_quadbin(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_quadbin_tquadbin(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tquadbin_quadbin(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_quadbin_tquadbin(IntPtr cell, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tquadbin_quadbin(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tquadbin_cell_to_quadkey(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string raquet_out(IntPtr rq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_from_wkb(IntPtr wkb, IntPtr size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_from_hexwkb(string hexwkb); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_as_wkb(IntPtr rq, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string raquet_as_hexwkb(IntPtr rq, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_make(IntPtr quadbin, IntPtr width, IntPtr height, IntPtr pixtype, double nodata, [MarshalAs(UnmanagedType.U1)] bool has_nodata, IntPtr pixels); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_copy(IntPtr rq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_read(string path, IntPtr quadbin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_read_bytes(IntPtr data, IntPtr size, IntPtr quadbin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raquet_quadbin(IntPtr rq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int raquet_width(IntPtr rq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int raquet_height(IntPtr rq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double raquet_nodata(IntPtr rq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int raquet_cmp(IntPtr rq1, IntPtr rq2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool raquet_eq(IntPtr rq1, IntPtr rq2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raster_tile_value_quadbin(IntPtr pixels, IntPtr width, IntPtr height, IntPtr quadbin, IntPtr pixtype, double nodata, [MarshalAs(UnmanagedType.U1)] bool has_nodata, IntPtr traj); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr raster_tile_value(IntPtr rq, IntPtr traj); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trajectory_quadbins(IntPtr traj, uint zoom, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string trgeometry_out(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometryinst_make(IntPtr geom, IntPtr pose, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_tpose_to_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_to_tpose(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_to_tpoint(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_to_tgeometry(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_end_instant(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_end_sequence(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_end_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_geom(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_instant_n(IntPtr temp, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_instants(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_points(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_rotation(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_segments(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_sequence_n(IntPtr temp, int i); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_sequences(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_start_instant(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_start_sequence(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_start_value(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool trgeometry_value_n(IntPtr temp, int n, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_traversed_area(IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool unary_union); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_centroid(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_convex_hull(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_body_point_trajectory(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_space_boxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr sorigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_space_time_boxes(IntPtr temp, double xsize, double ysize, double zsize, IntPtr duration, IntPtr sorigin, long torigin, [MarshalAs(UnmanagedType.U1)] bool bitmatrix, [MarshalAs(UnmanagedType.U1)] bool border_inc, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_stboxes(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_split_n_stboxes(IntPtr temp, int box_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_split_each_n_stboxes(IntPtr temp, int elem_count, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double trgeometry_hausdorff_distance(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double trgeometry_frechet_distance(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double trgeometry_dyntimewarp_distance(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_frechet_path(IntPtr temp1, IntPtr temp2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_dyntimewarp_path(IntPtr temp1, IntPtr temp2, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double trgeometry_length(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_cumulative_length(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_speed(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_twcentroid(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_append_tinstant(IntPtr temp, IntPtr inst, int interp, double maxdist, IntPtr maxt, [MarshalAs(UnmanagedType.U1)] bool expand); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_append_tsequence(IntPtr temp, IntPtr seq, [MarshalAs(UnmanagedType.U1)] bool expand); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_delete_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_delete_tstzset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_delete_tstzspan(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_delete_tstzspanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool connect); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_round(IntPtr temp, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_set_interp(IntPtr temp, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_to_tinstant(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_after_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_before_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_restrict_values(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_restrict_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_restrict_tstzset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_restrict_tstzspan(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_restrict_tstzspanset(IntPtr temp, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_at_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_minus_geom(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_at_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_minus_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_trgeometry_tpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdistance_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_stbox_trgeometry(IntPtr box, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_trgeometry_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_trgeometry_tpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_trgeometry_tpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nai_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_trgeometry_tpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr shortestline_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_eq_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int always_ne_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_eq_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ever_ne_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr teq_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tne_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int econtains_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acontains_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_geo_trgeometry(IntPtr gs, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ecovers_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int acovers_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edisjoint_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adisjoint_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eintersects_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int aintersects_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int etouches_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int atouches_trgeometry_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edwithin_trgeometry_geo(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adwithin_trgeometry_geo(IntPtr temp, IntPtr gs, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edisjoint_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adisjoint_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eintersects_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int aintersects_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int edwithin_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int adwithin_trgeometry_trgeometry(IntPtr temp1, IntPtr temp2, double dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnpoint_npointset(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnpoint_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnpoint_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tnpointsegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool common_rid_tnpoint_npoint(IntPtr temp, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool common_rid_tnpoint_npointset(IntPtr temp, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool common_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_collinear(IntPtr np1, IntPtr np2, IntPtr np3, double ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointsegm_interpolate(IntPtr start, IntPtr end, IntPtr ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointsegm_locate(IntPtr start, IntPtr end, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npointarr_geom(IntPtr points, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegmentarr_geom(IntPtr segments, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegmentarr_normalize(IntPtr segments, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string npoint_wkt_out(long value, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void npoint_set(IntPtr rid, double pos, IntPtr np); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void nsegment_set(IntPtr rid, double pos1, double pos2, IntPtr ns); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_npoint_round(long npoint, long size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointinst_tgeompointinst(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseq_tgeompointseq_disc(IntPtr @is); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseq_tgeompointseq_cont(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseqset_tgeompointseqset(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointinst_tnpointinst(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointseq_tnpointseq(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tgeompointseqset_tnpointseqset(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointinst_positions(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseq_positions(IntPtr seq, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseqset_positions(IntPtr ss, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointinst_route(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointinst_routes(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseq_disc_routes(IntPtr @is); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseq_cont_routes(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseqset_routes(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpointseq_linear_positions(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_restrict_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_restrict_npoint(IntPtr temp, IntPtr np, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_restrict_npointset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_set_stbox(IntPtr np, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void npointarr_set_stbox(IntPtr values, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool nsegment_set_stbox(IntPtr ns, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_timestamptz_set_stbox(IntPtr np, long t, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool npoint_tstzspan_set_stbox(IntPtr np, IntPtr s, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnpointinst_set_stbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnpointinstarr_set_stbox(IntPtr inst, int count, int interp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnpointseq_expand_stbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_npoint_distance(long np1, long np2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr npoint_parse(IntPtr str, [MarshalAs(UnmanagedType.U1)] bool end); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr nsegment_parse(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_rid_tnpoint_bigint(IntPtr temp, IntPtr rid, int invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_rid_tnpoint_bigint(IntPtr temp, IntPtr rid, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_rid_tnpoint_bigint(IntPtr temp, IntPtr rid, int invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_rid_tnpoint_bigintset(IntPtr temp, IntPtr s, int invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_rid_tnpoint_bigintset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_rid_tnpoint_bigintset(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_rid_tnpoint_bigintset(IntPtr temp, IntPtr s, int invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_rid_tnpoint_npoint(IntPtr temp, IntPtr np, int invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_rid_npoint_tnpoint(IntPtr temp, IntPtr np, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_rid_tnpoint_npoint(IntPtr temp, IntPtr np, int invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlaps_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contains_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contained_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool same_rid_tnpoint_tnpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_rid_tnpointinst(IntPtr inst1, IntPtr inst2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnpoint_restrict_geom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int meos_pc_schema_get_srid(uint pcid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_pcid_pcpatch(IntPtr pa1, IntPtr pa2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_pcpatchset_pcpatch(IntPtr s, IntPtr pa); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_parse(IntPtr str, [MarshalAs(UnmanagedType.U1)] bool end); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpatch_filter_per_point(IntPtr pa, int pred, IntPtr extra, [MarshalAs(UnmanagedType.U1)] bool keep_when_true); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpatch_any_point_matches(IntPtr pa, int pred, IntPtr extra); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_in_tpcbox(IntPtr pt, IntPtr extra); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pcpoint_intersects_geometry(IntPtr pt, IntPtr extra); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_pcid_pcpoint(IntPtr pt1, IntPtr pt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_pcpointset_pcpoint(IntPtr s, IntPtr pt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pcpoint_parse(IntPtr str, [MarshalAs(UnmanagedType.U1)] bool end); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_pc_point_serialize(IntPtr pcpt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_pc_point_deserialize(IntPtr serpt, IntPtr schema); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial ulong meos_pc_patch_serialized_size(IntPtr patch); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_pc_patch_serialize(IntPtr patch_in, IntPtr userdata); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_pc_patch_serialize_to_uncompressed(IntPtr patch_in); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr meos_pc_patch_deserialize(IntPtr serpatch, IntPtr schema); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tpointcloudinst_set_tpcbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tpointcloudinstarr_set_tpcbox(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tpointcloudseq_expand_tpcbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tpointcloudseqarr_set_tpcbox(IntPtr sequences, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpcbox_extent_transfn(IntPtr state, IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_tpointcloud_tpcbox(IntPtr temp, IntPtr box, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool inverted); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_tpointcloud_tpointcloud(IntPtr temp1, IntPtr temp2, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tpcbox_set_stbox(IntPtr src, IntPtr dst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tpcbox_tpcbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tpointcloud_tpcbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double nad_tpointcloud_tpointcloud(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpcbox_parse(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_index_leaf_consistent(IntPtr key, IntPtr query, int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_gist_inner_consistent(IntPtr key, IntPtr query, int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tpcbox_index_recheck(int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_pose_geo(IntPtr pose, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_pose_stbox(IntPtr pose, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_pose_pose(IntPtr pose1, IntPtr pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_poseset_pose(IntPtr s, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_collinear(IntPtr pose1, IntPtr pose2, IntPtr pose3, double ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr posesegm_interpolate(IntPtr start, IntPtr end, double ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr posesegm_locate(IntPtr start, IntPtr end, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string pose_wkt_out(IntPtr pose, [MarshalAs(UnmanagedType.U1)] bool extended, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr pose_parse(IntPtr str, [MarshalAs(UnmanagedType.U1)] bool end); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pose_point(long pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pose_geopoint(long pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pose_rotation(long pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pose_yaw(long pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pose_pitch(long pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pose_roll(long pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pose_apply_geo(long pose, long body); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_pose_round(long pose, long size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long pose_distance(long pose1, long pose2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_set_stbox(IntPtr pose, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void posearr_set_stbox(IntPtr values, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_timestamptz_set_stbox(IntPtr pose, long t, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool pose_tstzspan_set_stbox(IntPtr pose, IntPtr p, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tpose_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tpose_pose(IntPtr temp, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tpose_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tpose_tpose(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tposesegm_intersection_value(long start, long end, long value, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tposesegm_intersection(long start1, long end1, long start2, long end2, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tposeinst_set_stbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tposeinstarr_set_stbox(IntPtr instants, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tposeseq_expand_stbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_restrict_geom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_restrict_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tpose_restrict_elevation(IntPtr temp, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool bool_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string bool_out([MarshalAs(UnmanagedType.U1)] bool b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string float8_out(double num, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int date_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string date_out(int date); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int interval_cmp(IntPtr interv1, IntPtr interv2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr interval_in(string str, int typmod); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string interval_out(IntPtr interv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long time_in(string str, int typmod); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string time_out(long time); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long timestamp_in(string str, int typmod); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string timestamp_out(long ts); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long timestamptz_in(string str, int typmod); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string timestamptz_out(long tstz); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr cstring_to_text(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string text_to_cstring(IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr text_in(string str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string text_out(IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int text_cmp(IntPtr txt1, IntPtr txt2, uint collid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr text_copy(IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr text_initcap(IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr text_lower(IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr text_upper(IntPtr txt); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textcat_text_text(IntPtr txt1, IntPtr txt2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ensure_valid_tquadbin_tquadbin(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tquadbin_quadbin(IntPtr temp, IntPtr cell); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tquadbin_tgeompoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_quadbin_eq(long d1, long d2, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_quadbin_ne(long d1, long d2, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool quadbin_set_stbox(IntPtr cell, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void quadbinarr_set_stbox(IntPtr values, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tquadbininst_set_stbox(IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tquadbininstarr_set_stbox(IntPtr instants, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tquadbinseq_expand_stbox(IntPtr seq, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int raquet_pixtype_size(IntPtr pixtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int raquet_pixels_size(IntPtr rq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool raster_quadbin_from_bounds(double origin_x, double origin_y, double pixel_w, double pixel_h, int xsize, int ysize, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_has_geom(short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_trgeo_geo(IntPtr temp, IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_trgeo_stbox(IntPtr temp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_trgeo_trgeo(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_trgeo_tpoint(IntPtr temp1, IntPtr temp2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeo_geom_p(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string trgeo_wkt_out(IntPtr temp, int maxdd, [MarshalAs(UnmanagedType.U1)] bool extended); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_tposeinst_to_trgeo(IntPtr gs, IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_tposeseq_to_trgeo(IntPtr gs, IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geo_tposeseqset_to_trgeo(IntPtr gs, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool trgeo_value_at_timestamptz(IntPtr temp, long t, [MarshalAs(UnmanagedType.U1)] bool strict, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeometry_restrict_value(IntPtr temp, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoinst_geom_p(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial ulong trgeoinst_pose_varsize(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void trgeoinst_set_pose(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoinst_tposeinst(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoinst_make1(IntPtr geom, IntPtr pose, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_to_tinstant(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_to_tinstant(IntPtr ts); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeo_restrict_geom(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeo_restrict_stbox(IntPtr temp, IntPtr box, [MarshalAs(UnmanagedType.U1)] bool border_inc, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int spatialrel_trgeo_trav_geo(IntPtr temp, IntPtr gs, long param, IntPtr func, int numparam, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_geo_trgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_trgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_contains_trgeo_trgeo(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_geo_trgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_trgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_covers_trgeo_trgeo(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_geo_trgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_trgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_disjoint_trgeo_trgeo(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_geo_trgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_trgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_intersects_trgeo_trgeo(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_geo_trgeo(IntPtr gs, IntPtr temp, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_trgeo_geo(IntPtr temp, IntPtr gs, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_touches_trgeo_trgeo(IntPtr temp1, IntPtr temp2, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_dwithin_trgeo_geo(IntPtr temp, IntPtr gs, double dist, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ea_dwithin_trgeo_trgeo(IntPtr temp1, IntPtr temp2, double dist, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_geom_p(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial ulong trgeoseq_pose_varsize(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void trgeoseq_set_pose(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_tposeseq(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool trgeoseq_make_valid(IntPtr geom, IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, [MarshalAs(UnmanagedType.U1)] bool linear); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_make1_exp(IntPtr geom, IntPtr instants, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_make1(IntPtr geom, IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_make_exp(IntPtr geom, IntPtr instants, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_make(IntPtr geom, IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_make_free_exp(IntPtr geom, IntPtr instants, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseq_make_free(IntPtr geom, IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoinst_to_tsequence(IntPtr inst, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_geom_p(IntPtr ts); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_tposeseqset(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_make1_exp(IntPtr geom, IntPtr sequences, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_make_exp(IntPtr geom, IntPtr sequences, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_make(IntPtr geom, IntPtr sequences, int count, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_make_free(IntPtr geom, IntPtr sequences, int count, [MarshalAs(UnmanagedType.U1)] bool normalize); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_make_gaps(IntPtr geom, IntPtr instants, int count, int interp, IntPtr maxt, double maxdist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeoseqset_to_tsequence(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeo_to_tsequence(IntPtr temp, string interp_str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeo_to_tsequenceset(IntPtr temp, string interp_str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void trgeoinst_set_stbox(IntPtr geom, IntPtr inst, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void trgeoinstarr_static_stbox(IntPtr geom, IntPtr instants, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void trgeoinstarr_rotating_stbox(IntPtr geom, IntPtr instants, int count, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void trgeoinstarr_compute_bbox(IntPtr geom, IntPtr instants, int count, int interp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_span_isof_type(IntPtr s, int spantype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_span_isof_basetype(IntPtr s, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_span_type(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_span_span(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void span_deserialize(IntPtr s, IntPtr lower, IntPtr upper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_bound_cmp(IntPtr b1, IntPtr b2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_bound_qsort_cmp(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_lower_cmp(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_upper_cmp(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long span_decr_bound(long upper, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long span_incr_bound(long upper, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanarr_normalize(IntPtr spans, int count, [MarshalAs(UnmanagedType.U1)] bool sort, IntPtr newcount); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void span_bounds_shift_scale_value(long shift, long width, int type, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth, IntPtr lower, IntPtr upper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void span_bounds_shift_scale_time(IntPtr shift, IntPtr duration, IntPtr lower, IntPtr upper); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void floatspan_floor_ceil_iter(IntPtr s, int func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void numspan_delta_scale_iter(IntPtr s, long origin, long delta, [MarshalAs(UnmanagedType.U1)] bool hasdelta, double scale); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzspan_delta_scale_iter(IntPtr s, long origin, long delta, double scale); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void numspan_shift_scale_iter(IntPtr s, long shift, long width, [MarshalAs(UnmanagedType.U1)] bool hasshift, [MarshalAs(UnmanagedType.U1)] bool haswidth, IntPtr delta, IntPtr scale); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzspan_shift_scale1(IntPtr s, IntPtr shift, IntPtr duration, IntPtr delta, IntPtr scale); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int mi_span_value(IntPtr s, long value, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double dist_double_value_value(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int trgeo_geom_clip_polygon(IntPtr a1, IntPtr b1, IntPtr a2, IntPtr b2, IntPtr pa, IntPtr intervals_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int trgeo_geom_clip_lwpoly(IntPtr a1, IntPtr b1, IntPtr a2, IntPtr b2, IntPtr poly, IntPtr intervals_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int trgeo_geom_clip_box(IntPtr a1, IntPtr b1, IntPtr a2, IntPtr b2, double xmin, double ymin, double xmax, double ymax, IntPtr intervals_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int trgeo_geom_clip_polygon_posed(IntPtr p_a_local, IntPtr p_b_local, IntPtr pose1, IntPtr pose2, IntPtr pa, IntPtr intervals_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int trgeo_geom_clip_lwpoly_posed(IntPtr p_a_local, IntPtr p_b_local, IntPtr pose1, IntPtr pose2, IntPtr poly, IntPtr intervals_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int trgeo_geom_clip_box_posed(IntPtr p_a_local, IntPtr p_b_local, IntPtr pose1, IntPtr pose2, double xmin, double ymin, double xmax, double ymax, IntPtr intervals_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int trgeo_geom_clip_lwgeom(IntPtr a1, IntPtr b1, IntPtr a2, IntPtr b2, IntPtr geom, IntPtr intervals_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int trgeo_geom_clip_lwgeom_posed(IntPtr p_a_local, IntPtr p_b_local, IntPtr pose1, IntPtr pose2, IntPtr geom, IntPtr intervals_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr trgeo_parse(IntPtr str, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_geom(IntPtr gs1, IntPtr gs2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void lwgeom_apply_pose(IntPtr pose, IntPtr geom); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr geom_apply_pose(IntPtr gs, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double geom_radius(IntPtr gs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int v_clip_tpoly_point(IntPtr poly, IntPtr point, IntPtr pose, IntPtr poly_feature, IntPtr dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int v_clip_tpoly_tpoly(IntPtr poly1, IntPtr poly2, IntPtr pose1, IntPtr pose2, IntPtr poly1_feature, IntPtr poly2_feature, IntPtr dist); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void apply_pose_point4d(IntPtr p, IntPtr pose); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tinstant(IntPtr inst, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tsequence(IntPtr seq, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tsequenceset(IntPtr ss, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_temporal(IntPtr temp, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tinstant_base(IntPtr inst, long value, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tsequence_base(IntPtr seq, long value, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tsequenceset_base(IntPtr ss, long value, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_temporal_base(IntPtr temp, long value, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tinstant_tinstant(IntPtr inst1, IntPtr inst2, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tdiscseq_tdiscseq(IntPtr seq1, IntPtr seq2, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tcontseq_tcontseq(IntPtr seq1, IntPtr seq2, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_tsequenceset_tsequenceset(IntPtr ss1, IntPtr ss2, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tfunc_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eafunc_temporal_base(IntPtr temp, long value, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eafunc_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr lfunc_set(IntPtr set, IntPtr lfinfo); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string set_out_fn(IntPtr s, int maxdd, IntPtr value_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_set_isof_type(IntPtr s, int settype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_set_set(IntPtr s1, IntPtr s2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool set_find_value(IntPtr s, long arg1, IntPtr loc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_unnest_state_make(IntPtr set); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void set_unnest_state_next(IntPtr state); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_skiplist_subtype(IntPtr state, IntPtr subtype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void skiplist_set_extra(IntPtr state, IntPtr data, IntPtr size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr skiplist_headval(IntPtr list); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int common_entry_cmp(IntPtr i1, IntPtr i2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_index_leaf_consistent(IntPtr key, IntPtr query, int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_gist_inner_consistent(IntPtr key, IntPtr query, int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_index_recheck(int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_lower_qsort_cmp(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_upper_qsort_cmp(IntPtr a, IntPtr b); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr getQuadrant2D(IntPtr centroid, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlap2D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contain2D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left2D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overLeft2D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right2D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overRight2D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool adjacent2D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_span_nodespan(IntPtr query, IntPtr nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_spgist_get_span(long value, int type, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void spannode_init(IntPtr nodebox, int spantype, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spannode_copy(IntPtr orig); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void spannode_quadtree_next(IntPtr nodebox, IntPtr centroid, IntPtr quadrant, IntPtr next_nodespan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void spannode_kdtree_next(IntPtr nodebox, IntPtr centroid, IntPtr node, int level, IntPtr next_nodespan); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_spanset_isof_type(IntPtr ss, int spansettype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_spanset_type(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_spanset_span_type(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_spanset_span(IntPtr ss, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_spanset_spanset(IntPtr ss1, IntPtr ss2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool spanset_find_value(IntPtr ss, long v, IntPtr loc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_and(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_or(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr boolop_tbool_bool(IntPtr temp, long b, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr boolop_tbool_tbool(IntPtr temp1, IntPtr temp2, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_same_dimensionality_tbox(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_tbox(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr span_tbox(IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_tstzspan(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_intspan(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_floatspan(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_index_leaf_consistent(IntPtr key, IntPtr query, int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_gist_inner_consistent(IntPtr key, IntPtr query, int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_index_recheck(int strategy); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tboxnode_init(IntPtr centroid, IntPtr nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tboxnode_copy(IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr getQuadrant4D(IntPtr centroid, IntPtr inBox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tboxnode_quadtree_next(IntPtr nodebox, IntPtr centroid, IntPtr quadrant, IntPtr next_nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tboxnode_kdtree_next(IntPtr nodebox, IntPtr centroid, IntPtr node, int level, IntPtr next_nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overlap4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool contain4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool left4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overLeft4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool right4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overRight4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool before4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overBefore4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool after4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool overAfter4D(IntPtr nodebox, IntPtr query); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double distance_tbox_nodebox(IntPtr query, IntPtr nodebox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnumber_spgist_get_tbox(long value, int type, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tbox_xmin_cmp(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tbox_xmax_cmp(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tbox_tmin_cmp(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tbox_tmax_cmp(IntPtr box1, IntPtr box2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tbox_level_cmp(IntPtr centroid, IntPtr query, int level); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tcellindex_type(int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr dggs_cellops(int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcellindex_get_resolution(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcellindex_is_valid_cell(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcellindex_cell_to_parent(IntPtr temp, int resolution); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcellindex_cell_to_point(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcellindex_cell_to_boundary(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcellindex_cell_area(IntPtr temp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_min_int32(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_max_int32(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_min_int64(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_max_int64(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_min_float8(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_max_float8(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_sum_int32(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_sum_int64(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_sum_float8(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_min_text(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_max_text(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_sum_double2(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_sum_double3(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_sum_double4(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int temporal_skiplist_common(IntPtr list, IntPtr values, int count, IntPtr lower, IntPtr upper, IntPtr update); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_skiplist_merge(IntPtr spliced, int spliced_count, IntPtr values, int count, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings, IntPtr newcount, IntPtr tofree, IntPtr nfree); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_tagg(IntPtr instants1, int count1, IntPtr instants2, int count2, IntPtr func, IntPtr newcount, IntPtr tofree, IntPtr nfree); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_tagg(IntPtr sequences1, int count1, IntPtr sequences2, int count2, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings, IntPtr newcount); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_tagg_transfn(IntPtr state, IntPtr seq, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool interpoint); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tagg_combinefn(IntPtr state1, IntPtr state2, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_tagg_transfn(IntPtr state, IntPtr inst, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_tavg_finalfn(IntPtr instants, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_tavg_finalfn(IntPtr sequences, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberinst_transform_tavg(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_transform_tcount(IntPtr temp, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_transform_tagg(IntPtr temp, IntPtr count, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_tagg_transfn(IntPtr state, IntPtr ss, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_tagg_transfn(IntPtr state, IntPtr seq, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tagg_transfn(IntPtr state, IntPtr temp, IntPtr arg2, [MarshalAs(UnmanagedType.U1)] bool crossings); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_tagg_transform_transfn(IntPtr state, IntPtr temp, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool crossings, IntPtr transform); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double temporal_similarity(IntPtr temp1, IntPtr temp2, IntPtr simfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_similarity_path(IntPtr temp1, IntPtr temp2, IntPtr count, IntPtr simfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial ulong temporal_bbox_size(int tempype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tinstarr_set_bbox(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequence_compute_bbox(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tseqarr_compute_bbox(IntPtr sequences, int count, IntPtr bbox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequenceset_compute_bbox(IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_temporal_tstzspan(IntPtr temp, IntPtr s, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_tnumber_numspan(IntPtr temp, IntPtr span, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_tnumber_tbox(IntPtr temp, IntPtr box, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool boxop_tnumber_tnumber(IntPtr temp1, IntPtr temp2, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eacomp_base_temporal(long value, IntPtr temp, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eacomp_temporal_base(IntPtr temp, long value, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int eacomp_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool ever); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcomp_base_temporal(long value, IntPtr temp, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcomp_temporal_base(IntPtr temp, long value, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcomp_temporal_temporal(IntPtr temp1, IntPtr temp2, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_at_timestamptz(IntPtr seq, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_restrict_value(IntPtr seq, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_restrict_values(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_minus_timestamptz(IntPtr seq, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_restrict_tstzset(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_restrict_tstzspanset(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcontseq_restrict_value_iter(IntPtr seq, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_delete_timestamptz(IntPtr seq, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_delete_tstzset(IntPtr seq, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_delete_tstzspanset(IntPtr seq, IntPtr ss); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_at_tstzset(IntPtr seq, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_minus_timestamptz(IntPtr seq, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_minus_tstzset(IntPtr seq, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_minus_tstzspan(IntPtr seq, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_restrict_value(IntPtr seq, long value, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_restrict_values(IntPtr seq, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequence_at_values_iter(IntPtr seq, IntPtr set, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tnumberseq_cont_restrict_span_iter(IntPtr seq, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tnumberseq_cont_restrict_spanset_iter(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsegment_at_timestamptz(IntPtr inst1, IntPtr inst2, int interp, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcontseq_minus_timestamp_iter(IntPtr seq, long t, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcontseq_minus_tstzset_iter(IntPtr seq, IntPtr s, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcontseq_at_tstzspanset1(IntPtr seq, IntPtr ss, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcontseq_minus_tstzspanset_iter(IntPtr seq, IntPtr ss, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_at_tstzspan(IntPtr seq, IntPtr s); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_at_timestamptz(IntPtr seq, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_restrict_tstzspanset(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tdiscseq_value_at_timestamptz(IntPtr seq, long t, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_disc_restrict_span(IntPtr seq, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_disc_restrict_spanset(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_cont_restrict_span(IntPtr seq, IntPtr span, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumberseq_cont_restrict_spanset(IntPtr seq, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberseq_cont_twavg(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int span_num_bins(IntPtr s, long size, long origin, IntPtr start_bin, IntPtr end_bin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_time_bin_init(IntPtr temp, IntPtr duration, long torigin, IntPtr nbins); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_tile_state_make(IntPtr temp, IntPtr box, long vsize, IntPtr duration, long xorigin, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tbox_tile_state_next(IntPtr state); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tbox_tile_state_set(long value, long t, long vsize, long tunits, int basetype, int spantype, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long interval_units(IntPtr interval); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long timestamptz_bin_start(long timestamp, long tunits, long torigin); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_bin(long value, long size, long offset, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_value_time_tile_init(IntPtr temp, long vsize, IntPtr duration, long vorigin, long torigin, IntPtr ntiles); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tbox_tile_state_get(IntPtr state, IntPtr box); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_transform_wcount(IntPtr temp, IntPtr interval, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tnumber_transform_wavg(IntPtr temp, IntPtr interval, IntPtr count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_wagg_transfn(IntPtr state, IntPtr temp, IntPtr interval, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool min, [MarshalAs(UnmanagedType.U1)] bool crossings); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_wagg_transform_transfn(IntPtr state, IntPtr temp, IntPtr interval, IntPtr func, IntPtr transform); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tinstant_set(IntPtr inst, long value, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double tnumberinst_double(IntPtr inst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tinstant_to_string(IntPtr inst, int maxdd, IntPtr value_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tinstant_restrict_values_test(IntPtr inst, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tnumberinst_restrict_span_test(IntPtr inst, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tnumberinst_restrict_spanset_test(IntPtr inst, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tinstant_restrict_tstzset_test(IntPtr inst, IntPtr s, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tinstant_restrict_tstzspanset_test(IntPtr inst, IntPtr ss, [MarshalAs(UnmanagedType.U1)] bool atfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tinstant_tinstant(IntPtr inst1, IntPtr inst2, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void _mulmat(IntPtr a, IntPtr b, IntPtr c, int arows, int acols, int bcols); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void _mulvec(IntPtr a, IntPtr x, IntPtr y, int m, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void _transpose(IntPtr a, IntPtr at, int m, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void _addmat(IntPtr a, IntPtr b, IntPtr c, int m, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void _negate(IntPtr a, int m, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void _addeye(IntPtr a, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int _choldc1(IntPtr a, IntPtr p, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int _choldcsl(IntPtr A, IntPtr a, IntPtr p, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int _cholsl(IntPtr A, IntPtr a, IntPtr p, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void _addvec(IntPtr a, IntPtr b, IntPtr c, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void _sub(IntPtr a, IntPtr b, IntPtr c, int n); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int invert(IntPtr a, IntPtr ainv); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void ekf_initialize(IntPtr ekf, float pdiag); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void ekf_predict(IntPtr ekf, float fx, float F, float Q); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void ekf_update_step3(IntPtr ekf, float GH); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int ekf_update(IntPtr ekf, float z, float hx, float H, float R); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tfloat_arithop_turnpt(long start1, long end1, long start2, long end2, long param, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr arithop_tnumber_number(IntPtr temp, long value, IntPtr oper, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr arithop_tnumber_tnumber(IntPtr temp1, IntPtr temp2, IntPtr oper, IntPtr func, IntPtr tpfunc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool float_collinear(double x1, double x2, double x3, double ratio); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double floatsegm_interpolate(double value1, double value2, IntPtr value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr floatsegm_locate(double value1, double value2, double value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tnumbersegm_intersection(long start1, long end1, long start2, long end2, int basetype, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequence_norm_test(long value1, long value2, long value3, int basetype, int interp, long t1, long t2, long t3); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequence_join_test(IntPtr seq1, IntPtr seq2, IntPtr removelast, IntPtr removefirst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_join(IntPtr seq1, IntPtr seq2, [MarshalAs(UnmanagedType.U1)] bool removelast, [MarshalAs(UnmanagedType.U1)] bool removefirst); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstarr_normalize(IntPtr instants, int interp, int count, IntPtr newcount); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tcontseq_find_timestamptz(IntPtr seq, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tdiscseq_find_timestamptz(IntPtr seq, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tseqarr2_to_tseqarr(IntPtr sequences, IntPtr countseqs, int count, int totalseqs); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tinstarr_common(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequence_make_exp1(IntPtr instants, int count, int maxcount, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp, [MarshalAs(UnmanagedType.U1)] bool normalize, IntPtr bbox); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool synchronize_tsequence_tsequence(IntPtr seq1, IntPtr seq2, IntPtr sync1, IntPtr sync2, [MarshalAs(UnmanagedType.U1)] bool interpoint); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tfloatsegm_intersection_value(long start, long end, long value, long lower, long upper, IntPtr t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsegment_intersection_value(long start, long end, long value, int temptype, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsegment_intersection(long start1, long end1, long start2, long end2, int temptype, long lower, long upper, IntPtr t1, IntPtr t2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long tsegment_value_at_timestamptz(long start, long end, int temptype, long lower, long upper, long t); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tdiscseq_tdiscseq(IntPtr seq1, IntPtr seq2, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tcontseq_tdiscseq(IntPtr seq1, IntPtr seq2, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tdiscseq_tcontseq(IntPtr @is, IntPtr seq2, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tsequence_tinstant(IntPtr seq, IntPtr inst, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tinstant_tsequence(IntPtr inst, IntPtr seq, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tsequence_to_string(IntPtr seq, int maxdd, [MarshalAs(UnmanagedType.U1)] bool component, IntPtr value_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_increasing_timestamps(IntPtr inst1, IntPtr inst2, [MarshalAs(UnmanagedType.U1)] bool strict); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void bbox_expand(IntPtr box1, IntPtr box2, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tinstarr(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool merge, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequence_make_valid(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool lower_inc, [MarshalAs(UnmanagedType.U1)] bool upper_inc, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tnumberseq_shift_scale_value_iter(IntPtr seq, long origin, long delta, [MarshalAs(UnmanagedType.U1)] bool hasdelta, double scale); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tsequence_shift_scale_time_iter(IntPtr seq, long delta, double scale); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tstepseq_to_linear_iter(IntPtr seq, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tstepseq_to_linear(IntPtr seq); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequence_segments_iter(IntPtr seq, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tsequence_timestamps_iter(IntPtr seq, IntPtr times); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool tsequenceset_find_timestamptz(IntPtr ss, long t, IntPtr loc); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tseqarr_normalize(IntPtr sequences, int count, IntPtr newcount); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double datum_distance(long value1, long value2, int basetype, short flags); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr ensure_valid_tinstarr_gaps(IntPtr instants, int count, [MarshalAs(UnmanagedType.U1)] bool merge, double maxdist, IntPtr maxt, IntPtr nsplits); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_valid_tseqarr(IntPtr sequences, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool synchronize_tsequenceset_tsequence(IntPtr ss, IntPtr seq, IntPtr mode, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool synchronize_tsequenceset_tsequenceset(IntPtr ss1, IntPtr ss2, IntPtr mode, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tsequenceset_tinstant(IntPtr ss, IntPtr inst, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tinstant_tsequenceset(IntPtr inst, IntPtr ss, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tsequenceset_tdiscseq(IntPtr ss, IntPtr @is, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tdiscseq_tsequenceset(IntPtr @is, IntPtr ss, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool intersection_tsequence_tsequenceset(IntPtr seq, IntPtr ss, IntPtr mode, IntPtr inter1, IntPtr inter2); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string tsequenceset_to_string(IntPtr ss, int maxdd, IntPtr value_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_textcat(long l, long r); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_lower(long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_upper(long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_initcap(long value); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textfunc_ttext(IntPtr temp, int func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textfunc_ttext_text(IntPtr temp, long value, IntPtr func, [MarshalAs(UnmanagedType.U1)] bool invert); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr textfunc_ttext_ttext(IntPtr temp1, IntPtr temp2, IntPtr func); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr datum_as_wkb(long value, int type, IntPtr variant, IntPtr size_out); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string datum_as_hexwkb(long value, int type, IntPtr variant, IntPtr size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long type_from_wkb(IntPtr wkb, IntPtr size, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long type_from_hexwkb(string hexwkb, IntPtr size, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_end_input(IntPtr str, string type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void p_whitespace(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool p_delimchar(IntPtr str, byte delim); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool p_obrace(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_obrace(IntPtr str, string type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool p_cbrace(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_cbrace(IntPtr str, string type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool p_obracket(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool p_cbracket(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool p_oparen(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_oparen(IntPtr str, string type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool p_cparen(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool ensure_cparen(IntPtr str, string type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool p_comma(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool basetype_parse(IntPtr str, int basetypid, byte delim, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool double_parse(IntPtr str, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool elem_parse(IntPtr str, int basetype, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr set_parse(IntPtr str, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool span_parse(IntPtr str, int spantype, [MarshalAs(UnmanagedType.U1)] bool end, IntPtr span); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr spanset_parse(IntPtr str, int spantype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tbox_parse(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long timestamp_parse(IntPtr str); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tinstant_parse(IntPtr str, int temptype, [MarshalAs(UnmanagedType.U1)] bool end); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tdiscseq_parse(IntPtr str, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tcontseq_parse(IntPtr str, int temptype, int interp, [MarshalAs(UnmanagedType.U1)] bool end); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr tsequenceset_parse(IntPtr str, int temptype, int interp); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr temporal_parse(IntPtr str, int temptype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_copy(long value, int typid); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double datum_double(long d, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long double_datum(double d, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial IntPtr bstring2bytea(IntPtr wkb, IntPtr size); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool basetype_in(string str, int type, [MarshalAs(UnmanagedType.U1)] bool end, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string basetype_out(long value, int type, int maxdd); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void pfree_array(IntPtr array, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool string_escape(string str, int quotes, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial ulong string_unescape(string str, IntPtr result); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial string stringarr_to_string(IntPtr strings, int count, string prefix, byte open, byte close, int quotes, [MarshalAs(UnmanagedType.U1)] bool spaces); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void datumarr_sort(IntPtr values, int count, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tstzarr_sort(IntPtr times, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void spanarr_sort(IntPtr spans, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tinstarr_sort(IntPtr instants, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial void tseqarr_sort(IntPtr sequences, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int datumarr_remove_duplicates(IntPtr values, int count, int basetype); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tstzarr_remove_duplicates(IntPtr values, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int tinstarr_remove_duplicates(IntPtr instants, int count); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_add(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_sub(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_mul(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum_div(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial int datum_cmp(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datum_eq(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datum_ne(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datum_lt(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datum_le(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datum_gt(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - [return: MarshalAs(UnmanagedType.U1)] - public static partial bool datum_ge(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_eq(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_ne(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_lt(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_le(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_gt(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial long datum2_ge(long l, long r, int type); - - [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)] - public static partial double hypot3d(double x, double y, double z); - - } - } -} diff --git a/MEOS.NET/Internal/MEOSSafeExecution.cs b/MEOS.NET/Internal/MEOSSafeExecution.cs deleted file mode 100644 index 396579c..0000000 --- a/MEOS.NET/Internal/MEOSSafeExecution.cs +++ /dev/null @@ -1,23 +0,0 @@ -using MEOS.NET.Errors; - -namespace MEOS.NET.Internal -{ - internal partial class MEOSExposedFunctions - { - internal delegate void ErrorHandlingMethod(int level, int errorCode, string message); - - private static T SafeExecution(Func function) - { - var meosResult = function(); - MEOSErrorHandling.CheckError(); - - return meosResult; - } - - private static void SafeExecution(Action function) - { - function(); - MEOSErrorHandling.CheckError(); - } - } -} diff --git a/MEOS.NET/Lifecycle/MEOSLifecycle.cs b/MEOS.NET/Lifecycle/MEOSLifecycle.cs index 29aa07e..2e4a792 100644 --- a/MEOS.NET/Lifecycle/MEOSLifecycle.cs +++ b/MEOS.NET/Lifecycle/MEOSLifecycle.cs @@ -1,29 +1,29 @@ -using System.Runtime.InteropServices; - -using MEOS.NET.Errors; -using MEOS.NET.Internal; - -namespace MEOS.NET.Lifecycle -{ - public static class MEOSLifecycle - { - // Hold a managed reference to the error-handler delegate for the lifetime - // of the process so the GC does not free it while MEOS holds the - // function pointer. MEOS 1.3 `meos_initialize_error_handler` takes a - // raw `error_handler_fn` (function pointer / nint) rather than a P/Invoke - // delegate, so the call site marshals the delegate explicitly. - private static MEOSExposedFunctions.ErrorHandlingMethod? errorHandlerDelegate; - - public static void Initialize(string timeZone) - { - MEOSExposedFunctions.meos_initialize(); - MEOSExposedFunctions.meos_initialize_timezone(timeZone); - errorHandlerDelegate = MEOSErrorHandling.InternalErrorHandler; - var fnPtr = Marshal.GetFunctionPointerForDelegate(errorHandlerDelegate); - MEOSExposedFunctions.meos_initialize_error_handler(fnPtr); - } - - public static void Terminate() - => MEOSExposedFunctions.meos_finalize(); - } -} +using System.Runtime.InteropServices; + +using MEOS.NET.Errors; +using MEOS.NET.Functions; + +namespace MEOS.NET.Lifecycle +{ + public static class MEOSLifecycle + { + // Hold a managed reference to the error-handler delegate for the lifetime + // of the process so the GC does not free it while MEOS holds the + // function pointer. MEOS 1.3 `meos_initialize_error_handler` takes a + // raw `error_handler_fn` (function pointer / nint) rather than a P/Invoke + // delegate, so the call site marshals the delegate explicitly. + private static Meos.ErrorHandlingMethod? errorHandlerDelegate; + + public static void Initialize(string timeZone) + { + Meos.MeosInitialize(); + Meos.MeosInitializeTimezone(timeZone); + errorHandlerDelegate = MEOSErrorHandling.InternalErrorHandler; + var fnPtr = Marshal.GetFunctionPointerForDelegate(errorHandlerDelegate); + Meos.MeosInitializeErrorHandler(fnPtr); + } + + public static void Terminate() + => Meos.MeosFinalize(); + } +} diff --git a/MEOS.NET/Types/Boxes/TemporalBox.cs b/MEOS.NET/Types/Boxes/TemporalBox.cs index 1b39347..7b0ea21 100644 --- a/MEOS.NET/Types/Boxes/TemporalBox.cs +++ b/MEOS.NET/Types/Boxes/TemporalBox.cs @@ -1,5 +1,5 @@ using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Structures; using MEOS.NET.Types.Collections; using MEOS.NET.Types.Collections.Float; @@ -17,7 +17,7 @@ internal TemporalBox(IntPtr ptr) : base(ptr) public static TemporalBox FromString(string input) { - var res = MEOSExposedFunctions.tbox_in(input); + var res = Meos.TboxIn(input); return new TemporalBox(res); } @@ -25,7 +25,7 @@ public static TemporalBox FromBytes(byte[] bytes) { var tBoxPtr = AllocHelper.AllocateArrayPointer(bytes, (bytesPtr) => { - return MEOSExposedFunctions.tbox_from_wkb(bytesPtr, (ulong)bytes.Length); + return Meos.TboxFromWkb(bytesPtr, (ulong)bytes.Length); }); return new TemporalBox(tBoxPtr); @@ -33,7 +33,7 @@ public static TemporalBox FromBytes(byte[] bytes) public static TemporalBox FromHexWKB(string str) { - var res = MEOSExposedFunctions.tbox_from_hexwkb(str); + var res = Meos.TboxFromHexwkb(str); return new TemporalBox(res); } @@ -43,108 +43,108 @@ public static TemporalBox FromBounds(int xMin, int xMax, DateTime tMin, DateTime var span = IntegerSpan.FromBounds(xMin, xMax, xMinInclusive, xMaxInclusive); var tsTzSpan = TimestampTzSpan.FromBounds(tMin, tMax, tMinInclusive, tMaxInclusive); - var res = MEOSExposedFunctions.tbox_make(span._ptr, tsTzSpan._ptr); + var res = Meos.TboxMake(span._ptr, tsTzSpan._ptr); return new TemporalBox(res); } public static TemporalBox FromValue(int value) { - var res = MEOSExposedFunctions.int_to_tbox(value); + var res = Meos.IntToTbox(value); return new TemporalBox(res); } public static TemporalBox FromValue(double value) { - var res = MEOSExposedFunctions.float_to_tbox(value); + var res = Meos.FloatToTbox(value); return new TemporalBox(res); } public static TemporalBox FromTime(DateTime timestamp) { - var res = MEOSExposedFunctions.timestamptz_to_tbox(timestamp.ToPgTimestamp()); + var res = Meos.TimestamptzToTbox(timestamp.ToPgTimestamp()); return new TemporalBox(res); } public static TemporalBox FromTime(TimestampTzSet set) { - var res = MEOSExposedFunctions.set_to_tbox(set._ptr); + var res = Meos.SetToTbox(set._ptr); return new TemporalBox(res); } public static TemporalBox FromTime(TimestampTzSpan span) { - var res = MEOSExposedFunctions.span_to_tbox(span._ptr); + var res = Meos.SpanToTbox(span._ptr); return new TemporalBox(res); } public static TemporalBox FromTime(TimestampTzSpanSet spanSet) { - var res = MEOSExposedFunctions.spanset_to_tbox(spanSet._ptr); + var res = Meos.SpansetToTbox(spanSet._ptr); return new TemporalBox(res); } public static TemporalBox FromValueTime(int value, DateTime time) { - var res = MEOSExposedFunctions.int_timestamptz_to_tbox(value, time.ToPgTimestamp()); + var res = Meos.IntTimestamptzToTbox(value, time.ToPgTimestamp()); return new TemporalBox(res); } public static TemporalBox FromValueTime(double value, DateTime time) { - var res = MEOSExposedFunctions.float_timestamptz_to_tbox(value, time.ToPgTimestamp()); + var res = Meos.FloatTimestamptzToTbox(value, time.ToPgTimestamp()); return new TemporalBox(res); } public static TemporalBox FromValueTime(IntegerSpan value, DateTime time) { - var res = MEOSExposedFunctions.numspan_timestamptz_to_tbox(value._ptr, time.ToPgTimestamp()); + var res = Meos.NumspanTimestamptzToTbox(value._ptr, time.ToPgTimestamp()); return new TemporalBox(res); } public static TemporalBox FromValueTime(FloatSpan value, DateTime time) { - var res = MEOSExposedFunctions.numspan_timestamptz_to_tbox(value._ptr, time.ToPgTimestamp()); + var res = Meos.NumspanTimestamptzToTbox(value._ptr, time.ToPgTimestamp()); return new TemporalBox(res); } public static TemporalBox FromValueTime(int value, TimestampTzSpan time) { - var res = MEOSExposedFunctions.int_tstzspan_to_tbox(value, time._ptr); + var res = Meos.IntTstzspanToTbox(value, time._ptr); return new TemporalBox(res); } public static TemporalBox FromValueTime(double value, TimestampTzSpan time) { - var res = MEOSExposedFunctions.float_tstzspan_to_tbox(value, time._ptr); + var res = Meos.FloatTstzspanToTbox(value, time._ptr); return new TemporalBox(res); } public static TemporalBox FromValueTime(IntegerSpan value, TimestampTzSpan time) { - var res = MEOSExposedFunctions.numspan_tstzspan_to_tbox(value._ptr, time._ptr); + var res = Meos.NumspanTstzspanToTbox(value._ptr, time._ptr); return new TemporalBox(res); } public static TemporalBox FromValueTime(FloatSpan value, TimestampTzSpan time) { - var res = MEOSExposedFunctions.numspan_tstzspan_to_tbox(value._ptr, time._ptr); + var res = Meos.NumspanTstzspanToTbox(value._ptr, time._ptr); return new TemporalBox(res); } public static TemporalBox FromTemporalNumber(TemporalNumber temporal) { - var res = MEOSExposedFunctions.tnumber_to_tbox(temporal._ptr); + var res = Meos.TnumberToTbox(temporal._ptr); return new TemporalBox(res); } public TemporalBox Copy() { - var res = MEOSExposedFunctions.tbox_copy(this._ptr); + var res = Meos.TboxCopy(this._ptr); return new TemporalBox(res); } public string Format(int maxDecimals = 15) - => MEOSExposedFunctions.tbox_out(this._ptr, maxdd: maxDecimals); + => Meos.TboxOut(this._ptr, maxdd: maxDecimals); public override string ToString() => this.Format(); @@ -154,7 +154,7 @@ public byte[] ToBytes() int arrSize = 0; var arr = AllocHelper.AllocatePointer(sizeof(int), (countPtr) => { - var res = MEOSExposedFunctions.tbox_as_wkb(this._ptr, variant: 4, countPtr); + var res = Meos.TboxAsWkb(this._ptr, variant: 4, countPtr); arrSize = countPtr.ToStructure(); return res; @@ -167,33 +167,33 @@ public string ToHexWKB() { return AllocHelper.AllocatePointer(sizeof(int), (sizePtr) => { - return MEOSExposedFunctions.tbox_as_hexwkb(this._ptr, 0, sizePtr); + return Meos.TboxAsHexwkb(this._ptr, 0, sizePtr); }); } public FloatSpan ToFloatSpan() { - var res = MEOSExposedFunctions.tbox_to_floatspan(this._ptr); + var res = Meos.TboxToFloatspan(this._ptr); return new FloatSpan(res); } public TimestampTzSpan ToTimestampTzSpan() { - var res = MEOSExposedFunctions.tbox_to_tstzspan(this._ptr); + var res = Meos.TboxToTstzspan(this._ptr); return new TimestampTzSpan(res); } public bool HasX() - => (MEOSExposedFunctions.tbox_hasx(this._ptr)); + => (Meos.TboxHasx(this._ptr)); public bool HasT() - => (MEOSExposedFunctions.tbox_hast(this._ptr)); + => (Meos.TboxHast(this._ptr)); public bool IsMinXInclusive() { return AllocHelper.AllocatePointer(sizeof(bool), (resultPtr) => { - var successful = (MEOSExposedFunctions.tbox_xmin_inc(this._ptr, resultPtr)); + var successful = (Meos.TboxXminInc(this._ptr, resultPtr)); return successful ? resultPtr.ToStructure() : false; }); } @@ -202,7 +202,7 @@ public bool IsMaxXInclusive() { return AllocHelper.AllocatePointer(sizeof(bool), (resultPtr) => { - var successful = (MEOSExposedFunctions.tbox_xmax_inc(this._ptr, resultPtr)); + var successful = (Meos.TboxXmaxInc(this._ptr, resultPtr)); return successful ? resultPtr.ToStructure() : false; }); } @@ -211,7 +211,7 @@ public bool IsMinTInclusive() { return AllocHelper.AllocatePointer(sizeof(bool), (resultPtr) => { - var successful = (MEOSExposedFunctions.tbox_tmin_inc(this._ptr, resultPtr)); + var successful = (Meos.TboxTminInc(this._ptr, resultPtr)); return successful ? resultPtr.ToStructure() : false; }); } @@ -220,7 +220,7 @@ public bool IsMaxTInclusive() { return AllocHelper.AllocatePointer(sizeof(bool), (resultPtr) => { - var successful = (MEOSExposedFunctions.tbox_tmax_inc(this._ptr, resultPtr)); + var successful = (Meos.TboxTmaxInc(this._ptr, resultPtr)); return successful ? resultPtr.ToStructure() : false; }); } @@ -229,7 +229,7 @@ public double MinX() { return AllocHelper.AllocatePointer(sizeof(double), (resultPtr) => { - var successful = (MEOSExposedFunctions.tbox_xmin(this._ptr, resultPtr)); + var successful = (Meos.TboxXmin(this._ptr, resultPtr)); return successful ? resultPtr.ToStructure() : throw new InvalidOperationException("No X Min available"); }); } @@ -238,7 +238,7 @@ public double MaxX() { return AllocHelper.AllocatePointer(sizeof(double), (resultPtr) => { - var successful = (MEOSExposedFunctions.tbox_xmax(this._ptr, resultPtr)); + var successful = (Meos.TboxXmax(this._ptr, resultPtr)); return successful ? resultPtr.ToStructure() : throw new InvalidOperationException("No X Max available"); }); } @@ -247,7 +247,7 @@ public DateTime MinT() { var timestamp = AllocHelper.AllocatePointer(sizeof(long), (resultPtr) => { - var successful = (MEOSExposedFunctions.tbox_tmin(this._ptr, resultPtr)); + var successful = (Meos.TboxTmin(this._ptr, resultPtr)); return successful ? resultPtr.ToStructure() : throw new InvalidOperationException("No T Min available"); }); @@ -258,7 +258,7 @@ public DateTime MaxT() { var timestamp = AllocHelper.AllocatePointer(sizeof(long), (resultPtr) => { - var successful = (MEOSExposedFunctions.tbox_tmax(this._ptr, resultPtr)); + var successful = (Meos.TboxTmax(this._ptr, resultPtr)); return successful ? resultPtr.ToStructure() : throw new InvalidOperationException("No T Max available"); }); @@ -266,25 +266,25 @@ public DateTime MaxT() } public bool IsLeftOf(TemporalBox other) - => (MEOSExposedFunctions.left_tbox_tbox(this._ptr, other._ptr)); + => (Meos.LeftTboxTbox(this._ptr, other._ptr)); public bool IsLeftOf(TemporalNumber other) => this.IsLeftOf(other.BoundingBox()); public bool IsOverOrLeftOf(TemporalBox other) - => (MEOSExposedFunctions.overleft_tbox_tbox(this._ptr, other._ptr)); + => (Meos.OverleftTboxTbox(this._ptr, other._ptr)); public bool IsOverOrLeftOf(TemporalNumber other) => this.IsOverOrLeftOf(other.BoundingBox()); public bool IsRightOf(TemporalBox other) - => (MEOSExposedFunctions.right_tbox_tbox(this._ptr, other._ptr)); + => (Meos.RightTboxTbox(this._ptr, other._ptr)); public bool IsRightOf(TemporalNumber other) => this.IsRightOf(other.BoundingBox()); public bool IsOverOrRightOf(TemporalBox other) - => (MEOSExposedFunctions.overright_tbox_tbox(this._ptr, other._ptr)); + => (Meos.OverrightTboxTbox(this._ptr, other._ptr)); public bool IsOverOrRightOf(TemporalNumber other) => this.IsOverOrRightOf(other.BoundingBox()); diff --git a/MEOS.NET/Types/Collections/Float/FloatSet.cs b/MEOS.NET/Types/Collections/Float/FloatSet.cs index 871e4a0..4d1f1fe 100644 --- a/MEOS.NET/Types/Collections/Float/FloatSet.cs +++ b/MEOS.NET/Types/Collections/Float/FloatSet.cs @@ -1,5 +1,5 @@ using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.Collections.Integer; namespace MEOS.NET.Types.Collections.Float @@ -12,21 +12,21 @@ internal FloatSet(IntPtr ptr) : base(ptr) internal static FloatSet FromValues(double[] values) { var res = AllocHelper.AllocateArrayPointer(values, - (valuesPtr) => MEOSExposedFunctions.floatset_make(valuesPtr, values.Length)); + (valuesPtr) => Meos.FloatsetMake(valuesPtr, values.Length)); return new FloatSet(res); } public IntegerSet ToIntegerSet() { - var res = MEOSExposedFunctions.floatset_to_intset(this._ptr); + var res = Meos.FloatsetToIntset(this._ptr); return new IntegerSet(res); } public double StartElement() - => MEOSExposedFunctions.floatset_start_value(this._ptr); + => Meos.FloatsetStartValue(this._ptr); public double EndElement() - => MEOSExposedFunctions.floatset_end_value(this._ptr); + => Meos.FloatsetEndValue(this._ptr); public double ElementAt(int position) { @@ -39,7 +39,7 @@ public double ElementAt(int position) return AllocHelper.AllocatePointer(sizeof(double), (resultPtr) => { - var successful = (MEOSExposedFunctions.floatset_value_n(this._ptr, position, resultPtr)); + var successful = (Meos.FloatsetValueN(this._ptr, position, resultPtr)); return successful ? resultPtr.ToStructure() : throw new InvalidOperationException($"Could not retrieve element at position {position}"); }); } @@ -50,44 +50,44 @@ public double this[int position] } public IEnumerable Values() - => MEOSExposedFunctions.floatset_values(this._ptr); + => Meos.FloatsetValues(this._ptr); public FloatSet Shift(double delta) { - var res = MEOSExposedFunctions.floatset_shift_scale(this._ptr, delta, 0.0, hasshift: true, haswidth: false); + var res = Meos.FloatsetShiftScale(this._ptr, delta, 0.0, hasshift: true, haswidth: false); return new FloatSet(res); } public FloatSet Scale(double newWidth) { - var res = MEOSExposedFunctions.floatset_shift_scale(this._ptr, 0.0, newWidth, hasshift: false, haswidth: true); + var res = Meos.FloatsetShiftScale(this._ptr, 0.0, newWidth, hasshift: false, haswidth: true); return new FloatSet(res); } public FloatSet ShiftScale(double delta, double newWidth) { - var res = MEOSExposedFunctions.floatset_shift_scale(this._ptr, delta, newWidth, hasshift: true, haswidth: true); + var res = Meos.FloatsetShiftScale(this._ptr, delta, newWidth, hasshift: true, haswidth: true); return new FloatSet(res); } public bool Contains(double value) - => (MEOSExposedFunctions.contains_set_float(this._ptr, value)); + => (Meos.ContainsSetFloat(this._ptr, value)); public bool IsLeftOf(double value) - => (MEOSExposedFunctions.left_set_float(this._ptr, value)); + => (Meos.LeftSetFloat(this._ptr, value)); public bool IsOverOrLeftOf(double value) - => (MEOSExposedFunctions.overleft_set_float(this._ptr, value)); + => (Meos.OverleftSetFloat(this._ptr, value)); public bool IsRightOf(double value) - => (MEOSExposedFunctions.right_set_float(this._ptr, value)); + => (Meos.RightSetFloat(this._ptr, value)); public bool IsOverOrRightOf(double value) - => (MEOSExposedFunctions.overright_set_float(this._ptr, value)); + => (Meos.OverrightSetFloat(this._ptr, value)); public FloatSet? IntersectionWith(double value) { - var res = MEOSExposedFunctions.intersection_set_float(this._ptr, value); + var res = Meos.IntersectionSetFloat(this._ptr, value); if (res == IntPtr.Zero) { @@ -99,7 +99,7 @@ public bool IsOverOrRightOf(double value) public FloatSet? IntersectionWith(FloatSet set) { - var res = MEOSExposedFunctions.intersection_set_set(this._ptr, set._ptr); + var res = Meos.IntersectionSetSet(this._ptr, set._ptr); if (res == IntPtr.Zero) { @@ -111,31 +111,31 @@ public bool IsOverOrRightOf(double value) public FloatSet Minus(double value) { - var res = MEOSExposedFunctions.minus_set_float(this._ptr, value); + var res = Meos.MinusSetFloat(this._ptr, value); return new FloatSet(res); } public FloatSet Minus(FloatSet set) { - var res = MEOSExposedFunctions.minus_set_set(this._ptr, set._ptr); + var res = Meos.MinusSetSet(this._ptr, set._ptr); return new FloatSet(res); } public FloatSet SubtractFrom(FloatSet set) { - var res = MEOSExposedFunctions.minus_set_set(set._ptr, this._ptr); + var res = Meos.MinusSetSet(set._ptr, this._ptr); return new FloatSet(res); } public FloatSet UnionWith(double value) { - var res = MEOSExposedFunctions.union_set_float(this._ptr, value); + var res = Meos.UnionSetFloat(this._ptr, value); return new FloatSet(res); } public FloatSet UnionWith(FloatSet set) { - var res = MEOSExposedFunctions.union_set_set(this._ptr, set._ptr); + var res = Meos.UnionSetSet(this._ptr, set._ptr); return new FloatSet(res); } @@ -143,10 +143,10 @@ public double DistanceTo(int value) => this.DistanceTo((double)value); public double DistanceTo(double value) - => MEOSExposedFunctions.distance_set_float(this._ptr, value); + => Meos.DistanceSetFloat(this._ptr, value); public double DistanceTo(FloatSet set) - => MEOSExposedFunctions.distance_set_set(this._ptr, set._ptr); + => Meos.DistanceSetSet(this._ptr, set._ptr); public double DistanceTo(FloatSpan span) => this.ToSpanSet().DistanceTo(span); @@ -155,7 +155,7 @@ public double DistanceTo(FloatSpanSet spanSet) => this.ToSpanSet().DistanceTo(spanSet); public string Format(int maxDecimals = 15) - => MEOSExposedFunctions.floatset_out(this._ptr, maxdd: maxDecimals); + => Meos.FloatsetOut(this._ptr, maxdd: maxDecimals); public override string ToString() => this.Format(maxDecimals: 15); diff --git a/MEOS.NET/Types/Collections/Float/FloatSpan.cs b/MEOS.NET/Types/Collections/Float/FloatSpan.cs index 98028cf..465299e 100644 --- a/MEOS.NET/Types/Collections/Float/FloatSpan.cs +++ b/MEOS.NET/Types/Collections/Float/FloatSpan.cs @@ -1,4 +1,4 @@ -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.Collections.Integer; namespace MEOS.NET.Types.Collections.Float @@ -10,13 +10,13 @@ internal FloatSpan(IntPtr ptr) : base(ptr) public static FloatSpan FromString(string input) { - var res = MEOSExposedFunctions.floatspan_in(input); + var res = Meos.FloatspanIn(input); return new FloatSpan(res); } public static FloatSpan FromBounds(double xMin, double xMax, bool minInclusive = true, bool maxInclusive = false) { - var res = MEOSExposedFunctions.floatspan_make(xMin, xMax, minInclusive, maxInclusive); + var res = Meos.FloatspanMake(xMin, xMax, minInclusive, maxInclusive); return new FloatSpan(res); } @@ -24,86 +24,86 @@ public override string ToString() => this.Format(maxDecimals: 15); public string Format(int maxDecimals) - => MEOSExposedFunctions.floatspan_out(this._ptr, maxdd: maxDecimals); + => Meos.FloatspanOut(this._ptr, maxdd: maxDecimals); public override FloatSpanSet ToSpanSet() => (FloatSpanSet)this.ToSpanSet(); public IntegerSpan ToIntegerSpan() { - var res = MEOSExposedFunctions.floatspan_to_intspan(this._ptr); + var res = Meos.FloatspanToIntspan(this._ptr); return new IntegerSpan(res); } public double LowerBound() - => MEOSExposedFunctions.floatspan_lower(this._ptr); + => Meos.FloatspanLower(this._ptr); public double UpperBound() - => MEOSExposedFunctions.floatspan_upper(this._ptr); + => Meos.FloatspanUpper(this._ptr); public FloatSpan Shift(double delta) { - var res = MEOSExposedFunctions.floatspan_shift_scale(this._ptr, delta, 0.0, hasshift: true, haswidth: false); + var res = Meos.FloatspanShiftScale(this._ptr, delta, 0.0, hasshift: true, haswidth: false); return new FloatSpan(res); } public FloatSpan Scale(double newWidth) { - var res = MEOSExposedFunctions.floatspan_shift_scale(this._ptr, 0.0, newWidth, hasshift: false, haswidth: true); + var res = Meos.FloatspanShiftScale(this._ptr, 0.0, newWidth, hasshift: false, haswidth: true); return new FloatSpan(res); } public FloatSpan ShiftScale(double delta, double newWidth) { - var res = MEOSExposedFunctions.floatspan_shift_scale(this._ptr, delta, newWidth, hasshift: true, haswidth: true); + var res = Meos.FloatspanShiftScale(this._ptr, delta, newWidth, hasshift: true, haswidth: true); return new FloatSpan(res); } public bool IsAdjacent(double number) - => (MEOSExposedFunctions.adjacent_span_float(this._ptr, number)); + => (Meos.AdjacentSpanFloat(this._ptr, number)); public bool IsAdjacent(int number) => this.IsAdjacent((double)number); public bool Contains(double number) - => (MEOSExposedFunctions.contains_span_float(this._ptr, number)); + => (Meos.ContainsSpanFloat(this._ptr, number)); public bool Contains(int number) => this.Contains((double)number); public bool IsLeftOf(double number) - => (MEOSExposedFunctions.left_span_float(this._ptr, number)); + => (Meos.LeftSpanFloat(this._ptr, number)); public bool IsLeftOf(int number) => this.IsLeftOf((double)number); public bool IsOverOrLeftOf(double number) - => (MEOSExposedFunctions.overleft_span_float(this._ptr, number)); + => (Meos.OverleftSpanFloat(this._ptr, number)); public bool IsOverOrLeftOf(int number) => this.IsOverOrLeftOf((double)number); public bool IsRightOf(double number) - => (MEOSExposedFunctions.right_span_float(this._ptr, number)); + => (Meos.RightSpanFloat(this._ptr, number)); public bool IsRightOf(int number) => this.IsRightOf((double)number); public bool IsOverOrRightOf(double number) - => (MEOSExposedFunctions.overright_span_float(this._ptr, number)); + => (Meos.OverrightSpanFloat(this._ptr, number)); public bool IsOverOrRightOf(int number) => this.IsOverOrRightOf((double)number); public double DistanceTo(double number) - => MEOSExposedFunctions.distance_span_float(this._ptr, number); + => Meos.DistanceSpanFloat(this._ptr, number); public double DistanceTo(int number) => this.DistanceTo((double)number); public FloatSpan IntersectionWith(double number) { - var res = MEOSExposedFunctions.intersection_span_float(this._ptr, number); + var res = Meos.IntersectionSpanFloat(this._ptr, number); return new FloatSpan(res); } @@ -112,19 +112,19 @@ public FloatSpan IntersectionWith(int number) public FloatSpan IntersectionWith(FloatSpan span) { - var res = MEOSExposedFunctions.intersection_span_span(this._ptr, span._ptr); + var res = Meos.IntersectionSpanSpan(this._ptr, span._ptr); return new FloatSpan(res); } public FloatSpanSet IntersectionWith(FloatSpanSet spanSet) { - var res = MEOSExposedFunctions.intersection_spanset_span(spanSet._ptr, this._ptr); + var res = Meos.IntersectionSpansetSpan(spanSet._ptr, this._ptr); return new FloatSpanSet(res); } public FloatSpanSet Minus(double number) { - var res = MEOSExposedFunctions.minus_span_float(this._ptr, number); + var res = Meos.MinusSpanFloat(this._ptr, number); return new FloatSpanSet(res); } @@ -133,19 +133,19 @@ public FloatSpanSet Minus(int number) public FloatSpanSet Minus(FloatSpan span) { - var res = MEOSExposedFunctions.minus_span_span(this._ptr, span._ptr); + var res = Meos.MinusSpanSpan(this._ptr, span._ptr); return new FloatSpanSet(res); } public FloatSpanSet Minus(FloatSpanSet spanSet) { - var res = MEOSExposedFunctions.minus_spanset_span(spanSet._ptr, this._ptr); + var res = Meos.MinusSpansetSpan(spanSet._ptr, this._ptr); return new FloatSpanSet(res); } public FloatSpanSet UnionWith(double number) { - var res = MEOSExposedFunctions.union_span_float(this._ptr, number); + var res = Meos.UnionSpanFloat(this._ptr, number); return new FloatSpanSet(res); } @@ -154,13 +154,13 @@ public FloatSpanSet UnionWith(int number) public FloatSpanSet UnionWith(FloatSpan span) { - var res = MEOSExposedFunctions.union_span_span(this._ptr, span._ptr); + var res = Meos.UnionSpanSpan(this._ptr, span._ptr); return new FloatSpanSet(res); } public FloatSpanSet UnionWith(FloatSpanSet spanSet) { - var res = MEOSExposedFunctions.union_spanset_span(spanSet._ptr, this._ptr); + var res = Meos.UnionSpansetSpan(spanSet._ptr, this._ptr); return new FloatSpanSet(res); } diff --git a/MEOS.NET/Types/Collections/Float/FloatSpanSet.cs b/MEOS.NET/Types/Collections/Float/FloatSpanSet.cs index 35fa3ee..c6f4b92 100644 --- a/MEOS.NET/Types/Collections/Float/FloatSpanSet.cs +++ b/MEOS.NET/Types/Collections/Float/FloatSpanSet.cs @@ -1,4 +1,4 @@ -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.Collections.Integer; namespace MEOS.NET.Types.Collections.Float @@ -10,7 +10,7 @@ internal FloatSpanSet(IntPtr ptr) : base(ptr) public static FloatSpanSet FromString(string input) { - var res = MEOSExposedFunctions.floatspanset_in(input); + var res = Meos.FloatspansetIn(input); return new FloatSpanSet(res); } @@ -19,12 +19,12 @@ public override FloatSpan ToSpan() public IntegerSpanSet ToIntegerSpanSet() { - var res = MEOSExposedFunctions.floatspanset_to_intspanset(this._ptr); + var res = Meos.FloatspansetToIntspanset(this._ptr); return new IntegerSpanSet(res); } public string Format(int maxDecimals) - => MEOSExposedFunctions.floatspanset_out(this._ptr, maxdd: maxDecimals); + => Meos.FloatspansetOut(this._ptr, maxdd: maxDecimals); public override string ToString() => this.Format(15); @@ -40,67 +40,67 @@ public override FloatSpan SpanAt(int position) public FloatSpanSet Shift(double delta) { - var res = MEOSExposedFunctions.floatspanset_shift_scale(this._ptr, delta, 0.0, hasshift: true, haswidth: false); + var res = Meos.FloatspansetShiftScale(this._ptr, delta, 0.0, hasshift: true, haswidth: false); return new FloatSpanSet(res); } public FloatSpanSet Scale(double newWidth) { - var res = MEOSExposedFunctions.floatspanset_shift_scale(this._ptr, 0.0, newWidth, hasshift: false, haswidth: true); + var res = Meos.FloatspansetShiftScale(this._ptr, 0.0, newWidth, hasshift: false, haswidth: true); return new FloatSpanSet(res); } public FloatSpanSet ShiftScale(double delta, double newWidth) { - var res = MEOSExposedFunctions.floatspanset_shift_scale(this._ptr, delta, newWidth, hasshift: true, haswidth: true); + var res = Meos.FloatspansetShiftScale(this._ptr, delta, newWidth, hasshift: true, haswidth: true); return new FloatSpanSet(res); } public bool IsAdjacent(double number) - => (MEOSExposedFunctions.adjacent_spanset_float(this._ptr, number)); + => (Meos.AdjacentSpansetFloat(this._ptr, number)); public bool IsAdjacent(int number) => this.IsAdjacent((double)number); public bool Contains(double number) - => (MEOSExposedFunctions.contains_spanset_float(this._ptr, number)); + => (Meos.ContainsSpansetFloat(this._ptr, number)); public bool Contains(int number) => this.IsAdjacent((double)number); public bool IsLeftOf(double number) - => (MEOSExposedFunctions.left_spanset_float(this._ptr, number)); + => (Meos.LeftSpansetFloat(this._ptr, number)); public bool IsLeftOf(int number) => this.IsLeftOf((double)number); public bool IsOverOrLeftOf(double number) - => (MEOSExposedFunctions.overleft_spanset_float(this._ptr, number)); + => (Meos.OverleftSpansetFloat(this._ptr, number)); public bool IsOverOrLeftOf(int number) => this.IsOverOrLeftOf((double)number); public bool IsRightOf(double number) - => (MEOSExposedFunctions.right_spanset_float(this._ptr, number)); + => (Meos.RightSpansetFloat(this._ptr, number)); public bool IsRightOf(int number) => this.IsRightOf((double)number); public bool IsOverOrRightOf(double number) - => (MEOSExposedFunctions.overright_spanset_float(this._ptr, number)); + => (Meos.OverrightSpansetFloat(this._ptr, number)); public bool IsOverOrRightOf(int number) => this.IsOverOrLeftOf((double)number); public double DistanceTo(double number) - => MEOSExposedFunctions.distance_spanset_float(this._ptr, number); + => Meos.DistanceSpansetFloat(this._ptr, number); public double DistanceTo(int number) => this.DistanceTo((double)number); public FloatSpanSet IntersectionWith(double number) { - var res = MEOSExposedFunctions.intersection_spanset_float(this._ptr, number); + var res = Meos.IntersectionSpansetFloat(this._ptr, number); return new FloatSpanSet(res); } @@ -109,7 +109,7 @@ public FloatSpanSet IntersectionWith(int number) public FloatSpanSet Minus(double number) { - var res = MEOSExposedFunctions.minus_spanset_float(this._ptr, number); + var res = Meos.MinusSpansetFloat(this._ptr, number); return new FloatSpanSet(res); } @@ -118,7 +118,7 @@ public FloatSpanSet Minus(int number) public FloatSpanSet UnionWith(double number) { - var res = MEOSExposedFunctions.union_spanset_float(this._ptr, number); + var res = Meos.UnionSpansetFloat(this._ptr, number); return new FloatSpanSet(res); } diff --git a/MEOS.NET/Types/Collections/Integer/IntegerSpan.cs b/MEOS.NET/Types/Collections/Integer/IntegerSpan.cs index 062f734..5ffc6c6 100644 --- a/MEOS.NET/Types/Collections/Integer/IntegerSpan.cs +++ b/MEOS.NET/Types/Collections/Integer/IntegerSpan.cs @@ -1,4 +1,4 @@ -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Collections.Integer { @@ -9,7 +9,7 @@ internal IntegerSpan(IntPtr ptr) : base(ptr) public static IntegerSpan FromBounds(int xMin, int xMax, bool minInclusive = true, bool maxInclusive = false) { - var res = MEOSExposedFunctions.intspan_make(xMin, xMax, minInclusive, maxInclusive); + var res = Meos.IntspanMake(xMin, xMax, minInclusive, maxInclusive); return new IntegerSpan(res); } diff --git a/MEOS.NET/Types/Collections/Set.cs b/MEOS.NET/Types/Collections/Set.cs index d91ad0b..7a6acae 100644 --- a/MEOS.NET/Types/Collections/Set.cs +++ b/MEOS.NET/Types/Collections/Set.cs @@ -1,6 +1,6 @@ using System.Runtime.InteropServices; using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.General; namespace MEOS.NET.Types.Collections @@ -14,7 +14,7 @@ public static Set FromBytes(byte[] bytes) { var setPtr = AllocHelper.AllocateArrayPointer(bytes, (bytesPtr) => { - return MEOSExposedFunctions.set_from_wkb(bytesPtr, (ulong)bytes.Length); + return Meos.SetFromWkb(bytesPtr, (ulong)bytes.Length); }); return new Set(setPtr); @@ -22,19 +22,19 @@ public static Set FromBytes(byte[] bytes) public static Set FromHexWKB(string hexWKB) { - var res = MEOSExposedFunctions.set_from_hexwkb(hexWKB); + var res = Meos.SetFromHexwkb(hexWKB); return new Set(res); } public int Count() - => MEOSExposedFunctions.set_num_values(this._ptr); + => Meos.SetNumValues(this._ptr); public byte[] ToBytes() { int arrSize = 0; var arr = AllocHelper.AllocatePointer(sizeof(int), (countPtr) => { - var res = MEOSExposedFunctions.set_as_wkb(this._ptr, variant: 4, countPtr); + var res = Meos.SetAsWkb(this._ptr, variant: 4, countPtr); arrSize = countPtr.ToStructure(); return res; @@ -47,42 +47,42 @@ public string ToHexWKB() { return AllocHelper.AllocatePointer(sizeof(int), (sizePtr) => { - return MEOSExposedFunctions.set_as_hexwkb(this._ptr, 0, sizePtr); + return Meos.SetAsHexwkb(this._ptr, 0, sizePtr); }); } public Span ToSpan() { - var res = MEOSExposedFunctions.set_to_span(this._ptr); + var res = Meos.SetToSpan(this._ptr); return new Span(res); } public SpanSet ToSpanSet() { - var res = MEOSExposedFunctions.set_to_spanset(this._ptr); + var res = Meos.SetToSpanset(this._ptr); return new SpanSet(res); } public bool Contains(Set collection) - => (MEOSExposedFunctions.contains_set_set(this._ptr, collection._ptr)); + => (Meos.ContainsSetSet(this._ptr, collection._ptr)); public bool IsContainedIn(Set collection) - => (MEOSExposedFunctions.contained_set_set(this._ptr, collection._ptr)); + => (Meos.ContainedSetSet(this._ptr, collection._ptr)); public bool Overlaps(Set collection) - => (MEOSExposedFunctions.overlaps_set_set(this._ptr, collection._ptr)); + => (Meos.OverlapsSetSet(this._ptr, collection._ptr)); public bool IsLeftOf(Set collection) - => (MEOSExposedFunctions.left_set_set(this._ptr, collection._ptr)); + => (Meos.LeftSetSet(this._ptr, collection._ptr)); public bool IsOverOrLeftOf(Set collection) - => (MEOSExposedFunctions.overleft_set_set(this._ptr, collection._ptr)); + => (Meos.OverleftSetSet(this._ptr, collection._ptr)); public bool IsOverOrRightOf(Set collection) - => (MEOSExposedFunctions.overright_set_set(this._ptr, collection._ptr)); + => (Meos.OverrightSetSet(this._ptr, collection._ptr)); public bool IsRightOf(Set collection) - => (MEOSExposedFunctions.right_set_set(this._ptr, collection._ptr)); + => (Meos.RightSetSet(this._ptr, collection._ptr)); public override bool Equals(object? obj) { @@ -91,11 +91,11 @@ public override bool Equals(object? obj) return false; } - return (MEOSExposedFunctions.set_eq(this._ptr, ((Set)obj)._ptr)); + return (Meos.SetEq(this._ptr, ((Set)obj)._ptr)); } public override int GetHashCode() - => (int)MEOSExposedFunctions.set_hash(this._ptr); + => (int)Meos.SetHash(this._ptr); } } diff --git a/MEOS.NET/Types/Collections/Span.cs b/MEOS.NET/Types/Collections/Span.cs index a055191..27b1d13 100644 --- a/MEOS.NET/Types/Collections/Span.cs +++ b/MEOS.NET/Types/Collections/Span.cs @@ -1,5 +1,5 @@ using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.General; namespace MEOS.NET.Types.Collections @@ -13,7 +13,7 @@ public static Span FromBytes(byte[] bytes) { var setPtr = AllocHelper.AllocateArrayPointer(bytes, (bytesPtr) => { - return MEOSExposedFunctions.span_from_wkb(bytesPtr, (ulong)bytes.Length); + return Meos.SpanFromWkb(bytesPtr, (ulong)bytes.Length); }); return new Span(setPtr); @@ -21,13 +21,13 @@ public static Span FromBytes(byte[] bytes) public static Span FromHexWKB(string hexWKB) { - var res = MEOSExposedFunctions.span_from_hexwkb(hexWKB); + var res = Meos.SpanFromHexwkb(hexWKB); return new Span(res); } public Span Copy() { - var copy = MEOSExposedFunctions.span_copy(this._ptr); + var copy = Meos.SpanCopy(this._ptr); return new Span(copy); } @@ -36,7 +36,7 @@ public byte[] ToBytes() int arrSize = 0; var arr = AllocHelper.AllocatePointer(sizeof(int), (countPtr) => { - var res = MEOSExposedFunctions.span_as_wkb(this._ptr, variant: 4, countPtr); + var res = Meos.SpanAsWkb(this._ptr, variant: 4, countPtr); arrSize = countPtr.ToStructure(); return res; @@ -49,48 +49,48 @@ public string ToHexWKB() { return AllocHelper.AllocatePointer(sizeof(int), (sizePtr) => { - return MEOSExposedFunctions.span_as_hexwkb(this._ptr, 0, sizePtr); + return Meos.SpanAsHexwkb(this._ptr, 0, sizePtr); }); } public virtual SpanSet ToSpanSet() { - var res = MEOSExposedFunctions.span_to_spanset(this._ptr); + var res = Meos.SpanToSpanset(this._ptr); return new SpanSet(res); } public bool IsLowerBoundInclusive() - => (MEOSExposedFunctions.span_lower_inc(this._ptr)); + => (Meos.SpanLowerInc(this._ptr)); public bool IsUpperBoundInclusive() - => (MEOSExposedFunctions.span_upper_inc(this._ptr)); + => (Meos.SpanUpperInc(this._ptr)); public bool IsAdjacent(Span span) - => (MEOSExposedFunctions.adjacent_span_span(this._ptr, span._ptr)); + => (Meos.AdjacentSpanSpan(this._ptr, span._ptr)); public bool IsAdjacent(SpanSet spanSet) - => (MEOSExposedFunctions.adjacent_spanset_span(spanSet._ptr, this._ptr)); + => (Meos.AdjacentSpansetSpan(spanSet._ptr, this._ptr)); public bool IsContainedIn(Span span) - => (MEOSExposedFunctions.contained_span_span(this._ptr, span._ptr)); + => (Meos.ContainedSpanSpan(this._ptr, span._ptr)); public bool IsContainedIn(SpanSet spanSet) - => (MEOSExposedFunctions.contained_span_spanset(this._ptr, spanSet._ptr)); + => (Meos.ContainedSpanSpanset(this._ptr, spanSet._ptr)); public bool Contains(Span span) - => (MEOSExposedFunctions.contains_span_span(this._ptr, span._ptr)); + => (Meos.ContainsSpanSpan(this._ptr, span._ptr)); public bool Contains(SpanSet spanSet) - => (MEOSExposedFunctions.contains_span_spanset(this._ptr, spanSet._ptr)); + => (Meos.ContainsSpanSpanset(this._ptr, spanSet._ptr)); public bool Overlaps(Span span) - => (MEOSExposedFunctions.overlaps_span_span(this._ptr, span._ptr)); + => (Meos.OverlapsSpanSpan(this._ptr, span._ptr)); public bool Overlaps(SpanSet spanSet) - => (MEOSExposedFunctions.overlaps_spanset_span(spanSet._ptr, this._ptr)); + => (Meos.OverlapsSpansetSpan(spanSet._ptr, this._ptr)); public bool Equals(Span span) - => (MEOSExposedFunctions.span_eq(this._ptr, span._ptr)); + => (Meos.SpanEq(this._ptr, span._ptr)); public bool Equals(SpanSet spanSet) { @@ -99,61 +99,61 @@ public bool Equals(SpanSet spanSet) } public double Width() - => MEOSExposedFunctions.numspan_width(this._ptr); + => Meos.NumspanWidth(this._ptr); public bool IsLeftOf(Span span) - => (MEOSExposedFunctions.left_span_span(this._ptr, span._ptr)); + => (Meos.LeftSpanSpan(this._ptr, span._ptr)); public bool IsLeftOf(SpanSet spanSet) - => (MEOSExposedFunctions.left_span_spanset(this._ptr, spanSet._ptr)); + => (Meos.LeftSpanSpanset(this._ptr, spanSet._ptr)); public bool IsOverOrLeftOf(Span span) - => (MEOSExposedFunctions.overleft_span_span(this._ptr, span._ptr)); + => (Meos.OverleftSpanSpan(this._ptr, span._ptr)); public bool IsOverOrLeftOf(SpanSet spanSet) - => (MEOSExposedFunctions.overleft_span_spanset(this._ptr, spanSet._ptr)); + => (Meos.OverleftSpanSpanset(this._ptr, spanSet._ptr)); public bool IsRightOf(Span span) - => (MEOSExposedFunctions.right_span_span(this._ptr, span._ptr)); + => (Meos.RightSpanSpan(this._ptr, span._ptr)); public bool IsRightOf(SpanSet spanSet) - => (MEOSExposedFunctions.right_span_spanset(this._ptr, spanSet._ptr)); + => (Meos.RightSpanSpanset(this._ptr, spanSet._ptr)); public bool IsOverOrRightOf(Span span) - => (MEOSExposedFunctions.overright_span_span(this._ptr, span._ptr)); + => (Meos.OverrightSpanSpan(this._ptr, span._ptr)); public bool IsOverOrRightOf(SpanSet spanSet) - => (MEOSExposedFunctions.overright_span_spanset(this._ptr, spanSet._ptr)); + => (Meos.OverrightSpanSpanset(this._ptr, spanSet._ptr)); public double DistanceTo(Span span) - => MEOSExposedFunctions.distance_span_span(this._ptr, span._ptr); + => Meos.DistanceSpanSpan(this._ptr, span._ptr); public Span IntersectionWith(Span span) { - var res = MEOSExposedFunctions.intersection_span_span(this._ptr, span._ptr); + var res = Meos.IntersectionSpanSpan(this._ptr, span._ptr); return new Span(res); } public SpanSet IntersectionWith(SpanSet spanSet) { - var res = MEOSExposedFunctions.intersection_spanset_span(spanSet._ptr, this._ptr); + var res = Meos.IntersectionSpansetSpan(spanSet._ptr, this._ptr); return new SpanSet(res); } public Span UnionWith(Span span) { - var res = MEOSExposedFunctions.union_span_span(this._ptr, span._ptr); + var res = Meos.UnionSpanSpan(this._ptr, span._ptr); return new Span(res); } public SpanSet UnionWith(SpanSet spanSet) { - var res = MEOSExposedFunctions.union_spanset_span(spanSet._ptr, this._ptr); + var res = Meos.UnionSpansetSpan(spanSet._ptr, this._ptr); return new SpanSet(res); } public override int GetHashCode() - => (int)MEOSExposedFunctions.span_hash(this._ptr); + => (int)Meos.SpanHash(this._ptr); public static bool operator ==(Span span1, Span span2) => span1.Equals(span2); @@ -174,16 +174,16 @@ public override int GetHashCode() => !span.Equals(spanSet); public static bool operator <(Span span1, Span span2) - => (MEOSExposedFunctions.span_lt(span1._ptr, span2._ptr)); + => (Meos.SpanLt(span1._ptr, span2._ptr)); public static bool operator >(Span span1, Span span2) - => (MEOSExposedFunctions.span_gt(span1._ptr, span2._ptr)); + => (Meos.SpanGt(span1._ptr, span2._ptr)); public static bool operator <=(Span span1, Span span2) - => (MEOSExposedFunctions.span_le(span1._ptr, span2._ptr)); + => (Meos.SpanLe(span1._ptr, span2._ptr)); public static bool operator >=(Span span1, Span span2) - => (MEOSExposedFunctions.span_ge(span1._ptr, span2._ptr)); + => (Meos.SpanGe(span1._ptr, span2._ptr)); } } diff --git a/MEOS.NET/Types/Collections/SpanSet.cs b/MEOS.NET/Types/Collections/SpanSet.cs index e28d8db..4cbf497 100644 --- a/MEOS.NET/Types/Collections/SpanSet.cs +++ b/MEOS.NET/Types/Collections/SpanSet.cs @@ -1,5 +1,5 @@ using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.General; namespace MEOS.NET.Types.Collections @@ -13,7 +13,7 @@ public static SpanSet FromBytes(byte[] bytes) { var setPtr = AllocHelper.AllocateArrayPointer(bytes, (bytesPtr) => { - return MEOSExposedFunctions.spanset_from_wkb(bytesPtr, (ulong)bytes.Length); + return Meos.SpansetFromWkb(bytesPtr, (ulong)bytes.Length); }); return new SpanSet(setPtr); @@ -21,13 +21,13 @@ public static SpanSet FromBytes(byte[] bytes) public static SpanSet FromHexWKB(string hexWKB) { - var res = MEOSExposedFunctions.spanset_from_hexwkb(hexWKB); + var res = Meos.SpansetFromHexwkb(hexWKB); return new SpanSet(res); } public SpanSet Copy() { - var copy = MEOSExposedFunctions.spanset_copy(this._ptr); + var copy = Meos.SpansetCopy(this._ptr); return new SpanSet(copy); } @@ -36,7 +36,7 @@ public byte[] ToBytes() int arrSize = 0; var arr = AllocHelper.AllocatePointer(sizeof(int), (countPtr) => { - var res = MEOSExposedFunctions.spanset_as_wkb(this._ptr, variant: 4, countPtr); + var res = Meos.SpansetAsWkb(this._ptr, variant: 4, countPtr); arrSize = countPtr.ToStructure(); return res; @@ -49,28 +49,28 @@ public string ToHexWKB() { return AllocHelper.AllocatePointer(sizeof(int), (sizePtr) => { - return MEOSExposedFunctions.spanset_as_hexwkb(this._ptr, 0, sizePtr); + return Meos.SpansetAsHexwkb(this._ptr, 0, sizePtr); }); } public virtual Span ToSpan() { - var res = MEOSExposedFunctions.spanset_span(this._ptr); + var res = Meos.SpansetSpan(this._ptr); return new Span(res); } public int SpanCount() - => MEOSExposedFunctions.spanset_num_spans(this._ptr); + => Meos.SpansetNumSpans(this._ptr); public virtual Span StartSpan() { - var res = MEOSExposedFunctions.spanset_start_span(this._ptr); + var res = Meos.SpansetStartSpan(this._ptr); return new Span(res); } public virtual Span EndSpan() { - var res = MEOSExposedFunctions.spanset_end_span(this._ptr); + var res = Meos.SpansetEndSpan(this._ptr); return new Span(res); } @@ -83,13 +83,13 @@ public virtual Span SpanAt(int position) throw new ArgumentOutOfRangeException(nameof(position), $"Requested element must be between 0 and {count - 1}"); } - var res = MEOSExposedFunctions.spanset_span_n(this._ptr, position); + var res = Meos.SpansetSpanN(this._ptr, position); return new Span(res); } public virtual IEnumerable GetSpans() { - var spans = MEOSExposedFunctions.spanset_spans(this._ptr); + var spans = Meos.SpansetSpans(this._ptr); List spanList = new List(spans.Length); foreach(var span in spans) @@ -101,103 +101,103 @@ public virtual IEnumerable GetSpans() } public double Width(bool ignoreGaps = false) - => MEOSExposedFunctions.numspanset_width(this._ptr, ignoreGaps); + => Meos.NumspansetWidth(this._ptr, ignoreGaps); public bool IsAdjacent(Span span) - => (MEOSExposedFunctions.adjacent_spanset_span(this._ptr, span._ptr)); + => (Meos.AdjacentSpansetSpan(this._ptr, span._ptr)); public bool IsAdjacent(SpanSet spanSet) - => (MEOSExposedFunctions.adjacent_spanset_spanset(this._ptr, spanSet._ptr)); + => (Meos.AdjacentSpansetSpanset(this._ptr, spanSet._ptr)); public bool IsContainedIn(Span span) - => (MEOSExposedFunctions.contained_spanset_span(this._ptr, span._ptr)); + => (Meos.ContainedSpansetSpan(this._ptr, span._ptr)); public bool IsContainedIn(SpanSet spanSet) - => (MEOSExposedFunctions.contained_spanset_spanset(this._ptr, spanSet._ptr)); + => (Meos.ContainedSpansetSpanset(this._ptr, spanSet._ptr)); public bool Contains(Span span) - => (MEOSExposedFunctions.contains_spanset_span(this._ptr, span._ptr)); + => (Meos.ContainsSpansetSpan(this._ptr, span._ptr)); public bool Contains(SpanSet spanSet) - => (MEOSExposedFunctions.contains_spanset_spanset(this._ptr, spanSet._ptr)); + => (Meos.ContainsSpansetSpanset(this._ptr, spanSet._ptr)); public bool Overlaps(Span span) - => (MEOSExposedFunctions.overlaps_spanset_span(this._ptr, span._ptr)); + => (Meos.OverlapsSpansetSpan(this._ptr, span._ptr)); public bool Overlaps(SpanSet spanSet) - => (MEOSExposedFunctions.overlaps_spanset_spanset(this._ptr, spanSet._ptr)); + => (Meos.OverlapsSpansetSpanset(this._ptr, spanSet._ptr)); public bool IsLeftOf(Span span) - => (MEOSExposedFunctions.left_spanset_span(this._ptr, span._ptr)); + => (Meos.LeftSpansetSpan(this._ptr, span._ptr)); public bool IsLeftOf(SpanSet spanSet) - => (MEOSExposedFunctions.left_spanset_spanset(this._ptr, spanSet._ptr)); + => (Meos.LeftSpansetSpanset(this._ptr, spanSet._ptr)); public bool IsOverOrLeftOf(Span span) - => (MEOSExposedFunctions.overleft_spanset_span(this._ptr, span._ptr)); + => (Meos.OverleftSpansetSpan(this._ptr, span._ptr)); public bool IsOverOrLeftOf(SpanSet spanSet) - => (MEOSExposedFunctions.overleft_spanset_spanset(this._ptr, spanSet._ptr)); + => (Meos.OverleftSpansetSpanset(this._ptr, spanSet._ptr)); public bool IsRightOf(Span span) - => (MEOSExposedFunctions.right_spanset_span(this._ptr, span._ptr)); + => (Meos.RightSpansetSpan(this._ptr, span._ptr)); public bool IsRightOf(SpanSet spanSet) - => (MEOSExposedFunctions.right_spanset_spanset(this._ptr, spanSet._ptr)); + => (Meos.RightSpansetSpanset(this._ptr, spanSet._ptr)); public bool IsOverOrRightOf(Span span) - => (MEOSExposedFunctions.overright_spanset_span(this._ptr, span._ptr)); + => (Meos.OverrightSpansetSpan(this._ptr, span._ptr)); public bool IsOverOrRightOf(SpanSet spanSet) - => (MEOSExposedFunctions.overright_spanset_spanset(this._ptr, spanSet._ptr)); + => (Meos.OverrightSpansetSpanset(this._ptr, spanSet._ptr)); public double DistanceTo(Set set) => this.DistanceTo(set.ToSpanSet()); public double DistanceTo(Span span) - => MEOSExposedFunctions.distance_spanset_span(this._ptr, span._ptr); + => Meos.DistanceSpansetSpan(this._ptr, span._ptr); public double DistanceTo(SpanSet spanSet) - => MEOSExposedFunctions.distance_spanset_spanset(this._ptr, spanSet._ptr); + => Meos.DistanceSpansetSpanset(this._ptr, spanSet._ptr); public SpanSet IntersectionWith(Span span) { - var res = MEOSExposedFunctions.intersection_spanset_span(this._ptr, span._ptr); + var res = Meos.IntersectionSpansetSpan(this._ptr, span._ptr); return new SpanSet(res); } public SpanSet IntersectionWith(SpanSet spanSet) { - var res = MEOSExposedFunctions.intersection_spanset_spanset(this._ptr, spanSet._ptr); + var res = Meos.IntersectionSpansetSpanset(this._ptr, spanSet._ptr); return new SpanSet(res); } public SpanSet Minus(Span span) { - var res = MEOSExposedFunctions.minus_spanset_span(this._ptr, span._ptr); + var res = Meos.MinusSpansetSpan(this._ptr, span._ptr); return new SpanSet(res); } public SpanSet Minus(SpanSet spanSet) { - var res = MEOSExposedFunctions.minus_spanset_spanset(this._ptr, spanSet._ptr); + var res = Meos.MinusSpansetSpanset(this._ptr, spanSet._ptr); return new SpanSet(res); } public SpanSet UnionWith(Span span) { - var res = MEOSExposedFunctions.union_spanset_span(this._ptr, span._ptr); + var res = Meos.UnionSpansetSpan(this._ptr, span._ptr); return new SpanSet(res); } public SpanSet UnionWith(SpanSet spanSet) { - var res = MEOSExposedFunctions.union_spanset_spanset(this._ptr, spanSet._ptr); + var res = Meos.UnionSpansetSpanset(this._ptr, spanSet._ptr); return new SpanSet(res); } public bool Equals(SpanSet spanSet) - => (MEOSExposedFunctions.spanset_eq(this._ptr, spanSet._ptr)); + => (Meos.SpansetEq(this._ptr, spanSet._ptr)); public static SpanSet operator +(SpanSet spanSet1, SpanSet spanSet2) => spanSet1.UnionWith(spanSet2); @@ -209,22 +209,22 @@ public bool Equals(SpanSet spanSet) => spanSet1.Equals(spanSet2); public static bool operator !=(SpanSet spanSet1, SpanSet spanSet2) - => (MEOSExposedFunctions.spanset_ne(spanSet1._ptr, spanSet2._ptr)); + => (Meos.SpansetNe(spanSet1._ptr, spanSet2._ptr)); public static bool operator >(SpanSet spanSet1, SpanSet spanSet2) - => (MEOSExposedFunctions.spanset_gt(spanSet1._ptr, spanSet2._ptr)); + => (Meos.SpansetGt(spanSet1._ptr, spanSet2._ptr)); public static bool operator <(SpanSet spanSet1, SpanSet spanSet2) - => (MEOSExposedFunctions.spanset_lt(spanSet1._ptr, spanSet2._ptr)); + => (Meos.SpansetLt(spanSet1._ptr, spanSet2._ptr)); public static bool operator >=(SpanSet spanSet1, SpanSet spanSet2) - => (MEOSExposedFunctions.spanset_ge(spanSet1._ptr, spanSet2._ptr)); + => (Meos.SpansetGe(spanSet1._ptr, spanSet2._ptr)); public static bool operator <=(SpanSet spanSet1, SpanSet spanSet2) - => (MEOSExposedFunctions.spanset_le(spanSet1._ptr, spanSet2._ptr)); + => (Meos.SpansetLe(spanSet1._ptr, spanSet2._ptr)); public override int GetHashCode() - => (int)MEOSExposedFunctions.spanset_hash(this._ptr); + => (int)Meos.SpansetHash(this._ptr); } } diff --git a/MEOS.NET/Types/Collections/Time/Timestamp/TimestampTzSpan.cs b/MEOS.NET/Types/Collections/Time/Timestamp/TimestampTzSpan.cs index 1bab75d..76fbf37 100644 --- a/MEOS.NET/Types/Collections/Time/Timestamp/TimestampTzSpan.cs +++ b/MEOS.NET/Types/Collections/Time/Timestamp/TimestampTzSpan.cs @@ -1,5 +1,5 @@ using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Collections.Time.Timestamp { @@ -10,7 +10,7 @@ internal TimestampTzSpan(IntPtr ptr) : base(ptr) public static TimestampTzSpan FromBounds(DateTime tMin, DateTime tMax, bool tMinInclusive = true, bool tMaxInclusive = false) { - var res = MEOSExposedFunctions.tstzspan_make(tMin.ToPgTimestamp(), tMax.ToPgTimestamp(), tMinInclusive, tMaxInclusive); + var res = Meos.TstzspanMake(tMin.ToPgTimestamp(), tMax.ToPgTimestamp(), tMinInclusive, tMaxInclusive); return new TimestampTzSpan(res); } diff --git a/MEOS.NET/Types/Generated/BigIntSet.g.cs b/MEOS.NET/Types/Generated/BigIntSet.g.cs index 5da6c84..bea5bf9 100644 --- a/MEOS.NET/Types/Generated/BigIntSet.g.cs +++ b/MEOS.NET/Types/Generated/BigIntSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,22 +12,22 @@ public class BigIntSet : Set internal BigIntSet(IntPtr ptr) : base(ptr) { } public long EndValue() - => MEOSExposedFunctions.bigintset_end_value(this.Ptr); + => Meos.BigintsetEndValue(this.Ptr); public string Out() - => MEOSExposedFunctions.bigintset_out(this.Ptr); + => Meos.BigintsetOut(this.Ptr); public Set? ShiftScale(long shift, long width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSet(MEOSExposedFunctions.bigintset_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSet(Meos.BigintsetShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public long StartValue() - => MEOSExposedFunctions.bigintset_start_value(this.Ptr); + => Meos.BigintsetStartValue(this.Ptr); public long[] Values() - => MEOSExposedFunctions.bigintset_values(this.Ptr); + => Meos.BigintsetValues(this.Ptr); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.bigintset_in(str)); + => MEOSFactory.WrapSet(Meos.BigintsetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/BigIntSpan.g.cs b/MEOS.NET/Types/Generated/BigIntSpan.g.cs index 4bcc02e..3e44ff3 100644 --- a/MEOS.NET/Types/Generated/BigIntSpan.g.cs +++ b/MEOS.NET/Types/Generated/BigIntSpan.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,34 +12,34 @@ public class BigIntSpan : Span internal BigIntSpan(IntPtr ptr) : base(ptr) { } public Span? Expand(long value) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.bigintspan_expand(this.Ptr, value)); + => MEOSFactory.WrapSpan(Meos.BigintspanExpand(this.Ptr, value)); public long Lower() - => MEOSExposedFunctions.bigintspan_lower(this.Ptr); + => Meos.BigintspanLower(this.Ptr); public string Out() - => MEOSExposedFunctions.bigintspan_out(this.Ptr); + => Meos.BigintspanOut(this.Ptr); public Span? ShiftScale(long shift, long width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.bigintspan_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSpan(Meos.BigintspanShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public Span? ToFloatspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.bigintspan_to_floatspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.BigintspanToFloatspan(this.Ptr)); public Span? ToIntspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.bigintspan_to_intspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.BigintspanToIntspan(this.Ptr)); public long Upper() - => MEOSExposedFunctions.bigintspan_upper(this.Ptr); + => Meos.BigintspanUpper(this.Ptr); public long Width() - => MEOSExposedFunctions.bigintspan_width(this.Ptr); + => Meos.BigintspanWidth(this.Ptr); public static Span? In(string str) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.bigintspan_in(str)); + => MEOSFactory.WrapSpan(Meos.BigintspanIn(str)); public static Span? Make(long lower, long upper, bool lower_inc, bool upper_inc) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.bigintspan_make(lower, upper, lower_inc, upper_inc)); + => MEOSFactory.WrapSpan(Meos.BigintspanMake(lower, upper, lower_inc, upper_inc)); } } diff --git a/MEOS.NET/Types/Generated/BigIntSpanSet.g.cs b/MEOS.NET/Types/Generated/BigIntSpanSet.g.cs index 025e6c1..c2ef18b 100644 --- a/MEOS.NET/Types/Generated/BigIntSpanSet.g.cs +++ b/MEOS.NET/Types/Generated/BigIntSpanSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,22 +12,22 @@ public class BigIntSpanSet : SpanSet internal BigIntSpanSet(IntPtr ptr) : base(ptr) { } public long Lower() - => MEOSExposedFunctions.bigintspanset_lower(this.Ptr); + => Meos.BigintspansetLower(this.Ptr); public string Out() - => MEOSExposedFunctions.bigintspanset_out(this.Ptr); + => Meos.BigintspansetOut(this.Ptr); public SpanSet? ShiftScale(long shift, long width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.bigintspanset_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSpanSet(Meos.BigintspansetShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public long Upper() - => MEOSExposedFunctions.bigintspanset_upper(this.Ptr); + => Meos.BigintspansetUpper(this.Ptr); public long Width(bool boundspan) - => MEOSExposedFunctions.bigintspanset_width(this.Ptr, boundspan); + => Meos.BigintspansetWidth(this.Ptr, boundspan); public static SpanSet? In(string str) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.bigintspanset_in(str)); + => MEOSFactory.WrapSpanSet(Meos.BigintspansetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/Box.g.cs b/MEOS.NET/Types/Generated/Box.g.cs index 94f6ee2..c0a4b17 100644 --- a/MEOS.NET/Types/Generated/Box.g.cs +++ b/MEOS.NET/Types/Generated/Box.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/CbufferSet.g.cs b/MEOS.NET/Types/Generated/CbufferSet.g.cs index bdb21a5..5828df0 100644 --- a/MEOS.NET/Types/Generated/CbufferSet.g.cs +++ b/MEOS.NET/Types/Generated/CbufferSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,10 +12,10 @@ public class CbufferSet : Set internal CbufferSet(IntPtr ptr) : base(ptr) { } public string Out(int maxdd) - => MEOSExposedFunctions.cbufferset_out(this.Ptr, maxdd); + => Meos.CbuffersetOut(this.Ptr, maxdd); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.cbufferset_in(str)); + => MEOSFactory.WrapSet(Meos.CbuffersetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/Collection.g.cs b/MEOS.NET/Types/Generated/Collection.g.cs index 016e44d..1fc168a 100644 --- a/MEOS.NET/Types/Generated/Collection.g.cs +++ b/MEOS.NET/Types/Generated/Collection.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/DateSet.g.cs b/MEOS.NET/Types/Generated/DateSet.g.cs index 531ecf6..f90a156 100644 --- a/MEOS.NET/Types/Generated/DateSet.g.cs +++ b/MEOS.NET/Types/Generated/DateSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,25 +12,25 @@ public class DateSet : Set internal DateSet(IntPtr ptr) : base(ptr) { } public DateOnly EndValue() - => MEOSConvert.ToDateOnly(MEOSExposedFunctions.dateset_end_value(this.Ptr)); + => MEOSConvert.ToDateOnly(Meos.DatesetEndValue(this.Ptr)); public string Out() - => MEOSExposedFunctions.dateset_out(this.Ptr); + => Meos.DatesetOut(this.Ptr); public Set? ShiftScale(int shift, int width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSet(MEOSExposedFunctions.dateset_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSet(Meos.DatesetShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public DateOnly StartValue() - => MEOSConvert.ToDateOnly(MEOSExposedFunctions.dateset_start_value(this.Ptr)); + => MEOSConvert.ToDateOnly(Meos.DatesetStartValue(this.Ptr)); public Set? ToTstzset() - => MEOSFactory.WrapSet(MEOSExposedFunctions.dateset_to_tstzset(this.Ptr)); + => MEOSFactory.WrapSet(Meos.DatesetToTstzset(this.Ptr)); public int[] Values() - => MEOSExposedFunctions.dateset_values(this.Ptr); + => Meos.DatesetValues(this.Ptr); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.dateset_in(str)); + => MEOSFactory.WrapSet(Meos.DatesetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/DateSpan.g.cs b/MEOS.NET/Types/Generated/DateSpan.g.cs index e1452dc..bcb9029 100644 --- a/MEOS.NET/Types/Generated/DateSpan.g.cs +++ b/MEOS.NET/Types/Generated/DateSpan.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,25 +12,25 @@ public class DateSpan : Span internal DateSpan(IntPtr ptr) : base(ptr) { } public DateOnly Lower() - => MEOSConvert.ToDateOnly(MEOSExposedFunctions.datespan_lower(this.Ptr)); + => MEOSConvert.ToDateOnly(Meos.DatespanLower(this.Ptr)); public string Out() - => MEOSExposedFunctions.datespan_out(this.Ptr); + => Meos.DatespanOut(this.Ptr); public Span? ShiftScale(int shift, int width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.datespan_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSpan(Meos.DatespanShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public Span? ToTstzspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.datespan_to_tstzspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.DatespanToTstzspan(this.Ptr)); public DateOnly Upper() - => MEOSConvert.ToDateOnly(MEOSExposedFunctions.datespan_upper(this.Ptr)); + => MEOSConvert.ToDateOnly(Meos.DatespanUpper(this.Ptr)); public static Span? In(string str) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.datespan_in(str)); + => MEOSFactory.WrapSpan(Meos.DatespanIn(str)); public static Span? Make(DateOnly lower, DateOnly upper, bool lower_inc, bool upper_inc) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.datespan_make(MEOSConvert.ToDateADT(lower), MEOSConvert.ToDateADT(upper), lower_inc, upper_inc)); + => MEOSFactory.WrapSpan(Meos.DatespanMake(MEOSConvert.ToDateADT(lower), MEOSConvert.ToDateADT(upper), lower_inc, upper_inc)); } } diff --git a/MEOS.NET/Types/Generated/DateSpanSet.g.cs b/MEOS.NET/Types/Generated/DateSpanSet.g.cs index 6e5be3e..fb91d7b 100644 --- a/MEOS.NET/Types/Generated/DateSpanSet.g.cs +++ b/MEOS.NET/Types/Generated/DateSpanSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,34 +12,34 @@ public class DateSpanSet : SpanSet internal DateSpanSet(IntPtr ptr) : base(ptr) { } public Set? Dates() - => MEOSFactory.WrapSet(MEOSExposedFunctions.datespanset_dates(this.Ptr)); + => MEOSFactory.WrapSet(Meos.DatespansetDates(this.Ptr)); public DateOnly EndDate() - => MEOSConvert.ToDateOnly(MEOSExposedFunctions.datespanset_end_date(this.Ptr)); + => MEOSConvert.ToDateOnly(Meos.DatespansetEndDate(this.Ptr)); public DateOnly Lower() - => MEOSConvert.ToDateOnly(MEOSExposedFunctions.datespanset_lower(this.Ptr)); + => MEOSConvert.ToDateOnly(Meos.DatespansetLower(this.Ptr)); public int NumDates() - => MEOSExposedFunctions.datespanset_num_dates(this.Ptr); + => Meos.DatespansetNumDates(this.Ptr); public string Out() - => MEOSExposedFunctions.datespanset_out(this.Ptr); + => Meos.DatespansetOut(this.Ptr); public SpanSet? ShiftScale(int shift, int width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.datespanset_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSpanSet(Meos.DatespansetShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public DateOnly StartDate() - => MEOSConvert.ToDateOnly(MEOSExposedFunctions.datespanset_start_date(this.Ptr)); + => MEOSConvert.ToDateOnly(Meos.DatespansetStartDate(this.Ptr)); public SpanSet? ToTstzspanset() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.datespanset_to_tstzspanset(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.DatespansetToTstzspanset(this.Ptr)); public DateOnly Upper() - => MEOSConvert.ToDateOnly(MEOSExposedFunctions.datespanset_upper(this.Ptr)); + => MEOSConvert.ToDateOnly(Meos.DatespansetUpper(this.Ptr)); public static SpanSet? In(string str) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.datespanset_in(str)); + => MEOSFactory.WrapSpanSet(Meos.DatespansetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/FloatSet.g.cs b/MEOS.NET/Types/Generated/FloatSet.g.cs index 516a8f2..006c471 100644 --- a/MEOS.NET/Types/Generated/FloatSet.g.cs +++ b/MEOS.NET/Types/Generated/FloatSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,37 +12,37 @@ public class FloatSet : Set internal FloatSet(IntPtr ptr) : base(ptr) { } public Set? Ceil() - => MEOSFactory.WrapSet(MEOSExposedFunctions.floatset_ceil(this.Ptr)); + => MEOSFactory.WrapSet(Meos.FloatsetCeil(this.Ptr)); public Set? Degrees(bool normalize) - => MEOSFactory.WrapSet(MEOSExposedFunctions.floatset_degrees(this.Ptr, normalize)); + => MEOSFactory.WrapSet(Meos.FloatsetDegrees(this.Ptr, normalize)); public double EndValue() - => MEOSExposedFunctions.floatset_end_value(this.Ptr); + => Meos.FloatsetEndValue(this.Ptr); public Set? Floor() - => MEOSFactory.WrapSet(MEOSExposedFunctions.floatset_floor(this.Ptr)); + => MEOSFactory.WrapSet(Meos.FloatsetFloor(this.Ptr)); public string Out(int maxdd) - => MEOSExposedFunctions.floatset_out(this.Ptr, maxdd); + => Meos.FloatsetOut(this.Ptr, maxdd); public Set? Radians() - => MEOSFactory.WrapSet(MEOSExposedFunctions.floatset_radians(this.Ptr)); + => MEOSFactory.WrapSet(Meos.FloatsetRadians(this.Ptr)); public Set? ShiftScale(double shift, double width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSet(MEOSExposedFunctions.floatset_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSet(Meos.FloatsetShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public double StartValue() - => MEOSExposedFunctions.floatset_start_value(this.Ptr); + => Meos.FloatsetStartValue(this.Ptr); public Set? ToIntset() - => MEOSFactory.WrapSet(MEOSExposedFunctions.floatset_to_intset(this.Ptr)); + => MEOSFactory.WrapSet(Meos.FloatsetToIntset(this.Ptr)); public double[] Values() - => MEOSExposedFunctions.floatset_values(this.Ptr); + => Meos.FloatsetValues(this.Ptr); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.floatset_in(str)); + => MEOSFactory.WrapSet(Meos.FloatsetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/FloatSpan.g.cs b/MEOS.NET/Types/Generated/FloatSpan.g.cs index baaaaa8..d0d7d65 100644 --- a/MEOS.NET/Types/Generated/FloatSpan.g.cs +++ b/MEOS.NET/Types/Generated/FloatSpan.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,49 +12,49 @@ public class FloatSpan : Span internal FloatSpan(IntPtr ptr) : base(ptr) { } public Span? Ceil() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_ceil(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.FloatspanCeil(this.Ptr)); public Span? Degrees(bool normalize) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_degrees(this.Ptr, normalize)); + => MEOSFactory.WrapSpan(Meos.FloatspanDegrees(this.Ptr, normalize)); public Span? Expand(double value) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_expand(this.Ptr, value)); + => MEOSFactory.WrapSpan(Meos.FloatspanExpand(this.Ptr, value)); public Span? Floor() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_floor(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.FloatspanFloor(this.Ptr)); public double Lower() - => MEOSExposedFunctions.floatspan_lower(this.Ptr); + => Meos.FloatspanLower(this.Ptr); public string Out(int maxdd) - => MEOSExposedFunctions.floatspan_out(this.Ptr, maxdd); + => Meos.FloatspanOut(this.Ptr, maxdd); public Span? Radians() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_radians(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.FloatspanRadians(this.Ptr)); public Span? Round(int maxdd) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_round(this.Ptr, maxdd)); + => MEOSFactory.WrapSpan(Meos.FloatspanRound(this.Ptr, maxdd)); public Span? ShiftScale(double shift, double width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSpan(Meos.FloatspanShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public Span? ToBigintspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_to_bigintspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.FloatspanToBigintspan(this.Ptr)); public Span? ToIntspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_to_intspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.FloatspanToIntspan(this.Ptr)); public double Upper() - => MEOSExposedFunctions.floatspan_upper(this.Ptr); + => Meos.FloatspanUpper(this.Ptr); public double Width() - => MEOSExposedFunctions.floatspan_width(this.Ptr); + => Meos.FloatspanWidth(this.Ptr); public static Span? In(string str) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_in(str)); + => MEOSFactory.WrapSpan(Meos.FloatspanIn(str)); public static Span? Make(double lower, double upper, bool lower_inc, bool upper_inc) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.floatspan_make(lower, upper, lower_inc, upper_inc)); + => MEOSFactory.WrapSpan(Meos.FloatspanMake(lower, upper, lower_inc, upper_inc)); } } diff --git a/MEOS.NET/Types/Generated/FloatSpanSet.g.cs b/MEOS.NET/Types/Generated/FloatSpanSet.g.cs index c137e16..5879a81 100644 --- a/MEOS.NET/Types/Generated/FloatSpanSet.g.cs +++ b/MEOS.NET/Types/Generated/FloatSpanSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,40 +12,40 @@ public class FloatSpanSet : SpanSet internal FloatSpanSet(IntPtr ptr) : base(ptr) { } public SpanSet? Ceil() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.floatspanset_ceil(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.FloatspansetCeil(this.Ptr)); public SpanSet? Degrees(bool normalize) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.floatspanset_degrees(this.Ptr, normalize)); + => MEOSFactory.WrapSpanSet(Meos.FloatspansetDegrees(this.Ptr, normalize)); public SpanSet? Floor() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.floatspanset_floor(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.FloatspansetFloor(this.Ptr)); public double Lower() - => MEOSExposedFunctions.floatspanset_lower(this.Ptr); + => Meos.FloatspansetLower(this.Ptr); public string Out(int maxdd) - => MEOSExposedFunctions.floatspanset_out(this.Ptr, maxdd); + => Meos.FloatspansetOut(this.Ptr, maxdd); public SpanSet? Radians() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.floatspanset_radians(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.FloatspansetRadians(this.Ptr)); public SpanSet? Round(int maxdd) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.floatspanset_round(this.Ptr, maxdd)); + => MEOSFactory.WrapSpanSet(Meos.FloatspansetRound(this.Ptr, maxdd)); public SpanSet? ShiftScale(double shift, double width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.floatspanset_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSpanSet(Meos.FloatspansetShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public SpanSet? ToIntspanset() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.floatspanset_to_intspanset(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.FloatspansetToIntspanset(this.Ptr)); public double Upper() - => MEOSExposedFunctions.floatspanset_upper(this.Ptr); + => Meos.FloatspansetUpper(this.Ptr); public double Width(bool boundspan) - => MEOSExposedFunctions.floatspanset_width(this.Ptr, boundspan); + => Meos.FloatspansetWidth(this.Ptr, boundspan); public static SpanSet? In(string str) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.floatspanset_in(str)); + => MEOSFactory.WrapSpanSet(Meos.FloatspansetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/GeogSet.g.cs b/MEOS.NET/Types/Generated/GeogSet.g.cs index e9a43ab..307d7f5 100644 --- a/MEOS.NET/Types/Generated/GeogSet.g.cs +++ b/MEOS.NET/Types/Generated/GeogSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class GeogSet : Set internal GeogSet(IntPtr ptr) : base(ptr) { } public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.geogset_in(str)); + => MEOSFactory.WrapSet(Meos.GeogsetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/GeomSet.g.cs b/MEOS.NET/Types/Generated/GeomSet.g.cs index b470b42..56ddc4e 100644 --- a/MEOS.NET/Types/Generated/GeomSet.g.cs +++ b/MEOS.NET/Types/Generated/GeomSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class GeomSet : Set internal GeomSet(IntPtr ptr) : base(ptr) { } public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.geomset_in(str)); + => MEOSFactory.WrapSet(Meos.GeomsetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/IntSet.g.cs b/MEOS.NET/Types/Generated/IntSet.g.cs index 13bb36e..33ad2f8 100644 --- a/MEOS.NET/Types/Generated/IntSet.g.cs +++ b/MEOS.NET/Types/Generated/IntSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,25 +12,25 @@ public class IntSet : Set internal IntSet(IntPtr ptr) : base(ptr) { } public int EndValue() - => MEOSExposedFunctions.intset_end_value(this.Ptr); + => Meos.IntsetEndValue(this.Ptr); public string Out() - => MEOSExposedFunctions.intset_out(this.Ptr); + => Meos.IntsetOut(this.Ptr); public Set? ShiftScale(int shift, int width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSet(MEOSExposedFunctions.intset_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSet(Meos.IntsetShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public int StartValue() - => MEOSExposedFunctions.intset_start_value(this.Ptr); + => Meos.IntsetStartValue(this.Ptr); public Set? ToFloatset() - => MEOSFactory.WrapSet(MEOSExposedFunctions.intset_to_floatset(this.Ptr)); + => MEOSFactory.WrapSet(Meos.IntsetToFloatset(this.Ptr)); public int[] Values() - => MEOSExposedFunctions.intset_values(this.Ptr); + => Meos.IntsetValues(this.Ptr); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.intset_in(str)); + => MEOSFactory.WrapSet(Meos.IntsetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/IntSpan.g.cs b/MEOS.NET/Types/Generated/IntSpan.g.cs index 19d01c4..a235483 100644 --- a/MEOS.NET/Types/Generated/IntSpan.g.cs +++ b/MEOS.NET/Types/Generated/IntSpan.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,34 +12,34 @@ public class IntSpan : Span internal IntSpan(IntPtr ptr) : base(ptr) { } public Span? Expand(int value) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.intspan_expand(this.Ptr, value)); + => MEOSFactory.WrapSpan(Meos.IntspanExpand(this.Ptr, value)); public int Lower() - => MEOSExposedFunctions.intspan_lower(this.Ptr); + => Meos.IntspanLower(this.Ptr); public string Out() - => MEOSExposedFunctions.intspan_out(this.Ptr); + => Meos.IntspanOut(this.Ptr); public Span? ShiftScale(int shift, int width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.intspan_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSpan(Meos.IntspanShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public Span? ToBigintspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.intspan_to_bigintspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.IntspanToBigintspan(this.Ptr)); public Span? ToFloatspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.intspan_to_floatspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.IntspanToFloatspan(this.Ptr)); public int Upper() - => MEOSExposedFunctions.intspan_upper(this.Ptr); + => Meos.IntspanUpper(this.Ptr); public int Width() - => MEOSExposedFunctions.intspan_width(this.Ptr); + => Meos.IntspanWidth(this.Ptr); public static Span? In(string str) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.intspan_in(str)); + => MEOSFactory.WrapSpan(Meos.IntspanIn(str)); public static Span? Make(int lower, int upper, bool lower_inc, bool upper_inc) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.intspan_make(lower, upper, lower_inc, upper_inc)); + => MEOSFactory.WrapSpan(Meos.IntspanMake(lower, upper, lower_inc, upper_inc)); } } diff --git a/MEOS.NET/Types/Generated/IntSpanSet.g.cs b/MEOS.NET/Types/Generated/IntSpanSet.g.cs index 5471eac..5f54ca1 100644 --- a/MEOS.NET/Types/Generated/IntSpanSet.g.cs +++ b/MEOS.NET/Types/Generated/IntSpanSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,25 +12,25 @@ public class IntSpanSet : SpanSet internal IntSpanSet(IntPtr ptr) : base(ptr) { } public int Lower() - => MEOSExposedFunctions.intspanset_lower(this.Ptr); + => Meos.IntspansetLower(this.Ptr); public string Out() - => MEOSExposedFunctions.intspanset_out(this.Ptr); + => Meos.IntspansetOut(this.Ptr); public SpanSet? ShiftScale(int shift, int width, bool hasshift, bool haswidth) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.intspanset_shift_scale(this.Ptr, shift, width, hasshift, haswidth)); + => MEOSFactory.WrapSpanSet(Meos.IntspansetShiftScale(this.Ptr, shift, width, hasshift, haswidth)); public SpanSet? ToFloatspanset() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.intspanset_to_floatspanset(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.IntspansetToFloatspanset(this.Ptr)); public int Upper() - => MEOSExposedFunctions.intspanset_upper(this.Ptr); + => Meos.IntspansetUpper(this.Ptr); public int Width(bool boundspan) - => MEOSExposedFunctions.intspanset_width(this.Ptr, boundspan); + => Meos.IntspansetWidth(this.Ptr, boundspan); public static SpanSet? In(string str) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.intspanset_in(str)); + => MEOSFactory.WrapSpanSet(Meos.IntspansetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/MEOSConvert.g.cs b/MEOS.NET/Types/Generated/MEOSConvert.g.cs index 0ecc2c9..c506a3e 100644 --- a/MEOS.NET/Types/Generated/MEOSConvert.g.cs +++ b/MEOS.NET/Types/Generated/MEOSConvert.g.cs @@ -2,7 +2,7 @@ using System.Globalization; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,24 +12,24 @@ internal static class MEOSConvert { /// A MEOS TimestampTz as a DateTime. internal static DateTime ToDateTime(long timestamptz) - => DateTime.Parse(MEOSExposedFunctions.timestamptz_out(timestamptz), + => DateTime.Parse(Meos.TimestamptzOut(timestamptz), CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal); /// A DateTime as a MEOS TimestampTz. internal static long ToTimestampTz(DateTime moment) - => MEOSExposedFunctions.timestamptz_in( + => Meos.TimestamptzIn( moment.ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss.ffffff+00", CultureInfo.InvariantCulture), -1); /// A MEOS DateADT as a DateOnly. internal static DateOnly ToDateOnly(int date) - => DateOnly.Parse(MEOSExposedFunctions.date_out(date), + => DateOnly.Parse(Meos.DateOut(date), CultureInfo.InvariantCulture); /// A DateOnly as a MEOS DateADT. internal static int ToDateADT(DateOnly day) - => MEOSExposedFunctions.date_in( + => Meos.DateIn( day.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture)); } } diff --git a/MEOS.NET/Types/Generated/NpointSet.g.cs b/MEOS.NET/Types/Generated/NpointSet.g.cs index 0111beb..36d26d1 100644 --- a/MEOS.NET/Types/Generated/NpointSet.g.cs +++ b/MEOS.NET/Types/Generated/NpointSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,13 +12,13 @@ public class NpointSet : Set internal NpointSet(IntPtr ptr) : base(ptr) { } public string Out(int maxdd) - => MEOSExposedFunctions.npointset_out(this.Ptr, maxdd); + => Meos.NpointsetOut(this.Ptr, maxdd); public Set? Routes() - => MEOSFactory.WrapSet(MEOSExposedFunctions.npointset_routes(this.Ptr)); + => MEOSFactory.WrapSet(Meos.NpointsetRoutes(this.Ptr)); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.npointset_in(str)); + => MEOSFactory.WrapSet(Meos.NpointsetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/PoseSet.g.cs b/MEOS.NET/Types/Generated/PoseSet.g.cs index 0877721..94fb76b 100644 --- a/MEOS.NET/Types/Generated/PoseSet.g.cs +++ b/MEOS.NET/Types/Generated/PoseSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,10 +12,10 @@ public class PoseSet : Set internal PoseSet(IntPtr ptr) : base(ptr) { } public string Out(int maxdd) - => MEOSExposedFunctions.poseset_out(this.Ptr, maxdd); + => Meos.PosesetOut(this.Ptr, maxdd); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.poseset_in(str)); + => MEOSFactory.WrapSet(Meos.PosesetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/STBox.g.cs b/MEOS.NET/Types/Generated/STBox.g.cs index 9d1f725..151cbe9 100644 --- a/MEOS.NET/Types/Generated/STBox.g.cs +++ b/MEOS.NET/Types/Generated/STBox.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,94 +12,94 @@ public class STBox : Box internal STBox(IntPtr ptr) : base(ptr) { } public double Area(bool spheroid) - => MEOSExposedFunctions.stbox_area(this.Ptr, spheroid); + => Meos.StboxArea(this.Ptr, spheroid); public int Cmp(STBox box2) - => MEOSExposedFunctions.stbox_cmp(this.Ptr, box2.Ptr); + => Meos.StboxCmp(this.Ptr, box2.Ptr); public STBox? Copy() - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_copy(this.Ptr)); + => MEOSFactory.WrapSTBox(Meos.StboxCopy(this.Ptr)); public bool Eq(STBox box2) - => MEOSExposedFunctions.stbox_eq(this.Ptr, box2.Ptr); + => Meos.StboxEq(this.Ptr, box2.Ptr); public STBox? ExpandSpace(double d) - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_expand_space(this.Ptr, d)); + => MEOSFactory.WrapSTBox(Meos.StboxExpandSpace(this.Ptr, d)); public bool Ge(STBox box2) - => MEOSExposedFunctions.stbox_ge(this.Ptr, box2.Ptr); + => Meos.StboxGe(this.Ptr, box2.Ptr); public STBox? GetSpace() - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_get_space(this.Ptr)); + => MEOSFactory.WrapSTBox(Meos.StboxGetSpace(this.Ptr)); public bool Gt(STBox box2) - => MEOSExposedFunctions.stbox_gt(this.Ptr, box2.Ptr); + => Meos.StboxGt(this.Ptr, box2.Ptr); public uint Hash() - => MEOSExposedFunctions.stbox_hash(this.Ptr); + => Meos.StboxHash(this.Ptr); public ulong HashExtended(ulong seed) - => MEOSExposedFunctions.stbox_hash_extended(this.Ptr, seed); + => Meos.StboxHashExtended(this.Ptr, seed); public bool Hast() - => MEOSExposedFunctions.stbox_hast(this.Ptr); + => Meos.StboxHast(this.Ptr); public bool Hasx() - => MEOSExposedFunctions.stbox_hasx(this.Ptr); + => Meos.StboxHasx(this.Ptr); public bool Hasz() - => MEOSExposedFunctions.stbox_hasz(this.Ptr); + => Meos.StboxHasz(this.Ptr); public bool Isgeodetic() - => MEOSExposedFunctions.stbox_isgeodetic(this.Ptr); + => Meos.StboxIsgeodetic(this.Ptr); public bool Le(STBox box2) - => MEOSExposedFunctions.stbox_le(this.Ptr, box2.Ptr); + => Meos.StboxLe(this.Ptr, box2.Ptr); public bool Lt(STBox box2) - => MEOSExposedFunctions.stbox_lt(this.Ptr, box2.Ptr); + => Meos.StboxLt(this.Ptr, box2.Ptr); public bool Ne(STBox box2) - => MEOSExposedFunctions.stbox_ne(this.Ptr, box2.Ptr); + => Meos.StboxNe(this.Ptr, box2.Ptr); public string Out(int maxdd) - => MEOSExposedFunctions.stbox_out(this.Ptr, maxdd); + => Meos.StboxOut(this.Ptr, maxdd); public double Perimeter(bool spheroid) - => MEOSExposedFunctions.stbox_perimeter(this.Ptr, spheroid); + => Meos.StboxPerimeter(this.Ptr, spheroid); public STBox? Round(int maxdd) - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_round(this.Ptr, maxdd)); + => MEOSFactory.WrapSTBox(Meos.StboxRound(this.Ptr, maxdd)); public int SRID() - => MEOSExposedFunctions.stbox_srid(this.Ptr); + => Meos.StboxSrid(this.Ptr); public STBox? SetSRID(int srid) - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_set_srid(this.Ptr, srid)); + => MEOSFactory.WrapSTBox(Meos.StboxSetSrid(this.Ptr, srid)); public double SpatialDistance(STBox box2) - => MEOSExposedFunctions.stbox_spatial_distance(this.Ptr, box2.Ptr); + => Meos.StboxSpatialDistance(this.Ptr, box2.Ptr); public Span? ToTstzspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.stbox_to_tstzspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.StboxToTstzspan(this.Ptr)); public STBox? Transform(int srid) - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_transform(this.Ptr, srid)); + => MEOSFactory.WrapSTBox(Meos.StboxTransform(this.Ptr, srid)); public STBox? TransformPipeline(string pipelinestr, int srid, bool is_forward) - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_transform_pipeline(this.Ptr, pipelinestr, srid, is_forward)); + => MEOSFactory.WrapSTBox(Meos.StboxTransformPipeline(this.Ptr, pipelinestr, srid, is_forward)); public double Volume() - => MEOSExposedFunctions.stbox_volume(this.Ptr); + => Meos.StboxVolume(this.Ptr); public static STBox? FromHEXWKB(string hexwkb) - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_from_hexwkb(hexwkb)); + => MEOSFactory.WrapSTBox(Meos.StboxFromHexwkb(hexwkb)); public static STBox? In(string str) - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_in(str)); + => MEOSFactory.WrapSTBox(Meos.StboxIn(str)); public static STBox? Make(bool hasx, bool hasz, bool geodetic, int srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, Span s) - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.stbox_make(hasx, hasz, geodetic, srid, xmin, xmax, ymin, ymax, zmin, zmax, s.Ptr)); + => MEOSFactory.WrapSTBox(Meos.StboxMake(hasx, hasz, geodetic, srid, xmin, xmax, ymin, ymax, zmin, zmax, s.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/Set.g.cs b/MEOS.NET/Types/Generated/Set.g.cs index cb02231..8aefa47 100644 --- a/MEOS.NET/Types/Generated/Set.g.cs +++ b/MEOS.NET/Types/Generated/Set.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,52 +12,52 @@ public class Set : Collection internal Set(IntPtr ptr) : base(ptr) { } public int Cmp(Set s2) - => MEOSExposedFunctions.set_cmp(this.Ptr, s2.Ptr); + => Meos.SetCmp(this.Ptr, s2.Ptr); public Set? Copy() - => MEOSFactory.WrapSet(MEOSExposedFunctions.set_copy(this.Ptr)); + => MEOSFactory.WrapSet(Meos.SetCopy(this.Ptr)); public bool Eq(Set s2) - => MEOSExposedFunctions.set_eq(this.Ptr, s2.Ptr); + => Meos.SetEq(this.Ptr, s2.Ptr); public bool Ge(Set s2) - => MEOSExposedFunctions.set_ge(this.Ptr, s2.Ptr); + => Meos.SetGe(this.Ptr, s2.Ptr); public bool Gt(Set s2) - => MEOSExposedFunctions.set_gt(this.Ptr, s2.Ptr); + => Meos.SetGt(this.Ptr, s2.Ptr); public uint Hash() - => MEOSExposedFunctions.set_hash(this.Ptr); + => Meos.SetHash(this.Ptr); public ulong HashExtended(ulong seed) - => MEOSExposedFunctions.set_hash_extended(this.Ptr, seed); + => Meos.SetHashExtended(this.Ptr, seed); public bool Le(Set s2) - => MEOSExposedFunctions.set_le(this.Ptr, s2.Ptr); + => Meos.SetLe(this.Ptr, s2.Ptr); public bool Lt(Set s2) - => MEOSExposedFunctions.set_lt(this.Ptr, s2.Ptr); + => Meos.SetLt(this.Ptr, s2.Ptr); public bool Ne(Set s2) - => MEOSExposedFunctions.set_ne(this.Ptr, s2.Ptr); + => Meos.SetNe(this.Ptr, s2.Ptr); public int NumValues() - => MEOSExposedFunctions.set_num_values(this.Ptr); + => Meos.SetNumValues(this.Ptr); public Set? Round(int maxdd) - => MEOSFactory.WrapSet(MEOSExposedFunctions.set_round(this.Ptr, maxdd)); + => MEOSFactory.WrapSet(Meos.SetRound(this.Ptr, maxdd)); public Span? ToSpan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.set_to_span(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.SetToSpan(this.Ptr)); public SpanSet? ToSpanset() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.set_to_spanset(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.SetToSpanset(this.Ptr)); public TBox? ToTbox() - => MEOSFactory.WrapTBox(MEOSExposedFunctions.set_to_tbox(this.Ptr)); + => MEOSFactory.WrapTBox(Meos.SetToTbox(this.Ptr)); public static Set? FromHEXWKB(string hexwkb) - => MEOSFactory.WrapSet(MEOSExposedFunctions.set_from_hexwkb(hexwkb)); + => MEOSFactory.WrapSet(Meos.SetFromHexwkb(hexwkb)); } } diff --git a/MEOS.NET/Types/Generated/Span.g.cs b/MEOS.NET/Types/Generated/Span.g.cs index 8448440..9fae792 100644 --- a/MEOS.NET/Types/Generated/Span.g.cs +++ b/MEOS.NET/Types/Generated/Span.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,49 +12,49 @@ public class Span : Collection internal Span(IntPtr ptr) : base(ptr) { } public int Cmp(Span s2) - => MEOSExposedFunctions.span_cmp(this.Ptr, s2.Ptr); + => Meos.SpanCmp(this.Ptr, s2.Ptr); public Span? Copy() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.span_copy(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.SpanCopy(this.Ptr)); public bool Eq(Span s2) - => MEOSExposedFunctions.span_eq(this.Ptr, s2.Ptr); + => Meos.SpanEq(this.Ptr, s2.Ptr); public bool Ge(Span s2) - => MEOSExposedFunctions.span_ge(this.Ptr, s2.Ptr); + => Meos.SpanGe(this.Ptr, s2.Ptr); public bool Gt(Span s2) - => MEOSExposedFunctions.span_gt(this.Ptr, s2.Ptr); + => Meos.SpanGt(this.Ptr, s2.Ptr); public uint Hash() - => MEOSExposedFunctions.span_hash(this.Ptr); + => Meos.SpanHash(this.Ptr); public ulong HashExtended(ulong seed) - => MEOSExposedFunctions.span_hash_extended(this.Ptr, seed); + => Meos.SpanHashExtended(this.Ptr, seed); public bool Le(Span s2) - => MEOSExposedFunctions.span_le(this.Ptr, s2.Ptr); + => Meos.SpanLe(this.Ptr, s2.Ptr); public bool LowerInc() - => MEOSExposedFunctions.span_lower_inc(this.Ptr); + => Meos.SpanLowerInc(this.Ptr); public bool Lt(Span s2) - => MEOSExposedFunctions.span_lt(this.Ptr, s2.Ptr); + => Meos.SpanLt(this.Ptr, s2.Ptr); public bool Ne(Span s2) - => MEOSExposedFunctions.span_ne(this.Ptr, s2.Ptr); + => Meos.SpanNe(this.Ptr, s2.Ptr); public SpanSet? ToSpanset() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.span_to_spanset(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.SpanToSpanset(this.Ptr)); public TBox? ToTbox() - => MEOSFactory.WrapTBox(MEOSExposedFunctions.span_to_tbox(this.Ptr)); + => MEOSFactory.WrapTBox(Meos.SpanToTbox(this.Ptr)); public bool UpperInc() - => MEOSExposedFunctions.span_upper_inc(this.Ptr); + => Meos.SpanUpperInc(this.Ptr); public static Span? FromHEXWKB(string hexwkb) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.span_from_hexwkb(hexwkb)); + => MEOSFactory.WrapSpan(Meos.SpanFromHexwkb(hexwkb)); } } diff --git a/MEOS.NET/Types/Generated/SpanSet.g.cs b/MEOS.NET/Types/Generated/SpanSet.g.cs index 20093ea..3c907ec 100644 --- a/MEOS.NET/Types/Generated/SpanSet.g.cs +++ b/MEOS.NET/Types/Generated/SpanSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,64 +12,64 @@ public class SpanSet : Collection internal SpanSet(IntPtr ptr) : base(ptr) { } public int Cmp(SpanSet ss2) - => MEOSExposedFunctions.spanset_cmp(this.Ptr, ss2.Ptr); + => Meos.SpansetCmp(this.Ptr, ss2.Ptr); public SpanSet? Copy() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.spanset_copy(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.SpansetCopy(this.Ptr)); public Span? EndSpan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.spanset_end_span(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.SpansetEndSpan(this.Ptr)); public bool Eq(SpanSet ss2) - => MEOSExposedFunctions.spanset_eq(this.Ptr, ss2.Ptr); + => Meos.SpansetEq(this.Ptr, ss2.Ptr); public bool Ge(SpanSet ss2) - => MEOSExposedFunctions.spanset_ge(this.Ptr, ss2.Ptr); + => Meos.SpansetGe(this.Ptr, ss2.Ptr); public bool Gt(SpanSet ss2) - => MEOSExposedFunctions.spanset_gt(this.Ptr, ss2.Ptr); + => Meos.SpansetGt(this.Ptr, ss2.Ptr); public uint Hash() - => MEOSExposedFunctions.spanset_hash(this.Ptr); + => Meos.SpansetHash(this.Ptr); public ulong HashExtended(ulong seed) - => MEOSExposedFunctions.spanset_hash_extended(this.Ptr, seed); + => Meos.SpansetHashExtended(this.Ptr, seed); public bool Le(SpanSet ss2) - => MEOSExposedFunctions.spanset_le(this.Ptr, ss2.Ptr); + => Meos.SpansetLe(this.Ptr, ss2.Ptr); public bool LowerInc() - => MEOSExposedFunctions.spanset_lower_inc(this.Ptr); + => Meos.SpansetLowerInc(this.Ptr); public bool Lt(SpanSet ss2) - => MEOSExposedFunctions.spanset_lt(this.Ptr, ss2.Ptr); + => Meos.SpansetLt(this.Ptr, ss2.Ptr); public bool Ne(SpanSet ss2) - => MEOSExposedFunctions.spanset_ne(this.Ptr, ss2.Ptr); + => Meos.SpansetNe(this.Ptr, ss2.Ptr); public int NumSpans() - => MEOSExposedFunctions.spanset_num_spans(this.Ptr); + => Meos.SpansetNumSpans(this.Ptr); public Span? Span() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.spanset_span(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.SpansetSpan(this.Ptr)); public Span? SpanN(int i) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.spanset_span_n(this.Ptr, i)); + => MEOSFactory.WrapSpan(Meos.SpansetSpanN(this.Ptr, i)); public Span?[] Spanarr() - => MEOSFactory.WrapSpanArray(MEOSExposedFunctions.spanset_spanarr(this.Ptr)); + => MEOSFactory.WrapSpanArray(Meos.SpansetSpanarr(this.Ptr)); public Span? StartSpan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.spanset_start_span(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.SpansetStartSpan(this.Ptr)); public TBox? ToTbox() - => MEOSFactory.WrapTBox(MEOSExposedFunctions.spanset_to_tbox(this.Ptr)); + => MEOSFactory.WrapTBox(Meos.SpansetToTbox(this.Ptr)); public bool UpperInc() - => MEOSExposedFunctions.spanset_upper_inc(this.Ptr); + => Meos.SpansetUpperInc(this.Ptr); public static SpanSet? FromHEXWKB(string hexwkb) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.spanset_from_hexwkb(hexwkb)); + => MEOSFactory.WrapSpanSet(Meos.SpansetFromHexwkb(hexwkb)); } } diff --git a/MEOS.NET/Types/Generated/TAlpha.g.cs b/MEOS.NET/Types/Generated/TAlpha.g.cs index 91b500a..3a37e47 100644 --- a/MEOS.NET/Types/Generated/TAlpha.g.cs +++ b/MEOS.NET/Types/Generated/TAlpha.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TBigint.g.cs b/MEOS.NET/Types/Generated/TBigint.g.cs index c258aea..6a79e7c 100644 --- a/MEOS.NET/Types/Generated/TBigint.g.cs +++ b/MEOS.NET/Types/Generated/TBigint.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,52 +12,52 @@ public class TBigint : TNumber internal TBigint(IntPtr ptr) : base(ptr) { } public long EndValue() - => MEOSExposedFunctions.tbigint_end_value(this.Ptr); + => Meos.TbigintEndValue(this.Ptr); public long MaxValue() - => MEOSExposedFunctions.tbigint_max_value(this.Ptr); + => Meos.TbigintMaxValue(this.Ptr); public long MinValue() - => MEOSExposedFunctions.tbigint_min_value(this.Ptr); + => Meos.TbigintMinValue(this.Ptr); public string Out() - => MEOSExposedFunctions.tbigint_out(this.Ptr); + => Meos.TbigintOut(this.Ptr); public Temporal? ScaleValue(long width) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_scale_value(this.Ptr, width)); + => MEOSFactory.WrapTemporal(Meos.TbigintScaleValue(this.Ptr, width)); public Temporal? ShiftScaleValue(long shift, long width) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_shift_scale_value(this.Ptr, shift, width)); + => MEOSFactory.WrapTemporal(Meos.TbigintShiftScaleValue(this.Ptr, shift, width)); public Temporal? ShiftValue(long shift) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_shift_value(this.Ptr, shift)); + => MEOSFactory.WrapTemporal(Meos.TbigintShiftValue(this.Ptr, shift)); public long StartValue() - => MEOSExposedFunctions.tbigint_start_value(this.Ptr); + => Meos.TbigintStartValue(this.Ptr); public Temporal? ToTfloat() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_to_tfloat(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintToTfloat(this.Ptr)); public Temporal? ToTh3index() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_to_th3index(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintToTh3index(this.Ptr)); public Temporal? ToTint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_to_tint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintToTint(this.Ptr)); public Temporal? ToTquadbin() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_to_tquadbin(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintToTquadbin(this.Ptr)); public Temporal? ToTs2cell() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_to_ts2cell(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintToTs2cell(this.Ptr)); public static Temporal? FromBaseTemp(long i, Temporal temp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_from_base_temp(i, temp.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintFromBaseTemp(i, temp.Ptr)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TbigintFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigint_in(str)); + => MEOSFactory.WrapTemporal(Meos.TbigintIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TBigintInst.g.cs b/MEOS.NET/Types/Generated/TBigintInst.g.cs index 32e7dc6..1dc325b 100644 --- a/MEOS.NET/Types/Generated/TBigintInst.g.cs +++ b/MEOS.NET/Types/Generated/TBigintInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class TBigintInst : TBigint internal TBigintInst(IntPtr ptr) : base(ptr) { } public static Temporal? Make(long i, DateTime t) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigintinst_make(i, MEOSConvert.ToTimestampTz(t))); + => MEOSFactory.WrapTemporal(Meos.TbigintinstMake(i, MEOSConvert.ToTimestampTz(t))); } } diff --git a/MEOS.NET/Types/Generated/TBigintSeq.g.cs b/MEOS.NET/Types/Generated/TBigintSeq.g.cs index ab10c17..600845b 100644 --- a/MEOS.NET/Types/Generated/TBigintSeq.g.cs +++ b/MEOS.NET/Types/Generated/TBigintSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,10 +12,10 @@ public class TBigintSeq : TBigint internal TBigintSeq(IntPtr ptr) : base(ptr) { } public static Temporal? FromBaseTstzset(long i, Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigintseq_from_base_tstzset(i, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintseqFromBaseTstzset(i, s.Ptr)); public static Temporal? FromBaseTstzspan(long i, Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigintseq_from_base_tstzspan(i, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintseqFromBaseTstzspan(i, s.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TBigintSeqSet.g.cs b/MEOS.NET/Types/Generated/TBigintSeqSet.g.cs index 1c04598..f221a5b 100644 --- a/MEOS.NET/Types/Generated/TBigintSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TBigintSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class TBigintSeqSet : TBigint internal TBigintSeqSet(IntPtr ptr) : base(ptr) { } public static Temporal? FromBaseTstzspanset(long i, SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbigintseqset_from_base_tstzspanset(i, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TbigintseqsetFromBaseTstzspanset(i, ss.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TBool.g.cs b/MEOS.NET/Types/Generated/TBool.g.cs index 1204ed7..d8e55b6 100644 --- a/MEOS.NET/Types/Generated/TBool.g.cs +++ b/MEOS.NET/Types/Generated/TBool.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,34 +12,34 @@ public class TBool : TAlpha internal TBool(IntPtr ptr) : base(ptr) { } public Temporal? AtValue(bool b) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbool_at_value(this.Ptr, b)); + => MEOSFactory.WrapTemporal(Meos.TboolAtValue(this.Ptr, b)); public bool EndValue() - => MEOSExposedFunctions.tbool_end_value(this.Ptr); + => Meos.TboolEndValue(this.Ptr); public Temporal? MinusValue(bool b) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbool_minus_value(this.Ptr, b)); + => MEOSFactory.WrapTemporal(Meos.TboolMinusValue(this.Ptr, b)); public string Out() - => MEOSExposedFunctions.tbool_out(this.Ptr); + => Meos.TboolOut(this.Ptr); public bool StartValue() - => MEOSExposedFunctions.tbool_start_value(this.Ptr); + => Meos.TboolStartValue(this.Ptr); public Temporal? ToTint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbool_to_tint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TboolToTint(this.Ptr)); public SpanSet? WhenTrue() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.tbool_when_true(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.TboolWhenTrue(this.Ptr)); public static Temporal? FromBaseTemp(bool b, Temporal temp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbool_from_base_temp(b, temp.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TboolFromBaseTemp(b, temp.Ptr)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbool_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TboolFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tbool_in(str)); + => MEOSFactory.WrapTemporal(Meos.TboolIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TBoolInst.g.cs b/MEOS.NET/Types/Generated/TBoolInst.g.cs index d33c2c3..4c6afbd 100644 --- a/MEOS.NET/Types/Generated/TBoolInst.g.cs +++ b/MEOS.NET/Types/Generated/TBoolInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class TBoolInst : TBool internal TBoolInst(IntPtr ptr) : base(ptr) { } public static Temporal? Make(bool b, DateTime t) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tboolinst_make(b, MEOSConvert.ToTimestampTz(t))); + => MEOSFactory.WrapTemporal(Meos.TboolinstMake(b, MEOSConvert.ToTimestampTz(t))); } } diff --git a/MEOS.NET/Types/Generated/TBoolSeq.g.cs b/MEOS.NET/Types/Generated/TBoolSeq.g.cs index 650e4e2..b1dbe30 100644 --- a/MEOS.NET/Types/Generated/TBoolSeq.g.cs +++ b/MEOS.NET/Types/Generated/TBoolSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,10 +12,10 @@ public class TBoolSeq : TBool internal TBoolSeq(IntPtr ptr) : base(ptr) { } public static Temporal? FromBaseTstzset(bool b, Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tboolseq_from_base_tstzset(b, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TboolseqFromBaseTstzset(b, s.Ptr)); public static Temporal? FromBaseTstzspan(bool b, Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tboolseq_from_base_tstzspan(b, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TboolseqFromBaseTstzspan(b, s.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TBoolSeqSet.g.cs b/MEOS.NET/Types/Generated/TBoolSeqSet.g.cs index e85c3e6..6d610e1 100644 --- a/MEOS.NET/Types/Generated/TBoolSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TBoolSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class TBoolSeqSet : TBool internal TBoolSeqSet(IntPtr ptr) : base(ptr) { } public static Temporal? FromBaseTstzspanset(bool b, SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tboolseqset_from_base_tstzspanset(b, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TboolseqsetFromBaseTstzspanset(b, ss.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TBox.g.cs b/MEOS.NET/Types/Generated/TBox.g.cs index 3a93e6f..97bc264 100644 --- a/MEOS.NET/Types/Generated/TBox.g.cs +++ b/MEOS.NET/Types/Generated/TBox.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,67 +12,67 @@ public class TBox : Box internal TBox(IntPtr ptr) : base(ptr) { } public int Cmp(TBox box2) - => MEOSExposedFunctions.tbox_cmp(this.Ptr, box2.Ptr); + => Meos.TboxCmp(this.Ptr, box2.Ptr); public TBox? Copy() - => MEOSFactory.WrapTBox(MEOSExposedFunctions.tbox_copy(this.Ptr)); + => MEOSFactory.WrapTBox(Meos.TboxCopy(this.Ptr)); public bool Eq(TBox box2) - => MEOSExposedFunctions.tbox_eq(this.Ptr, box2.Ptr); + => Meos.TboxEq(this.Ptr, box2.Ptr); public bool Ge(TBox box2) - => MEOSExposedFunctions.tbox_ge(this.Ptr, box2.Ptr); + => Meos.TboxGe(this.Ptr, box2.Ptr); public bool Gt(TBox box2) - => MEOSExposedFunctions.tbox_gt(this.Ptr, box2.Ptr); + => Meos.TboxGt(this.Ptr, box2.Ptr); public uint Hash() - => MEOSExposedFunctions.tbox_hash(this.Ptr); + => Meos.TboxHash(this.Ptr); public ulong HashExtended(ulong seed) - => MEOSExposedFunctions.tbox_hash_extended(this.Ptr, seed); + => Meos.TboxHashExtended(this.Ptr, seed); public bool Hast() - => MEOSExposedFunctions.tbox_hast(this.Ptr); + => Meos.TboxHast(this.Ptr); public bool Hasx() - => MEOSExposedFunctions.tbox_hasx(this.Ptr); + => Meos.TboxHasx(this.Ptr); public bool Le(TBox box2) - => MEOSExposedFunctions.tbox_le(this.Ptr, box2.Ptr); + => Meos.TboxLe(this.Ptr, box2.Ptr); public bool Lt(TBox box2) - => MEOSExposedFunctions.tbox_lt(this.Ptr, box2.Ptr); + => Meos.TboxLt(this.Ptr, box2.Ptr); public bool Ne(TBox box2) - => MEOSExposedFunctions.tbox_ne(this.Ptr, box2.Ptr); + => Meos.TboxNe(this.Ptr, box2.Ptr); public string Out(int maxdd) - => MEOSExposedFunctions.tbox_out(this.Ptr, maxdd); + => Meos.TboxOut(this.Ptr, maxdd); public TBox? Round(int maxdd) - => MEOSFactory.WrapTBox(MEOSExposedFunctions.tbox_round(this.Ptr, maxdd)); + => MEOSFactory.WrapTBox(Meos.TboxRound(this.Ptr, maxdd)); public Span? ToBigintspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.tbox_to_bigintspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.TboxToBigintspan(this.Ptr)); public Span? ToFloatspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.tbox_to_floatspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.TboxToFloatspan(this.Ptr)); public Span? ToIntspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.tbox_to_intspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.TboxToIntspan(this.Ptr)); public Span? ToTstzspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.tbox_to_tstzspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.TboxToTstzspan(this.Ptr)); public static TBox? FromHEXWKB(string hexwkb) - => MEOSFactory.WrapTBox(MEOSExposedFunctions.tbox_from_hexwkb(hexwkb)); + => MEOSFactory.WrapTBox(Meos.TboxFromHexwkb(hexwkb)); public static TBox? In(string str) - => MEOSFactory.WrapTBox(MEOSExposedFunctions.tbox_in(str)); + => MEOSFactory.WrapTBox(Meos.TboxIn(str)); public static TBox? Make(Span s, Span p) - => MEOSFactory.WrapTBox(MEOSExposedFunctions.tbox_make(s.Ptr, p.Ptr)); + => MEOSFactory.WrapTBox(Meos.TboxMake(s.Ptr, p.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TCbuffer.g.cs b/MEOS.NET/Types/Generated/TCbuffer.g.cs index 8325fa3..3c79c98 100644 --- a/MEOS.NET/Types/Generated/TCbuffer.g.cs +++ b/MEOS.NET/Types/Generated/TCbuffer.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,34 +12,34 @@ public class TCbuffer : TSpatial internal TCbuffer(IntPtr ptr) : base(ptr) { } public Temporal? AtStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tcbuffer_at_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TcbufferAtStbox(this.Ptr, box.Ptr, border_inc)); public Temporal? Expand(double dist) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tcbuffer_expand(this.Ptr, dist)); + => MEOSFactory.WrapTemporal(Meos.TcbufferExpand(this.Ptr, dist)); public Temporal? Make(Temporal tfloat) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tcbuffer_make(this.Ptr, tfloat.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TcbufferMake(this.Ptr, tfloat.Ptr)); public Temporal? MinusStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tcbuffer_minus_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TcbufferMinusStbox(this.Ptr, box.Ptr, border_inc)); public Set? Points() - => MEOSFactory.WrapSet(MEOSExposedFunctions.tcbuffer_points(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TcbufferPoints(this.Ptr)); public Set? Radius() - => MEOSFactory.WrapSet(MEOSExposedFunctions.tcbuffer_radius(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TcbufferRadius(this.Ptr)); public Temporal? ToTfloat() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tcbuffer_to_tfloat(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TcbufferToTfloat(this.Ptr)); public Temporal? ToTgeompoint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tcbuffer_to_tgeompoint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TcbufferToTgeompoint(this.Ptr)); public static Temporal? FromMFJSON(string mfjson) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tcbuffer_from_mfjson(mfjson)); + => MEOSFactory.WrapTemporal(Meos.TcbufferFromMfjson(mfjson)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tcbuffer_in(str)); + => MEOSFactory.WrapTemporal(Meos.TcbufferIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TCbufferInst.g.cs b/MEOS.NET/Types/Generated/TCbufferInst.g.cs index f7f16c3..d4b70b2 100644 --- a/MEOS.NET/Types/Generated/TCbufferInst.g.cs +++ b/MEOS.NET/Types/Generated/TCbufferInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TCbufferSeq.g.cs b/MEOS.NET/Types/Generated/TCbufferSeq.g.cs index 1fba5e7..7e85048 100644 --- a/MEOS.NET/Types/Generated/TCbufferSeq.g.cs +++ b/MEOS.NET/Types/Generated/TCbufferSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TCbufferSeqSet.g.cs b/MEOS.NET/Types/Generated/TCbufferSeqSet.g.cs index 10d76cc..5983af8 100644 --- a/MEOS.NET/Types/Generated/TCbufferSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TCbufferSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TFloat.g.cs b/MEOS.NET/Types/Generated/TFloat.g.cs index dc7f323..254f642 100644 --- a/MEOS.NET/Types/Generated/TFloat.g.cs +++ b/MEOS.NET/Types/Generated/TFloat.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,82 +12,82 @@ public class TFloat : TNumber internal TFloat(IntPtr ptr) : base(ptr) { } public Temporal? AtValue(double d) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_at_value(this.Ptr, d)); + => MEOSFactory.WrapTemporal(Meos.TfloatAtValue(this.Ptr, d)); public Temporal? Ceil() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_ceil(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatCeil(this.Ptr)); public Temporal? Cos() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_cos(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatCos(this.Ptr)); public Temporal? Degrees(bool normalize) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_degrees(this.Ptr, normalize)); + => MEOSFactory.WrapTemporal(Meos.TfloatDegrees(this.Ptr, normalize)); public double EndValue() - => MEOSExposedFunctions.tfloat_end_value(this.Ptr); + => Meos.TfloatEndValue(this.Ptr); public Temporal? Exp() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_exp(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatExp(this.Ptr)); public Temporal? Floor() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_floor(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatFloor(this.Ptr)); public Temporal? Ln() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_ln(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatLn(this.Ptr)); public Temporal? Log10() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_log10(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatLog10(this.Ptr)); public double MaxValue() - => MEOSExposedFunctions.tfloat_max_value(this.Ptr); + => Meos.TfloatMaxValue(this.Ptr); public double MinValue() - => MEOSExposedFunctions.tfloat_min_value(this.Ptr); + => Meos.TfloatMinValue(this.Ptr); public Temporal? MinusValue(double d) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_minus_value(this.Ptr, d)); + => MEOSFactory.WrapTemporal(Meos.TfloatMinusValue(this.Ptr, d)); public string Out(int maxdd) - => MEOSExposedFunctions.tfloat_out(this.Ptr, maxdd); + => Meos.TfloatOut(this.Ptr, maxdd); public Temporal? Radians() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_radians(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatRadians(this.Ptr)); public Temporal? ScaleValue(double width) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_scale_value(this.Ptr, width)); + => MEOSFactory.WrapTemporal(Meos.TfloatScaleValue(this.Ptr, width)); public Temporal? ShiftScaleValue(double shift, double width) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_shift_scale_value(this.Ptr, shift, width)); + => MEOSFactory.WrapTemporal(Meos.TfloatShiftScaleValue(this.Ptr, shift, width)); public Temporal? ShiftValue(double shift) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_shift_value(this.Ptr, shift)); + => MEOSFactory.WrapTemporal(Meos.TfloatShiftValue(this.Ptr, shift)); public Temporal? Sin() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_sin(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatSin(this.Ptr)); public double StartValue() - => MEOSExposedFunctions.tfloat_start_value(this.Ptr); + => Meos.TfloatStartValue(this.Ptr); public Temporal? Tan() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_tan(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatTan(this.Ptr)); public Temporal? ToTbigint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_to_tbigint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatToTbigint(this.Ptr)); public Temporal? ToTint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_to_tint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatToTint(this.Ptr)); public double[] Values() - => MEOSExposedFunctions.tfloat_values(this.Ptr); + => Meos.TfloatValues(this.Ptr); public static Temporal? FromBaseTemp(double d, Temporal temp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_from_base_temp(d, temp.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatFromBaseTemp(d, temp.Ptr)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TfloatFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloat_in(str)); + => MEOSFactory.WrapTemporal(Meos.TfloatIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TFloatInst.g.cs b/MEOS.NET/Types/Generated/TFloatInst.g.cs index 59bba63..1b4d69d 100644 --- a/MEOS.NET/Types/Generated/TFloatInst.g.cs +++ b/MEOS.NET/Types/Generated/TFloatInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class TFloatInst : TFloat internal TFloatInst(IntPtr ptr) : base(ptr) { } public static Temporal? Make(double d, DateTime t) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloatinst_make(d, MEOSConvert.ToTimestampTz(t))); + => MEOSFactory.WrapTemporal(Meos.TfloatinstMake(d, MEOSConvert.ToTimestampTz(t))); } } diff --git a/MEOS.NET/Types/Generated/TFloatSeq.g.cs b/MEOS.NET/Types/Generated/TFloatSeq.g.cs index 28890ba..81ed831 100644 --- a/MEOS.NET/Types/Generated/TFloatSeq.g.cs +++ b/MEOS.NET/Types/Generated/TFloatSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,10 +12,10 @@ public class TFloatSeq : TFloat internal TFloatSeq(IntPtr ptr) : base(ptr) { } public static Temporal? FromBaseTstzset(double d, Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloatseq_from_base_tstzset(d, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TfloatseqFromBaseTstzset(d, s.Ptr)); public static Temporal? FromBaseTstzspan(double d, Span s, InterpolationType interp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloatseq_from_base_tstzspan(d, s.Ptr, (int) interp)); + => MEOSFactory.WrapTemporal(Meos.TfloatseqFromBaseTstzspan(d, s.Ptr, (int) interp)); } } diff --git a/MEOS.NET/Types/Generated/TFloatSeqSet.g.cs b/MEOS.NET/Types/Generated/TFloatSeqSet.g.cs index d544334..284bc08 100644 --- a/MEOS.NET/Types/Generated/TFloatSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TFloatSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class TFloatSeqSet : TFloat internal TFloatSeqSet(IntPtr ptr) : base(ptr) { } public static Temporal? FromBaseTstzspanset(double d, SpanSet ss, InterpolationType interp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tfloatseqset_from_base_tstzspanset(d, ss.Ptr, (int) interp)); + => MEOSFactory.WrapTemporal(Meos.TfloatseqsetFromBaseTstzspanset(d, ss.Ptr, (int) interp)); } } diff --git a/MEOS.NET/Types/Generated/TGeo.g.cs b/MEOS.NET/Types/Generated/TGeo.g.cs index f007991..ad71c0c 100644 --- a/MEOS.NET/Types/Generated/TGeo.g.cs +++ b/MEOS.NET/Types/Generated/TGeo.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,13 +12,13 @@ public class TGeo : TSpatial internal TGeo(IntPtr ptr) : base(ptr) { } public Temporal? AtStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeo_at_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TgeoAtStbox(this.Ptr, box.Ptr, border_inc)); public Temporal? Centroid() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeo_centroid(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeoCentroid(this.Ptr)); public Temporal? MinusStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeo_minus_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TgeoMinusStbox(this.Ptr, box.Ptr, border_inc)); } } diff --git a/MEOS.NET/Types/Generated/TGeogPoint.g.cs b/MEOS.NET/Types/Generated/TGeogPoint.g.cs index 1bc9484..9ef9e6a 100644 --- a/MEOS.NET/Types/Generated/TGeogPoint.g.cs +++ b/MEOS.NET/Types/Generated/TGeogPoint.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,19 +12,19 @@ public class TGeogPoint : TPoint internal TGeogPoint(IntPtr ptr) : base(ptr) { } public Temporal? GreatCircleDistance(Temporal b) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeogpoint_great_circle_distance(this.Ptr, b.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeogpointGreatCircleDistance(this.Ptr, b.Ptr)); public Temporal? ToTgeography() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeogpoint_to_tgeography(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeogpointToTgeography(this.Ptr)); public Temporal? ToTh3index(int resolution) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeogpoint_to_th3index(this.Ptr, resolution)); + => MEOSFactory.WrapTemporal(Meos.TgeogpointToTh3index(this.Ptr, resolution)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeogpoint_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TgeogpointFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeogpoint_in(str)); + => MEOSFactory.WrapTemporal(Meos.TgeogpointIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TGeogPointInst.g.cs b/MEOS.NET/Types/Generated/TGeogPointInst.g.cs index e667351..642f359 100644 --- a/MEOS.NET/Types/Generated/TGeogPointInst.g.cs +++ b/MEOS.NET/Types/Generated/TGeogPointInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeogPointSeq.g.cs b/MEOS.NET/Types/Generated/TGeogPointSeq.g.cs index befdf37..9e9058e 100644 --- a/MEOS.NET/Types/Generated/TGeogPointSeq.g.cs +++ b/MEOS.NET/Types/Generated/TGeogPointSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeogPointSeqSet.g.cs b/MEOS.NET/Types/Generated/TGeogPointSeqSet.g.cs index a40a9a3..398b467 100644 --- a/MEOS.NET/Types/Generated/TGeogPointSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TGeogPointSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeography.g.cs b/MEOS.NET/Types/Generated/TGeography.g.cs index 5fe4723..4e81a90 100644 --- a/MEOS.NET/Types/Generated/TGeography.g.cs +++ b/MEOS.NET/Types/Generated/TGeography.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,16 +12,16 @@ public class TGeography : TGeo internal TGeography(IntPtr ptr) : base(ptr) { } public Temporal? ToTgeogpoint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeography_to_tgeogpoint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeographyToTgeogpoint(this.Ptr)); public Temporal? ToTgeometry() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeography_to_tgeometry(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeographyToTgeometry(this.Ptr)); public static Temporal? FromMFJSON(string mfjson) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeography_from_mfjson(mfjson)); + => MEOSFactory.WrapTemporal(Meos.TgeographyFromMfjson(mfjson)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeography_in(str)); + => MEOSFactory.WrapTemporal(Meos.TgeographyIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TGeographyInst.g.cs b/MEOS.NET/Types/Generated/TGeographyInst.g.cs index f4b2eee..06f33e1 100644 --- a/MEOS.NET/Types/Generated/TGeographyInst.g.cs +++ b/MEOS.NET/Types/Generated/TGeographyInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeographySeq.g.cs b/MEOS.NET/Types/Generated/TGeographySeq.g.cs index 5e1daff..efac546 100644 --- a/MEOS.NET/Types/Generated/TGeographySeq.g.cs +++ b/MEOS.NET/Types/Generated/TGeographySeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeographySeqSet.g.cs b/MEOS.NET/Types/Generated/TGeographySeqSet.g.cs index 4d6767a..05f421c 100644 --- a/MEOS.NET/Types/Generated/TGeographySeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TGeographySeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeomPoint.g.cs b/MEOS.NET/Types/Generated/TGeomPoint.g.cs index e23549b..c480370 100644 --- a/MEOS.NET/Types/Generated/TGeomPoint.g.cs +++ b/MEOS.NET/Types/Generated/TGeomPoint.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,19 +12,19 @@ public class TGeomPoint : TPoint internal TGeomPoint(IntPtr ptr) : base(ptr) { } public Temporal? ToTgeometry() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeompoint_to_tgeometry(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeompointToTgeometry(this.Ptr)); public Temporal? ToTh3index(int resolution) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeompoint_to_th3index(this.Ptr, resolution)); + => MEOSFactory.WrapTemporal(Meos.TgeompointToTh3index(this.Ptr, resolution)); public Temporal? ToTnpoint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeompoint_to_tnpoint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeompointToTnpoint(this.Ptr)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeompoint_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TgeompointFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeompoint_in(str)); + => MEOSFactory.WrapTemporal(Meos.TgeompointIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TGeomPointInst.g.cs b/MEOS.NET/Types/Generated/TGeomPointInst.g.cs index 51e1974..72ba2aa 100644 --- a/MEOS.NET/Types/Generated/TGeomPointInst.g.cs +++ b/MEOS.NET/Types/Generated/TGeomPointInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeomPointSeq.g.cs b/MEOS.NET/Types/Generated/TGeomPointSeq.g.cs index 0a21daf..f080720 100644 --- a/MEOS.NET/Types/Generated/TGeomPointSeq.g.cs +++ b/MEOS.NET/Types/Generated/TGeomPointSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeomPointSeqSet.g.cs b/MEOS.NET/Types/Generated/TGeomPointSeqSet.g.cs index 19359a1..a008e6b 100644 --- a/MEOS.NET/Types/Generated/TGeomPointSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TGeomPointSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeometry.g.cs b/MEOS.NET/Types/Generated/TGeometry.g.cs index 69b944f..b1c1b60 100644 --- a/MEOS.NET/Types/Generated/TGeometry.g.cs +++ b/MEOS.NET/Types/Generated/TGeometry.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,19 +12,19 @@ public class TGeometry : TGeo internal TGeometry(IntPtr ptr) : base(ptr) { } public Temporal? ToTcbuffer() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeometry_to_tcbuffer(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeometryToTcbuffer(this.Ptr)); public Temporal? ToTgeography() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeometry_to_tgeography(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeometryToTgeography(this.Ptr)); public Temporal? ToTgeompoint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeometry_to_tgeompoint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TgeometryToTgeompoint(this.Ptr)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeometry_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TgeometryFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tgeometry_in(str)); + => MEOSFactory.WrapTemporal(Meos.TgeometryIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TGeometryInst.g.cs b/MEOS.NET/Types/Generated/TGeometryInst.g.cs index d94c5a3..d7721b1 100644 --- a/MEOS.NET/Types/Generated/TGeometryInst.g.cs +++ b/MEOS.NET/Types/Generated/TGeometryInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeometrySeq.g.cs b/MEOS.NET/Types/Generated/TGeometrySeq.g.cs index 392a3e1..0bbd507 100644 --- a/MEOS.NET/Types/Generated/TGeometrySeq.g.cs +++ b/MEOS.NET/Types/Generated/TGeometrySeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TGeometrySeqSet.g.cs b/MEOS.NET/Types/Generated/TGeometrySeqSet.g.cs index 79e0ad7..cf3d86b 100644 --- a/MEOS.NET/Types/Generated/TGeometrySeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TGeometrySeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TInstant.g.cs b/MEOS.NET/Types/Generated/TInstant.g.cs index ec45fe1..b57fdc3 100644 --- a/MEOS.NET/Types/Generated/TInstant.g.cs +++ b/MEOS.NET/Types/Generated/TInstant.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TInt.g.cs b/MEOS.NET/Types/Generated/TInt.g.cs index 9c9ac69..2a7c452 100644 --- a/MEOS.NET/Types/Generated/TInt.g.cs +++ b/MEOS.NET/Types/Generated/TInt.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,52 +12,52 @@ public class TInt : TNumber internal TInt(IntPtr ptr) : base(ptr) { } public Temporal? AtValue(int i) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_at_value(this.Ptr, i)); + => MEOSFactory.WrapTemporal(Meos.TintAtValue(this.Ptr, i)); public int EndValue() - => MEOSExposedFunctions.tint_end_value(this.Ptr); + => Meos.TintEndValue(this.Ptr); public int MaxValue() - => MEOSExposedFunctions.tint_max_value(this.Ptr); + => Meos.TintMaxValue(this.Ptr); public int MinValue() - => MEOSExposedFunctions.tint_min_value(this.Ptr); + => Meos.TintMinValue(this.Ptr); public Temporal? MinusValue(int i) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_minus_value(this.Ptr, i)); + => MEOSFactory.WrapTemporal(Meos.TintMinusValue(this.Ptr, i)); public string Out() - => MEOSExposedFunctions.tint_out(this.Ptr); + => Meos.TintOut(this.Ptr); public Temporal? ScaleValue(int width) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_scale_value(this.Ptr, width)); + => MEOSFactory.WrapTemporal(Meos.TintScaleValue(this.Ptr, width)); public Temporal? ShiftScaleValue(int shift, int width) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_shift_scale_value(this.Ptr, shift, width)); + => MEOSFactory.WrapTemporal(Meos.TintShiftScaleValue(this.Ptr, shift, width)); public Temporal? ShiftValue(int shift) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_shift_value(this.Ptr, shift)); + => MEOSFactory.WrapTemporal(Meos.TintShiftValue(this.Ptr, shift)); public int StartValue() - => MEOSExposedFunctions.tint_start_value(this.Ptr); + => Meos.TintStartValue(this.Ptr); public Temporal? ToTbigint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_to_tbigint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TintToTbigint(this.Ptr)); public Temporal? ToTfloat() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_to_tfloat(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TintToTfloat(this.Ptr)); public int[] Values() - => MEOSExposedFunctions.tint_values(this.Ptr); + => Meos.TintValues(this.Ptr); public static Temporal? FromBaseTemp(int i, Temporal temp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_from_base_temp(i, temp.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TintFromBaseTemp(i, temp.Ptr)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TintFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tint_in(str)); + => MEOSFactory.WrapTemporal(Meos.TintIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TIntInst.g.cs b/MEOS.NET/Types/Generated/TIntInst.g.cs index f23458e..95b66ee 100644 --- a/MEOS.NET/Types/Generated/TIntInst.g.cs +++ b/MEOS.NET/Types/Generated/TIntInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class TIntInst : TInt internal TIntInst(IntPtr ptr) : base(ptr) { } public static Temporal? Make(int i, DateTime t) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tintinst_make(i, MEOSConvert.ToTimestampTz(t))); + => MEOSFactory.WrapTemporal(Meos.TintinstMake(i, MEOSConvert.ToTimestampTz(t))); } } diff --git a/MEOS.NET/Types/Generated/TIntSeq.g.cs b/MEOS.NET/Types/Generated/TIntSeq.g.cs index 64102ca..aa95c79 100644 --- a/MEOS.NET/Types/Generated/TIntSeq.g.cs +++ b/MEOS.NET/Types/Generated/TIntSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,10 +12,10 @@ public class TIntSeq : TInt internal TIntSeq(IntPtr ptr) : base(ptr) { } public static Temporal? FromBaseTstzset(int i, Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tintseq_from_base_tstzset(i, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TintseqFromBaseTstzset(i, s.Ptr)); public static Temporal? FromBaseTstzspan(int i, Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tintseq_from_base_tstzspan(i, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TintseqFromBaseTstzspan(i, s.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TIntSeqSet.g.cs b/MEOS.NET/Types/Generated/TIntSeqSet.g.cs index 399f528..ae3f5c7 100644 --- a/MEOS.NET/Types/Generated/TIntSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TIntSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,7 +12,7 @@ public class TIntSeqSet : TInt internal TIntSeqSet(IntPtr ptr) : base(ptr) { } public static Temporal? FromBaseTstzspanset(int i, SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tintseqset_from_base_tstzspanset(i, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TintseqsetFromBaseTstzspanset(i, ss.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TJsonb.g.cs b/MEOS.NET/Types/Generated/TJsonb.g.cs index 89873e1..dabae06 100644 --- a/MEOS.NET/Types/Generated/TJsonb.g.cs +++ b/MEOS.NET/Types/Generated/TJsonb.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,28 +12,28 @@ public class TJsonb : TAlpha internal TJsonb(IntPtr ptr) : base(ptr) { } public Temporal? ArrayLength() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tjsonb_array_length(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TjsonbArrayLength(this.Ptr)); public Temporal? DeleteIndex(int idx) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tjsonb_delete_index(this.Ptr, idx)); + => MEOSFactory.WrapTemporal(Meos.TjsonbDeleteIndex(this.Ptr, idx)); public string Out() - => MEOSExposedFunctions.tjsonb_out(this.Ptr); + => Meos.TjsonbOut(this.Ptr); public Temporal? Pretty() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tjsonb_pretty(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TjsonbPretty(this.Ptr)); public Temporal? StripNulls(bool strip_in_arrays) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tjsonb_strip_nulls(this.Ptr, strip_in_arrays)); + => MEOSFactory.WrapTemporal(Meos.TjsonbStripNulls(this.Ptr, strip_in_arrays)); public Temporal? ToTtext() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tjsonb_to_ttext(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TjsonbToTtext(this.Ptr)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tjsonb_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TjsonbFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tjsonb_in(str)); + => MEOSFactory.WrapTemporal(Meos.TjsonbIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TJsonbInst.g.cs b/MEOS.NET/Types/Generated/TJsonbInst.g.cs index ccc7cc3..16f612b 100644 --- a/MEOS.NET/Types/Generated/TJsonbInst.g.cs +++ b/MEOS.NET/Types/Generated/TJsonbInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TJsonbSeq.g.cs b/MEOS.NET/Types/Generated/TJsonbSeq.g.cs index 3dc821d..0c79fee 100644 --- a/MEOS.NET/Types/Generated/TJsonbSeq.g.cs +++ b/MEOS.NET/Types/Generated/TJsonbSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TJsonbSeqSet.g.cs b/MEOS.NET/Types/Generated/TJsonbSeqSet.g.cs index 51932ac..31900cb 100644 --- a/MEOS.NET/Types/Generated/TJsonbSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TJsonbSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TNpoint.g.cs b/MEOS.NET/Types/Generated/TNpoint.g.cs index 0ebd8ab..0f65e9e 100644 --- a/MEOS.NET/Types/Generated/TNpoint.g.cs +++ b/MEOS.NET/Types/Generated/TNpoint.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,43 +12,43 @@ public class TNpoint : TSpatial internal TNpoint(IntPtr ptr) : base(ptr) { } public Temporal? AtNpointset(Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_at_npointset(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnpointAtNpointset(this.Ptr, s.Ptr)); public Temporal? AtStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_at_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TnpointAtStbox(this.Ptr, box.Ptr, border_inc)); public Temporal? CumulativeLength() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_cumulative_length(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnpointCumulativeLength(this.Ptr)); public double Length() - => MEOSExposedFunctions.tnpoint_length(this.Ptr); + => Meos.TnpointLength(this.Ptr); public Temporal? MinusNpointset(Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_minus_npointset(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnpointMinusNpointset(this.Ptr, s.Ptr)); public Temporal? MinusStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_minus_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TnpointMinusStbox(this.Ptr, box.Ptr, border_inc)); public new string Out(int maxdd) - => MEOSExposedFunctions.tnpoint_out(this.Ptr, maxdd); + => Meos.TnpointOut(this.Ptr, maxdd); public long Route() - => MEOSExposedFunctions.tnpoint_route(this.Ptr); + => Meos.TnpointRoute(this.Ptr); public Set? Routes() - => MEOSFactory.WrapSet(MEOSExposedFunctions.tnpoint_routes(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TnpointRoutes(this.Ptr)); public Temporal? Speed() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_speed(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnpointSpeed(this.Ptr)); public Temporal? ToTgeompoint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_to_tgeompoint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnpointToTgeompoint(this.Ptr)); public static Temporal? FromMFJSON(string mfjson) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_from_mfjson(mfjson)); + => MEOSFactory.WrapTemporal(Meos.TnpointFromMfjson(mfjson)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnpoint_in(str)); + => MEOSFactory.WrapTemporal(Meos.TnpointIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TNpointInst.g.cs b/MEOS.NET/Types/Generated/TNpointInst.g.cs index 916cf25..57cf2eb 100644 --- a/MEOS.NET/Types/Generated/TNpointInst.g.cs +++ b/MEOS.NET/Types/Generated/TNpointInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TNpointSeq.g.cs b/MEOS.NET/Types/Generated/TNpointSeq.g.cs index 0909f33..076bef0 100644 --- a/MEOS.NET/Types/Generated/TNpointSeq.g.cs +++ b/MEOS.NET/Types/Generated/TNpointSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TNpointSeqSet.g.cs b/MEOS.NET/Types/Generated/TNpointSeqSet.g.cs index 5e131fd..3a73197 100644 --- a/MEOS.NET/Types/Generated/TNpointSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TNpointSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TNumber.g.cs b/MEOS.NET/Types/Generated/TNumber.g.cs index abd996a..9265e94 100644 --- a/MEOS.NET/Types/Generated/TNumber.g.cs +++ b/MEOS.NET/Types/Generated/TNumber.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,49 +12,49 @@ public class TNumber : Temporal internal TNumber(IntPtr ptr) : base(ptr) { } public Temporal? Abs() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_abs(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberAbs(this.Ptr)); public Temporal? AngularDifference() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_angular_difference(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberAngularDifference(this.Ptr)); public Temporal? AtSpan(Span span) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_at_span(this.Ptr, span.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberAtSpan(this.Ptr, span.Ptr)); public Temporal? AtSpanset(SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_at_spanset(this.Ptr, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberAtSpanset(this.Ptr, ss.Ptr)); public Temporal? AtTbox(TBox box) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_at_tbox(this.Ptr, box.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberAtTbox(this.Ptr, box.Ptr)); public Temporal? DeltaValue() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_delta_value(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberDeltaValue(this.Ptr)); public double Integral() - => MEOSExposedFunctions.tnumber_integral(this.Ptr); + => Meos.TnumberIntegral(this.Ptr); public Temporal? MinusSpan(Span span) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_minus_span(this.Ptr, span.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberMinusSpan(this.Ptr, span.Ptr)); public Temporal? MinusSpanset(SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_minus_spanset(this.Ptr, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberMinusSpanset(this.Ptr, ss.Ptr)); public Temporal? MinusTbox(TBox box) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_minus_tbox(this.Ptr, box.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberMinusTbox(this.Ptr, box.Ptr)); public Span? ToSpan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.tnumber_to_span(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.TnumberToSpan(this.Ptr)); public TBox? ToTbox() - => MEOSFactory.WrapTBox(MEOSExposedFunctions.tnumber_to_tbox(this.Ptr)); + => MEOSFactory.WrapTBox(Meos.TnumberToTbox(this.Ptr)); public Temporal? Trend() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tnumber_trend(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TnumberTrend(this.Ptr)); public double Twavg() - => MEOSExposedFunctions.tnumber_twavg(this.Ptr); + => Meos.TnumberTwavg(this.Ptr); public SpanSet? Valuespans() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.tnumber_valuespans(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.TnumberValuespans(this.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TPoint.g.cs b/MEOS.NET/Types/Generated/TPoint.g.cs index b1349e2..15ceb01 100644 --- a/MEOS.NET/Types/Generated/TPoint.g.cs +++ b/MEOS.NET/Types/Generated/TPoint.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,40 +12,40 @@ public class TPoint : TGeo internal TPoint(IntPtr ptr) : base(ptr) { } public Temporal? AngularDifference() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_angular_difference(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointAngularDifference(this.Ptr)); public Temporal? AtElevation(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_at_elevation(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointAtElevation(this.Ptr, s.Ptr)); public Temporal? Azimuth() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_azimuth(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointAzimuth(this.Ptr)); public Temporal? CumulativeLength() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_cumulative_length(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointCumulativeLength(this.Ptr)); public Temporal? GetX() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_get_x(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointGetX(this.Ptr)); public Temporal? GetY() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_get_y(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointGetY(this.Ptr)); public Temporal? GetZ() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_get_z(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointGetZ(this.Ptr)); public bool IsSimple() - => MEOSExposedFunctions.tpoint_is_simple(this.Ptr); + => Meos.TpointIsSimple(this.Ptr); public double Length() - => MEOSExposedFunctions.tpoint_length(this.Ptr); + => Meos.TpointLength(this.Ptr); public Temporal?[] MakeSimple() - => MEOSFactory.WrapTemporalArray(MEOSExposedFunctions.tpoint_make_simple(this.Ptr)); + => MEOSFactory.WrapTemporalArray(Meos.TpointMakeSimple(this.Ptr)); public Temporal? MinusElevation(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_minus_elevation(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointMinusElevation(this.Ptr, s.Ptr)); public Temporal? Speed() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpoint_speed(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TpointSpeed(this.Ptr)); } } diff --git a/MEOS.NET/Types/Generated/TPose.g.cs b/MEOS.NET/Types/Generated/TPose.g.cs index f0c73a9..fb8ed74 100644 --- a/MEOS.NET/Types/Generated/TPose.g.cs +++ b/MEOS.NET/Types/Generated/TPose.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,64 +12,64 @@ public class TPose : TSpatial internal TPose(IntPtr ptr) : base(ptr) { } public Temporal? AngularSpeed() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_angular_speed(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeAngularSpeed(this.Ptr)); public string AsGeopose(int conformance, int precision) - => MEOSExposedFunctions.tpose_as_geopose(this.Ptr, conformance, precision); + => Meos.TposeAsGeopose(this.Ptr, conformance, precision); public string AsGeoposeStream(int precision) - => MEOSExposedFunctions.tpose_as_geopose_stream(this.Ptr, precision); + => Meos.TposeAsGeoposeStream(this.Ptr, precision); public string AsGeoposeStreamElement(Temporal inst, int precision) - => MEOSExposedFunctions.tpose_as_geopose_stream_element(this.Ptr, inst.Ptr, precision); + => Meos.TposeAsGeoposeStreamElement(this.Ptr, inst.Ptr, precision); public Temporal? AtElevation(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_at_elevation(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeAtElevation(this.Ptr, s.Ptr)); public Temporal? AtStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_at_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TposeAtStbox(this.Ptr, box.Ptr, border_inc)); public Temporal? ComposeTpose(Temporal frame) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_compose_tpose(this.Ptr, frame.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeComposeTpose(this.Ptr, frame.Ptr)); public Temporal? Inverse() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_inverse(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeInverse(this.Ptr)); public Temporal? Make(Temporal ttheta) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_make(this.Ptr, ttheta.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeMake(this.Ptr, ttheta.Ptr)); public Temporal? MinusElevation(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_minus_elevation(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeMinusElevation(this.Ptr, s.Ptr)); public Temporal? MinusStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_minus_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TposeMinusStbox(this.Ptr, box.Ptr, border_inc)); public Temporal? Pitch() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_pitch(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposePitch(this.Ptr)); public Set? Points() - => MEOSFactory.WrapSet(MEOSExposedFunctions.tpose_points(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TposePoints(this.Ptr)); public Temporal? Roll() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_roll(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeRoll(this.Ptr)); public Temporal? Speed() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_speed(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeSpeed(this.Ptr)); public Temporal? ToTpoint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_to_tpoint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeToTpoint(this.Ptr)); public Temporal? Yaw() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_yaw(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TposeYaw(this.Ptr)); public static Temporal? FromGeopose(string json) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_from_geopose(json)); + => MEOSFactory.WrapTemporal(Meos.TposeFromGeopose(json)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TposeFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tpose_in(str)); + => MEOSFactory.WrapTemporal(Meos.TposeIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TPoseInst.g.cs b/MEOS.NET/Types/Generated/TPoseInst.g.cs index e75625b..2cfc4ea 100644 --- a/MEOS.NET/Types/Generated/TPoseInst.g.cs +++ b/MEOS.NET/Types/Generated/TPoseInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TPoseSeq.g.cs b/MEOS.NET/Types/Generated/TPoseSeq.g.cs index 2516399..4eeb69d 100644 --- a/MEOS.NET/Types/Generated/TPoseSeq.g.cs +++ b/MEOS.NET/Types/Generated/TPoseSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TPoseSeqSet.g.cs b/MEOS.NET/Types/Generated/TPoseSeqSet.g.cs index 50635c2..58dcdab 100644 --- a/MEOS.NET/Types/Generated/TPoseSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TPoseSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TRGeometry.g.cs b/MEOS.NET/Types/Generated/TRGeometry.g.cs index 2c0dc9c..ac82fb4 100644 --- a/MEOS.NET/Types/Generated/TRGeometry.g.cs +++ b/MEOS.NET/Types/Generated/TRGeometry.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,172 +12,172 @@ public class TRGeometry : TSpatial internal TRGeometry(IntPtr ptr) : base(ptr) { } public new Temporal? AfterTimestamptz(DateTime t, bool strict) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_after_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), strict)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAfterTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), strict)); public Temporal? AngularSpeed() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_angular_speed(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAngularSpeed(this.Ptr)); public new Temporal? AppendTsequence(Temporal seq, bool expand) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_append_tsequence(this.Ptr, seq.Ptr, expand)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAppendTsequence(this.Ptr, seq.Ptr, expand)); public new string AsEWKT(int maxdd) - => MEOSExposedFunctions.trgeometry_as_ewkt(this.Ptr, maxdd); + => Meos.TrgeometryAsEwkt(this.Ptr, maxdd); public new string AsText(int maxdd) - => MEOSExposedFunctions.trgeometry_as_text(this.Ptr, maxdd); + => Meos.TrgeometryAsText(this.Ptr, maxdd); public new Temporal? AsTinstant() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_as_tinstant(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAsTinstant(this.Ptr)); public Temporal? AsTsequence(string interp_str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_as_tsequence(this.Ptr, interp_str)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAsTsequence(this.Ptr, interp_str)); public Temporal? AsTsequenceset(string interp_str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_as_tsequenceset(this.Ptr, interp_str)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAsTsequenceset(this.Ptr, interp_str)); public Temporal? AtElevation(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_at_elevation(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAtElevation(this.Ptr, s.Ptr)); public Temporal? AtStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_at_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAtStbox(this.Ptr, box.Ptr, border_inc)); public new Temporal? AtTimestamptz(DateTime t) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_at_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t))); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAtTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t))); public new Temporal? AtTstzset(Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_at_tstzset(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAtTstzset(this.Ptr, s.Ptr)); public new Temporal? AtTstzspan(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_at_tstzspan(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAtTstzspan(this.Ptr, s.Ptr)); public new Temporal? AtTstzspanset(SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_at_tstzspanset(this.Ptr, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAtTstzspanset(this.Ptr, ss.Ptr)); public new Temporal? AtValues(Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_at_values(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryAtValues(this.Ptr, s.Ptr)); public new Temporal? BeforeTimestamptz(DateTime t, bool strict) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_before_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), strict)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryBeforeTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), strict)); public Temporal? Centroid() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_centroid(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryCentroid(this.Ptr)); public Temporal? CumulativeLength() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_cumulative_length(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryCumulativeLength(this.Ptr)); public new Temporal? DeleteTimestamptz(DateTime t, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_delete_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), connect)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryDeleteTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), connect)); public new Temporal? DeleteTstzset(Set s, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_delete_tstzset(this.Ptr, s.Ptr, connect)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryDeleteTstzset(this.Ptr, s.Ptr, connect)); public new Temporal? DeleteTstzspan(Span s, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_delete_tstzspan(this.Ptr, s.Ptr, connect)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryDeleteTstzspan(this.Ptr, s.Ptr, connect)); public new Temporal? DeleteTstzspanset(SpanSet ss, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_delete_tstzspanset(this.Ptr, ss.Ptr, connect)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryDeleteTstzspanset(this.Ptr, ss.Ptr, connect)); public new double DyntimewarpDistance(Temporal temp2) - => MEOSExposedFunctions.trgeometry_dyntimewarp_distance(this.Ptr, temp2.Ptr); + => Meos.TrgeometryDyntimewarpDistance(this.Ptr, temp2.Ptr); public new Temporal? EndInstant() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_end_instant(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryEndInstant(this.Ptr)); public new Temporal? EndSequence() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_end_sequence(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryEndSequence(this.Ptr)); public new double FrechetDistance(Temporal temp2) - => MEOSExposedFunctions.trgeometry_frechet_distance(this.Ptr, temp2.Ptr); + => Meos.TrgeometryFrechetDistance(this.Ptr, temp2.Ptr); public new double HausdorffDistance(Temporal temp2) - => MEOSExposedFunctions.trgeometry_hausdorff_distance(this.Ptr, temp2.Ptr); + => Meos.TrgeometryHausdorffDistance(this.Ptr, temp2.Ptr); public new Temporal? InstantN(int n) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_instant_n(this.Ptr, n)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryInstantN(this.Ptr, n)); public new Temporal?[] Instants() - => MEOSFactory.WrapTemporalArray(MEOSExposedFunctions.trgeometry_instants(this.Ptr)); + => MEOSFactory.WrapTemporalArray(Meos.TrgeometryInstants(this.Ptr)); public double Length() - => MEOSExposedFunctions.trgeometry_length(this.Ptr); + => Meos.TrgeometryLength(this.Ptr); public new Temporal? Merge(Temporal temp2) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_merge(this.Ptr, temp2.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryMerge(this.Ptr, temp2.Ptr)); public Temporal? MinusElevation(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_minus_elevation(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryMinusElevation(this.Ptr, s.Ptr)); public Temporal? MinusStbox(STBox box, bool border_inc) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_minus_stbox(this.Ptr, box.Ptr, border_inc)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryMinusStbox(this.Ptr, box.Ptr, border_inc)); public new Temporal? MinusTimestamptz(DateTime t) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_minus_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t))); + => MEOSFactory.WrapTemporal(Meos.TrgeometryMinusTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t))); public new Temporal? MinusTstzset(Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_minus_tstzset(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryMinusTstzset(this.Ptr, s.Ptr)); public new Temporal? MinusTstzspan(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_minus_tstzspan(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryMinusTstzspan(this.Ptr, s.Ptr)); public new Temporal? MinusTstzspanset(SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_minus_tstzspanset(this.Ptr, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryMinusTstzspanset(this.Ptr, ss.Ptr)); public new Temporal? MinusValues(Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_minus_values(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryMinusValues(this.Ptr, s.Ptr)); public string Out() - => MEOSExposedFunctions.trgeometry_out(this.Ptr); + => Meos.TrgeometryOut(this.Ptr); public Temporal? Pitch() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_pitch(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryPitch(this.Ptr)); public Set? Points() - => MEOSFactory.WrapSet(MEOSExposedFunctions.trgeometry_points(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TrgeometryPoints(this.Ptr)); public Temporal? Roll() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_roll(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryRoll(this.Ptr)); public new Temporal? Round(int maxdd) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_round(this.Ptr, maxdd)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryRound(this.Ptr, maxdd)); public new Temporal?[] Segments() - => MEOSFactory.WrapTemporalArray(MEOSExposedFunctions.trgeometry_segments(this.Ptr)); + => MEOSFactory.WrapTemporalArray(Meos.TrgeometrySegments(this.Ptr)); public new Temporal? SequenceN(int i) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_sequence_n(this.Ptr, i)); + => MEOSFactory.WrapTemporal(Meos.TrgeometrySequenceN(this.Ptr, i)); public new Temporal?[] Sequences() - => MEOSFactory.WrapTemporalArray(MEOSExposedFunctions.trgeometry_sequences(this.Ptr)); + => MEOSFactory.WrapTemporalArray(Meos.TrgeometrySequences(this.Ptr)); public new Temporal? SetInterp(InterpolationType interp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_set_interp(this.Ptr, (int) interp)); + => MEOSFactory.WrapTemporal(Meos.TrgeometrySetInterp(this.Ptr, (int) interp)); public Temporal? Speed() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_speed(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometrySpeed(this.Ptr)); public new Temporal? StartInstant() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_start_instant(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryStartInstant(this.Ptr)); public new Temporal? StartSequence() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_start_sequence(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryStartSequence(this.Ptr)); public Temporal? ToTgeometry() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_to_tgeometry(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryToTgeometry(this.Ptr)); public Temporal? ToTgeompoint() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_to_tgeompoint(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryToTgeompoint(this.Ptr)); public Temporal? ToTpose() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_to_tpose(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryToTpose(this.Ptr)); public Temporal? Yaw() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_yaw(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryYaw(this.Ptr)); public static Temporal? FromMFJSON(string mfjson) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_from_mfjson(mfjson)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryFromMfjson(mfjson)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.trgeometry_in(str)); + => MEOSFactory.WrapTemporal(Meos.TrgeometryIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TRGeometryInst.g.cs b/MEOS.NET/Types/Generated/TRGeometryInst.g.cs index 176af5b..932b77b 100644 --- a/MEOS.NET/Types/Generated/TRGeometryInst.g.cs +++ b/MEOS.NET/Types/Generated/TRGeometryInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TRGeometrySeq.g.cs b/MEOS.NET/Types/Generated/TRGeometrySeq.g.cs index e588435..a4c2112 100644 --- a/MEOS.NET/Types/Generated/TRGeometrySeq.g.cs +++ b/MEOS.NET/Types/Generated/TRGeometrySeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TRGeometrySeqSet.g.cs b/MEOS.NET/Types/Generated/TRGeometrySeqSet.g.cs index 8251af4..57e97e4 100644 --- a/MEOS.NET/Types/Generated/TRGeometrySeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TRGeometrySeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TSequence.g.cs b/MEOS.NET/Types/Generated/TSequence.g.cs index ca4c5fd..b29ff4c 100644 --- a/MEOS.NET/Types/Generated/TSequence.g.cs +++ b/MEOS.NET/Types/Generated/TSequence.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TSequenceSet.g.cs b/MEOS.NET/Types/Generated/TSequenceSet.g.cs index 768f56f..596d3d3 100644 --- a/MEOS.NET/Types/Generated/TSequenceSet.g.cs +++ b/MEOS.NET/Types/Generated/TSequenceSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TSpatial.g.cs b/MEOS.NET/Types/Generated/TSpatial.g.cs index 08f4b4e..af11d87 100644 --- a/MEOS.NET/Types/Generated/TSpatial.g.cs +++ b/MEOS.NET/Types/Generated/TSpatial.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,28 +12,28 @@ public class TSpatial : Temporal internal TSpatial(IntPtr ptr) : base(ptr) { } public string AsEWKT(int maxdd) - => MEOSExposedFunctions.tspatial_as_ewkt(this.Ptr, maxdd); + => Meos.TspatialAsEwkt(this.Ptr, maxdd); public string AsText(int maxdd) - => MEOSExposedFunctions.tspatial_as_text(this.Ptr, maxdd); + => Meos.TspatialAsText(this.Ptr, maxdd); public string Out(int maxdd) - => MEOSExposedFunctions.tspatial_out(this.Ptr, maxdd); + => Meos.TspatialOut(this.Ptr, maxdd); public int SRID() - => MEOSExposedFunctions.tspatial_srid(this.Ptr); + => Meos.TspatialSrid(this.Ptr); public Temporal? SetSRID(int srid) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tspatial_set_srid(this.Ptr, srid)); + => MEOSFactory.WrapTemporal(Meos.TspatialSetSrid(this.Ptr, srid)); public STBox? ToStbox() - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.tspatial_to_stbox(this.Ptr)); + => MEOSFactory.WrapSTBox(Meos.TspatialToStbox(this.Ptr)); public Temporal? Transform(int srid) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tspatial_transform(this.Ptr, srid)); + => MEOSFactory.WrapTemporal(Meos.TspatialTransform(this.Ptr, srid)); public Temporal? TransformPipeline(string pipelinestr, int srid, bool is_forward) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.tspatial_transform_pipeline(this.Ptr, pipelinestr, srid, is_forward)); + => MEOSFactory.WrapTemporal(Meos.TspatialTransformPipeline(this.Ptr, pipelinestr, srid, is_forward)); } } diff --git a/MEOS.NET/Types/Generated/TText.g.cs b/MEOS.NET/Types/Generated/TText.g.cs index 9994fd7..526ec3d 100644 --- a/MEOS.NET/Types/Generated/TText.g.cs +++ b/MEOS.NET/Types/Generated/TText.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,25 +12,25 @@ public class TText : TAlpha internal TText(IntPtr ptr) : base(ptr) { } public Temporal? Initcap() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.ttext_initcap(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TtextInitcap(this.Ptr)); public Temporal? Lower() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.ttext_lower(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TtextLower(this.Ptr)); public string Out() - => MEOSExposedFunctions.ttext_out(this.Ptr); + => Meos.TtextOut(this.Ptr); public Temporal? ToTjsonb() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.ttext_to_tjsonb(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TtextToTjsonb(this.Ptr)); public Temporal? Upper() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.ttext_upper(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TtextUpper(this.Ptr)); public static Temporal? FromMFJSON(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.ttext_from_mfjson(str)); + => MEOSFactory.WrapTemporal(Meos.TtextFromMfjson(str)); public static Temporal? In(string str) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.ttext_in(str)); + => MEOSFactory.WrapTemporal(Meos.TtextIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TTextInst.g.cs b/MEOS.NET/Types/Generated/TTextInst.g.cs index 61955d1..6975d19 100644 --- a/MEOS.NET/Types/Generated/TTextInst.g.cs +++ b/MEOS.NET/Types/Generated/TTextInst.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TTextSeq.g.cs b/MEOS.NET/Types/Generated/TTextSeq.g.cs index 422ccb4..094ff77 100644 --- a/MEOS.NET/Types/Generated/TTextSeq.g.cs +++ b/MEOS.NET/Types/Generated/TTextSeq.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/TTextSeqSet.g.cs b/MEOS.NET/Types/Generated/TTextSeqSet.g.cs index 201add8..c1c0f64 100644 --- a/MEOS.NET/Types/Generated/TTextSeqSet.g.cs +++ b/MEOS.NET/Types/Generated/TTextSeqSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { diff --git a/MEOS.NET/Types/Generated/Temporal.g.cs b/MEOS.NET/Types/Generated/Temporal.g.cs index 41b2c29..bd46ec9 100644 --- a/MEOS.NET/Types/Generated/Temporal.g.cs +++ b/MEOS.NET/Types/Generated/Temporal.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,229 +12,229 @@ public class Temporal : MEOSObject internal Temporal(IntPtr ptr) : base(ptr) { } public Temporal? AfterTimestamptz(DateTime t, bool strict) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_after_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), strict)); + => MEOSFactory.WrapTemporal(Meos.TemporalAfterTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), strict)); public Temporal? AppendTsequence(Temporal seq, bool expand) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_append_tsequence(this.Ptr, seq.Ptr, expand)); + => MEOSFactory.WrapTemporal(Meos.TemporalAppendTsequence(this.Ptr, seq.Ptr, expand)); public string AsMFJSON(bool with_bbox, int flags, int precision, string srs) - => MEOSExposedFunctions.temporal_as_mfjson(this.Ptr, with_bbox, flags, precision, srs); + => Meos.TemporalAsMfjson(this.Ptr, with_bbox, flags, precision, srs); public Temporal? AsTinstant() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_as_tinstant(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalAsTinstant(this.Ptr)); public Temporal? AsTsequence(InterpolationType interp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_as_tsequence(this.Ptr, (int) interp)); + => MEOSFactory.WrapTemporal(Meos.TemporalAsTsequence(this.Ptr, (int) interp)); public Temporal? AsTsequenceset(InterpolationType interp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_as_tsequenceset(this.Ptr, (int) interp)); + => MEOSFactory.WrapTemporal(Meos.TemporalAsTsequenceset(this.Ptr, (int) interp)); public Temporal? AtMax() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_at_max(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalAtMax(this.Ptr)); public Temporal? AtMin() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_at_min(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalAtMin(this.Ptr)); public Temporal? AtTimestamptz(DateTime t) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_at_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t))); + => MEOSFactory.WrapTemporal(Meos.TemporalAtTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t))); public Temporal? AtTstzset(Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_at_tstzset(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalAtTstzset(this.Ptr, s.Ptr)); public Temporal? AtTstzspan(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_at_tstzspan(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalAtTstzspan(this.Ptr, s.Ptr)); public Temporal? AtTstzspanset(SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_at_tstzspanset(this.Ptr, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalAtTstzspanset(this.Ptr, ss.Ptr)); public Temporal? AtValues(Set set) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_at_values(this.Ptr, set.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalAtValues(this.Ptr, set.Ptr)); public double AverageHausdorffDistance(Temporal temp2) - => MEOSExposedFunctions.temporal_average_hausdorff_distance(this.Ptr, temp2.Ptr); + => Meos.TemporalAverageHausdorffDistance(this.Ptr, temp2.Ptr); public string? BasetypeName() - => MEOSExposedFunctions.temporal_basetype_name(this.Ptr); + => Meos.TemporalBasetypeName(this.Ptr); public Temporal? BeforeTimestamptz(DateTime t, bool strict) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_before_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), strict)); + => MEOSFactory.WrapTemporal(Meos.TemporalBeforeTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), strict)); public int Cmp(Temporal temp2) - => MEOSExposedFunctions.temporal_cmp(this.Ptr, temp2.Ptr); + => Meos.TemporalCmp(this.Ptr, temp2.Ptr); public Temporal? Copy() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_copy(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalCopy(this.Ptr)); public Temporal? DeleteTimestamptz(DateTime t, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_delete_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), connect)); + => MEOSFactory.WrapTemporal(Meos.TemporalDeleteTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t), connect)); public Temporal? DeleteTstzset(Set s, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_delete_tstzset(this.Ptr, s.Ptr, connect)); + => MEOSFactory.WrapTemporal(Meos.TemporalDeleteTstzset(this.Ptr, s.Ptr, connect)); public Temporal? DeleteTstzspan(Span s, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_delete_tstzspan(this.Ptr, s.Ptr, connect)); + => MEOSFactory.WrapTemporal(Meos.TemporalDeleteTstzspan(this.Ptr, s.Ptr, connect)); public Temporal? DeleteTstzspanset(SpanSet ss, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_delete_tstzspanset(this.Ptr, ss.Ptr, connect)); + => MEOSFactory.WrapTemporal(Meos.TemporalDeleteTstzspanset(this.Ptr, ss.Ptr, connect)); public Temporal? Derivative() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_derivative(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalDerivative(this.Ptr)); public double DyntimewarpDistance(Temporal temp2) - => MEOSExposedFunctions.temporal_dyntimewarp_distance(this.Ptr, temp2.Ptr); + => Meos.TemporalDyntimewarpDistance(this.Ptr, temp2.Ptr); public Temporal? EndInstant() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_end_instant(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalEndInstant(this.Ptr)); public Temporal? EndSequence() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_end_sequence(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalEndSequence(this.Ptr)); public DateTime EndTimestamptz() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.temporal_end_timestamptz(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TemporalEndTimestamptz(this.Ptr)); public bool Eq(Temporal temp2) - => MEOSExposedFunctions.temporal_eq(this.Ptr, temp2.Ptr); + => Meos.TemporalEq(this.Ptr, temp2.Ptr); public Temporal? ExtKalmanFilter(double gate, double q, double variance, bool to_drop) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_ext_kalman_filter(this.Ptr, gate, q, variance, to_drop)); + => MEOSFactory.WrapTemporal(Meos.TemporalExtKalmanFilter(this.Ptr, gate, q, variance, to_drop)); public double FrechetDistance(Temporal temp2) - => MEOSExposedFunctions.temporal_frechet_distance(this.Ptr, temp2.Ptr); + => Meos.TemporalFrechetDistance(this.Ptr, temp2.Ptr); public bool Ge(Temporal temp2) - => MEOSExposedFunctions.temporal_ge(this.Ptr, temp2.Ptr); + => Meos.TemporalGe(this.Ptr, temp2.Ptr); public bool Gt(Temporal temp2) - => MEOSExposedFunctions.temporal_gt(this.Ptr, temp2.Ptr); + => Meos.TemporalGt(this.Ptr, temp2.Ptr); public uint Hash() - => MEOSExposedFunctions.temporal_hash(this.Ptr); + => Meos.TemporalHash(this.Ptr); public ulong HashExtended(ulong seed) - => MEOSExposedFunctions.temporal_hash_extended(this.Ptr, seed); + => Meos.TemporalHashExtended(this.Ptr, seed); public double HausdorffDistance(Temporal temp2) - => MEOSExposedFunctions.temporal_hausdorff_distance(this.Ptr, temp2.Ptr); + => Meos.TemporalHausdorffDistance(this.Ptr, temp2.Ptr); public Temporal? Insert(Temporal temp2, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_insert(this.Ptr, temp2.Ptr, connect)); + => MEOSFactory.WrapTemporal(Meos.TemporalInsert(this.Ptr, temp2.Ptr, connect)); public Temporal? InstantN(int n) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_instant_n(this.Ptr, n)); + => MEOSFactory.WrapTemporal(Meos.TemporalInstantN(this.Ptr, n)); public Temporal?[] Instants() - => MEOSFactory.WrapTemporalArray(MEOSExposedFunctions.temporal_instants(this.Ptr)); + => MEOSFactory.WrapTemporalArray(Meos.TemporalInstants(this.Ptr)); public string? Interp() - => MEOSExposedFunctions.temporal_interp(this.Ptr); + => Meos.TemporalInterp(this.Ptr); public double LcssDistance(Temporal temp2, double epsilon) - => MEOSExposedFunctions.temporal_lcss_distance(this.Ptr, temp2.Ptr, epsilon); + => Meos.TemporalLcssDistance(this.Ptr, temp2.Ptr, epsilon); public bool Le(Temporal temp2) - => MEOSExposedFunctions.temporal_le(this.Ptr, temp2.Ptr); + => Meos.TemporalLe(this.Ptr, temp2.Ptr); public bool LowerInc() - => MEOSExposedFunctions.temporal_lower_inc(this.Ptr); + => Meos.TemporalLowerInc(this.Ptr); public bool Lt(Temporal temp2) - => MEOSExposedFunctions.temporal_lt(this.Ptr, temp2.Ptr); + => Meos.TemporalLt(this.Ptr, temp2.Ptr); public Temporal? MaxInstant() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_max_instant(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMaxInstant(this.Ptr)); public Temporal? Merge(Temporal temp2) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_merge(this.Ptr, temp2.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMerge(this.Ptr, temp2.Ptr)); public Temporal? MinInstant() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_min_instant(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMinInstant(this.Ptr)); public Temporal? MinusMax() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_minus_max(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMinusMax(this.Ptr)); public Temporal? MinusMin() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_minus_min(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMinusMin(this.Ptr)); public Temporal? MinusTimestamptz(DateTime t) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_minus_timestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t))); + => MEOSFactory.WrapTemporal(Meos.TemporalMinusTimestamptz(this.Ptr, MEOSConvert.ToTimestampTz(t))); public Temporal? MinusTstzset(Set s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_minus_tstzset(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMinusTstzset(this.Ptr, s.Ptr)); public Temporal? MinusTstzspan(Span s) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_minus_tstzspan(this.Ptr, s.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMinusTstzspan(this.Ptr, s.Ptr)); public Temporal? MinusTstzspanset(SpanSet ss) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_minus_tstzspanset(this.Ptr, ss.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMinusTstzspanset(this.Ptr, ss.Ptr)); public Temporal? MinusValues(Set set) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_minus_values(this.Ptr, set.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalMinusValues(this.Ptr, set.Ptr)); public bool Ne(Temporal temp2) - => MEOSExposedFunctions.temporal_ne(this.Ptr, temp2.Ptr); + => Meos.TemporalNe(this.Ptr, temp2.Ptr); public int NumInstants() - => MEOSExposedFunctions.temporal_num_instants(this.Ptr); + => Meos.TemporalNumInstants(this.Ptr); public int NumSequences() - => MEOSExposedFunctions.temporal_num_sequences(this.Ptr); + => Meos.TemporalNumSequences(this.Ptr); public int NumTimestamps() - => MEOSExposedFunctions.temporal_num_timestamps(this.Ptr); + => Meos.TemporalNumTimestamps(this.Ptr); public Temporal? Round(int maxdd) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_round(this.Ptr, maxdd)); + => MEOSFactory.WrapTemporal(Meos.TemporalRound(this.Ptr, maxdd)); public Temporal?[] Segments() - => MEOSFactory.WrapTemporalArray(MEOSExposedFunctions.temporal_segments(this.Ptr)); + => MEOSFactory.WrapTemporalArray(Meos.TemporalSegments(this.Ptr)); public Temporal? SequenceN(int i) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_sequence_n(this.Ptr, i)); + => MEOSFactory.WrapTemporal(Meos.TemporalSequenceN(this.Ptr, i)); public Temporal?[] Sequences() - => MEOSFactory.WrapTemporalArray(MEOSExposedFunctions.temporal_sequences(this.Ptr)); + => MEOSFactory.WrapTemporalArray(Meos.TemporalSequences(this.Ptr)); public Temporal? SetInterp(InterpolationType interp) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_set_interp(this.Ptr, (int) interp)); + => MEOSFactory.WrapTemporal(Meos.TemporalSetInterp(this.Ptr, (int) interp)); public Temporal? SimplifyDp(double dist, bool synchronized) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_simplify_dp(this.Ptr, dist, synchronized)); + => MEOSFactory.WrapTemporal(Meos.TemporalSimplifyDp(this.Ptr, dist, synchronized)); public Temporal? SimplifyMaxDist(double dist, bool synchronized) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_simplify_max_dist(this.Ptr, dist, synchronized)); + => MEOSFactory.WrapTemporal(Meos.TemporalSimplifyMaxDist(this.Ptr, dist, synchronized)); public Temporal? SimplifyMinDist(double dist) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_simplify_min_dist(this.Ptr, dist)); + => MEOSFactory.WrapTemporal(Meos.TemporalSimplifyMinDist(this.Ptr, dist)); public Temporal? StartInstant() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_start_instant(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalStartInstant(this.Ptr)); public Temporal? StartSequence() - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_start_sequence(this.Ptr)); + => MEOSFactory.WrapTemporal(Meos.TemporalStartSequence(this.Ptr)); public DateTime StartTimestamptz() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.temporal_start_timestamptz(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TemporalStartTimestamptz(this.Ptr)); public string? Subtype() - => MEOSExposedFunctions.temporal_subtype(this.Ptr); + => Meos.TemporalSubtype(this.Ptr); public SpanSet? Time() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.temporal_time(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.TemporalTime(this.Ptr)); public long[] Timestamps() - => MEOSExposedFunctions.temporal_timestamps(this.Ptr); + => Meos.TemporalTimestamps(this.Ptr); public Span? ToTstzspan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.temporal_to_tstzspan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.TemporalToTstzspan(this.Ptr)); public Temporal? Update(Temporal temp2, bool connect) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_update(this.Ptr, temp2.Ptr, connect)); + => MEOSFactory.WrapTemporal(Meos.TemporalUpdate(this.Ptr, temp2.Ptr, connect)); public bool UpperInc() - => MEOSExposedFunctions.temporal_upper_inc(this.Ptr); + => Meos.TemporalUpperInc(this.Ptr); public static Temporal? FromHEXWKB(string hexwkb) - => MEOSFactory.WrapTemporal(MEOSExposedFunctions.temporal_from_hexwkb(hexwkb)); + => MEOSFactory.WrapTemporal(Meos.TemporalFromHexwkb(hexwkb)); } } diff --git a/MEOS.NET/Types/Generated/TextSet.g.cs b/MEOS.NET/Types/Generated/TextSet.g.cs index f7321f1..657c084 100644 --- a/MEOS.NET/Types/Generated/TextSet.g.cs +++ b/MEOS.NET/Types/Generated/TextSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,19 +12,19 @@ public class TextSet : Set internal TextSet(IntPtr ptr) : base(ptr) { } public Set? Initcap() - => MEOSFactory.WrapSet(MEOSExposedFunctions.textset_initcap(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TextsetInitcap(this.Ptr)); public Set? Lower() - => MEOSFactory.WrapSet(MEOSExposedFunctions.textset_lower(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TextsetLower(this.Ptr)); public string Out() - => MEOSExposedFunctions.textset_out(this.Ptr); + => Meos.TextsetOut(this.Ptr); public Set? Upper() - => MEOSFactory.WrapSet(MEOSExposedFunctions.textset_upper(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TextsetUpper(this.Ptr)); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.textset_in(str)); + => MEOSFactory.WrapSet(Meos.TextsetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TsTzSet.g.cs b/MEOS.NET/Types/Generated/TsTzSet.g.cs index 7f7bb7c..c783421 100644 --- a/MEOS.NET/Types/Generated/TsTzSet.g.cs +++ b/MEOS.NET/Types/Generated/TsTzSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,25 +12,25 @@ public class TsTzSet : Set internal TsTzSet(IntPtr ptr) : base(ptr) { } public DateTime EndValue() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.tstzset_end_value(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TstzsetEndValue(this.Ptr)); public string Out() - => MEOSExposedFunctions.tstzset_out(this.Ptr); + => Meos.TstzsetOut(this.Ptr); public DateTime StartValue() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.tstzset_start_value(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TstzsetStartValue(this.Ptr)); public Set? ToDateset() - => MEOSFactory.WrapSet(MEOSExposedFunctions.tstzset_to_dateset(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TstzsetToDateset(this.Ptr)); public STBox? ToStbox() - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.tstzset_to_stbox(this.Ptr)); + => MEOSFactory.WrapSTBox(Meos.TstzsetToStbox(this.Ptr)); public long[] Values() - => MEOSExposedFunctions.tstzset_values(this.Ptr); + => Meos.TstzsetValues(this.Ptr); public static Set? In(string str) - => MEOSFactory.WrapSet(MEOSExposedFunctions.tstzset_in(str)); + => MEOSFactory.WrapSet(Meos.TstzsetIn(str)); } } diff --git a/MEOS.NET/Types/Generated/TsTzSpan.g.cs b/MEOS.NET/Types/Generated/TsTzSpan.g.cs index 6b554ef..5831265 100644 --- a/MEOS.NET/Types/Generated/TsTzSpan.g.cs +++ b/MEOS.NET/Types/Generated/TsTzSpan.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,25 +12,25 @@ public class TsTzSpan : Span internal TsTzSpan(IntPtr ptr) : base(ptr) { } public DateTime Lower() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.tstzspan_lower(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TstzspanLower(this.Ptr)); public string Out() - => MEOSExposedFunctions.tstzspan_out(this.Ptr); + => Meos.TstzspanOut(this.Ptr); public Span? ToDatespan() - => MEOSFactory.WrapSpan(MEOSExposedFunctions.tstzspan_to_datespan(this.Ptr)); + => MEOSFactory.WrapSpan(Meos.TstzspanToDatespan(this.Ptr)); public STBox? ToStbox() - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.tstzspan_to_stbox(this.Ptr)); + => MEOSFactory.WrapSTBox(Meos.TstzspanToStbox(this.Ptr)); public DateTime Upper() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.tstzspan_upper(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TstzspanUpper(this.Ptr)); public static Span? In(string str) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.tstzspan_in(str)); + => MEOSFactory.WrapSpan(Meos.TstzspanIn(str)); public static Span? Make(DateTime lower, DateTime upper, bool lower_inc, bool upper_inc) - => MEOSFactory.WrapSpan(MEOSExposedFunctions.tstzspan_make(MEOSConvert.ToTimestampTz(lower), MEOSConvert.ToTimestampTz(upper), lower_inc, upper_inc)); + => MEOSFactory.WrapSpan(Meos.TstzspanMake(MEOSConvert.ToTimestampTz(lower), MEOSConvert.ToTimestampTz(upper), lower_inc, upper_inc)); } } diff --git a/MEOS.NET/Types/Generated/TsTzSpanSet.g.cs b/MEOS.NET/Types/Generated/TsTzSpanSet.g.cs index 7c4d0bb..77d5dec 100644 --- a/MEOS.NET/Types/Generated/TsTzSpanSet.g.cs +++ b/MEOS.NET/Types/Generated/TsTzSpanSet.g.cs @@ -1,7 +1,7 @@ #nullable enable using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Generated { @@ -12,34 +12,34 @@ public class TsTzSpanSet : SpanSet internal TsTzSpanSet(IntPtr ptr) : base(ptr) { } public DateTime EndTimestamptz() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.tstzspanset_end_timestamptz(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TstzspansetEndTimestamptz(this.Ptr)); public DateTime Lower() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.tstzspanset_lower(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TstzspansetLower(this.Ptr)); public int NumTimestamps() - => MEOSExposedFunctions.tstzspanset_num_timestamps(this.Ptr); + => Meos.TstzspansetNumTimestamps(this.Ptr); public string Out() - => MEOSExposedFunctions.tstzspanset_out(this.Ptr); + => Meos.TstzspansetOut(this.Ptr); public DateTime StartTimestamptz() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.tstzspanset_start_timestamptz(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TstzspansetStartTimestamptz(this.Ptr)); public Set? Timestamps() - => MEOSFactory.WrapSet(MEOSExposedFunctions.tstzspanset_timestamps(this.Ptr)); + => MEOSFactory.WrapSet(Meos.TstzspansetTimestamps(this.Ptr)); public SpanSet? ToDatespanset() - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.tstzspanset_to_datespanset(this.Ptr)); + => MEOSFactory.WrapSpanSet(Meos.TstzspansetToDatespanset(this.Ptr)); public STBox? ToStbox() - => MEOSFactory.WrapSTBox(MEOSExposedFunctions.tstzspanset_to_stbox(this.Ptr)); + => MEOSFactory.WrapSTBox(Meos.TstzspansetToStbox(this.Ptr)); public DateTime Upper() - => MEOSConvert.ToDateTime(MEOSExposedFunctions.tstzspanset_upper(this.Ptr)); + => MEOSConvert.ToDateTime(Meos.TstzspansetUpper(this.Ptr)); public static SpanSet? In(string str) - => MEOSFactory.WrapSpanSet(MEOSExposedFunctions.tstzspanset_in(str)); + => MEOSFactory.WrapSpanSet(Meos.TstzspansetIn(str)); } } diff --git a/MEOS.NET/Types/Temporal/Boolean/TemporalBoolean.cs b/MEOS.NET/Types/Temporal/Boolean/TemporalBoolean.cs index b472cc5..de9c840 100644 --- a/MEOS.NET/Types/Temporal/Boolean/TemporalBoolean.cs +++ b/MEOS.NET/Types/Temporal/Boolean/TemporalBoolean.cs @@ -1,4 +1,4 @@ -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Temporal.Boolean { @@ -8,6 +8,6 @@ internal TemporalBoolean(IntPtr ptr) : base(ptr) { } public static TemporalBoolean FromMFJson(string mfJsonStr) - => new TemporalBoolean(MEOSExposedFunctions.tbool_from_mfjson(mfJsonStr)); + => new TemporalBoolean(Meos.TboolFromMfjson(mfJsonStr)); } } diff --git a/MEOS.NET/Types/Temporal/Number/Float/TemporalFloat.cs b/MEOS.NET/Types/Temporal/Number/Float/TemporalFloat.cs index 4c3596c..8e5ecd2 100644 --- a/MEOS.NET/Types/Temporal/Number/Float/TemporalFloat.cs +++ b/MEOS.NET/Types/Temporal/Number/Float/TemporalFloat.cs @@ -1,6 +1,6 @@ using MEOS.NET.Enums; using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.Collections.Float; using MEOS.NET.Types.Temporal.Boolean; using MEOS.NET.Types.Temporal.Number.Integer; @@ -16,21 +16,21 @@ internal TemporalFloat(IntPtr ptr) : base(ptr) public static TemporalFloat FromBaseTemporal(Temporal temporal, double value) { - var res = MEOSExposedFunctions.tfloat_from_base_temp(value, temporal._ptr); + var res = Meos.TfloatFromBaseTemp(value, temporal._ptr); return new TemporalFloat(res); } public static TemporalFloat FromString(string input) { - var res = MEOSExposedFunctions.tfloat_in(input); + var res = Meos.TfloatIn(input); return new TemporalFloatInstant(res); } public static TemporalFloat FromMFJson(string mfJsonStr) - => new TemporalFloat(MEOSExposedFunctions.tfloat_from_mfjson(mfJsonStr)); + => new TemporalFloat(Meos.TfloatFromMfjson(mfJsonStr)); public string Format(int maxDecimals) - => MEOSExposedFunctions.tfloat_out(this._ptr, maxdd: maxDecimals); + => Meos.TfloatOut(this._ptr, maxdd: maxDecimals); public override string ToString() => this.Format(15); @@ -43,57 +43,57 @@ public TemporalInteger ToTemporalInteger() "interpolation to a temporal integer."); } - var res = MEOSExposedFunctions.tfloat_to_tint(this._ptr); + var res = Meos.TfloatToTint(this._ptr); return new TemporalInteger(res); } public FloatSpan ToFloatSpan() { - var res = MEOSExposedFunctions.tnumber_to_span(this._ptr); + var res = Meos.TnumberToSpan(this._ptr); return new FloatSpan(res); } public FloatSpanSet ToFloatSpanSet() { - var res = MEOSExposedFunctions.tnumber_valuespans(this._ptr); + var res = Meos.TnumberValuespans(this._ptr); return new FloatSpanSet(res); } public double StartValue() - => MEOSExposedFunctions.tfloat_start_value(this._ptr); + => Meos.TfloatStartValue(this._ptr); public double EndValue() - => MEOSExposedFunctions.tfloat_end_value(this._ptr); + => Meos.TfloatEndValue(this._ptr); public double MinValue() - => MEOSExposedFunctions.tfloat_min_value(this._ptr); + => Meos.TfloatMinValue(this._ptr); public double MaxValue() - => MEOSExposedFunctions.tfloat_max_value(this._ptr); + => Meos.TfloatMaxValue(this._ptr); public FloatSet ToFloatSet() { - var values = MEOSExposedFunctions.tfloat_values(this._ptr); + var values = Meos.TfloatValues(this._ptr); return FloatSet.FromValues(values); } public bool IsAlwaysLessThan(double value) - => (MEOSExposedFunctions.always_lt_tfloat_float(this._ptr, value) != 0); + => (Meos.AlwaysLtTfloatFloat(this._ptr, value) != 0); public bool IsAlwaysLessThanOrEqualTo(double value) - => (MEOSExposedFunctions.always_le_tfloat_float(this._ptr, value) != 0); + => (Meos.AlwaysLeTfloatFloat(this._ptr, value) != 0); public bool IsAlwaysEqualTo(double value) - => (MEOSExposedFunctions.always_eq_tfloat_float(this._ptr, value) != 0); + => (Meos.AlwaysEqTfloatFloat(this._ptr, value) != 0); public bool IsEverLessThan(double value) - => (MEOSExposedFunctions.ever_lt_tfloat_float(this._ptr, value) != 0); + => (Meos.EverLtTfloatFloat(this._ptr, value) != 0); public bool IsEverLessThanOrEqualTo(double value) - => (MEOSExposedFunctions.ever_le_tfloat_float(this._ptr, value) != 0); + => (Meos.EverLeTfloatFloat(this._ptr, value) != 0); public bool IsEverEqualTo(double value) - => (MEOSExposedFunctions.ever_eq_tfloat_float(this._ptr, value) != 0); + => (Meos.EverEqTfloatFloat(this._ptr, value) != 0); public TemporalBoolean TemporalEqual(int other) => this.TemporalEqual((double)other); @@ -103,37 +103,37 @@ public TemporalBoolean TemporalNotEqual(int other) public TemporalBoolean TemporalEqual(double other) { - var res = MEOSExposedFunctions.teq_tfloat_float(this._ptr, other); + var res = Meos.TeqTfloatFloat(this._ptr, other); return new TemporalBoolean(res); } public TemporalBoolean TemporalNotEqual(double other) { - var res = MEOSExposedFunctions.tne_tfloat_float(this._ptr, other); + var res = Meos.TneTfloatFloat(this._ptr, other); return new TemporalBoolean(res); } public TemporalBoolean TemporalLessThan(double other) { - var res = MEOSExposedFunctions.tlt_tfloat_float(this._ptr, other); + var res = Meos.TltTfloatFloat(this._ptr, other); return new TemporalBoolean(res); } public TemporalBoolean TemporalLessThanOrEqualTo(double other) { - var res = MEOSExposedFunctions.tle_tfloat_float(this._ptr, other); + var res = Meos.TleTfloatFloat(this._ptr, other); return new TemporalBoolean(res); } public TemporalBoolean TemporalGreaterThan(double other) { - var res = MEOSExposedFunctions.tgt_tfloat_float(this._ptr, other); + var res = Meos.TgtTfloatFloat(this._ptr, other); return new TemporalBoolean(res); } public TemporalBoolean TemporalGreaterThanOrEqualTo(double other) { - var res = MEOSExposedFunctions.tge_tfloat_float(this._ptr, other); + var res = Meos.TgeTfloatFloat(this._ptr, other); return new TemporalBoolean(res); } @@ -151,7 +151,7 @@ public TemporalBoolean TemporalGreaterThanOrEqualTo(int other) public TemporalFloat At(double value) { - var res = MEOSExposedFunctions.tfloat_at_value(this._ptr, value); + var res = Meos.TfloatAtValue(this._ptr, value); return new TemporalFloat(res); } @@ -162,7 +162,7 @@ public double ValueAtTimestamp(DateTime timestamp) { var res = AllocHelper.AllocatePointer(sizeof(double), (resultPtr) => { - var successful = (MEOSExposedFunctions.tfloat_value_at_timestamptz(this._ptr, timestamp.ToPgTimestamp(), strict: true, resultPtr)); + var successful = (Meos.TfloatValueAtTimestamptz(this._ptr, timestamp.ToPgTimestamp(), strict: true, resultPtr)); return successful ? resultPtr.ToStructure() : default; }); @@ -176,43 +176,43 @@ public double ValueAtTimestamp(DateTime timestamp) public TemporalFloat Derivative() { - var res = MEOSExposedFunctions.temporal_derivative(this._ptr); + var res = Meos.TemporalDerivative(this._ptr); return new TemporalFloat(res); } public TemporalFloat ToDegrees(bool normalize = true) { - var res = MEOSExposedFunctions.tfloat_degrees(this._ptr, normalize); + var res = Meos.TfloatDegrees(this._ptr, normalize); return new TemporalFloat(res); } public TemporalFloat ToRadians() { - var res = MEOSExposedFunctions.tfloat_radians(this._ptr); + var res = Meos.TfloatRadians(this._ptr); return new TemporalFloat(res); } public TemporalFloat Round(int maxDecimals = 0) { - var res = MEOSExposedFunctions.temporal_round(this._ptr, maxdd: maxDecimals); + var res = Meos.TemporalRound(this._ptr, maxdd: maxDecimals); return new TemporalFloat(res); } public TemporalFloat Shift(double delta) { - var res = MEOSExposedFunctions.tfloat_shift_value(this._ptr, delta); + var res = Meos.TfloatShiftValue(this._ptr, delta); return new TemporalFloat(res); } public TemporalFloat Scale(double width) { - var res = MEOSExposedFunctions.tfloat_scale_value(this._ptr, width); + var res = Meos.TfloatScaleValue(this._ptr, width); return new TemporalFloat(res); } public TemporalFloat ShiftScale(double delta, double width) { - var res = MEOSExposedFunctions.tfloat_shift_scale_value(this._ptr, delta, width); + var res = Meos.TfloatShiftScaleValue(this._ptr, delta, width); return new TemporalFloat(res); } @@ -221,7 +221,7 @@ public TemporalFloat Add(int value) public TemporalFloat Add(double value) { - var res = MEOSExposedFunctions.add_tfloat_float(this._ptr, value); + var res = Meos.AddTfloatFloat(this._ptr, value); return new TemporalFloat(res); } @@ -230,7 +230,7 @@ public TemporalFloat Minus(int value) public TemporalFloat Minus(double value) { - var res = MEOSExposedFunctions.sub_tfloat_float(this._ptr, value); + var res = Meos.SubTfloatFloat(this._ptr, value); return new TemporalFloat(res); } @@ -239,7 +239,7 @@ public TemporalFloat Multiply(int value) public TemporalFloat Multiply(double value) { - var res = MEOSExposedFunctions.mul_tfloat_float(this._ptr, value); + var res = Meos.MulTfloatFloat(this._ptr, value); return new TemporalFloat(res); } @@ -248,13 +248,13 @@ public TemporalFloat Divide(int value) public TemporalFloat Divide(double value) { - var res = MEOSExposedFunctions.div_tfloat_float(this._ptr, value); + var res = Meos.DivTfloatFloat(this._ptr, value); return new TemporalFloat(res); } public TemporalFloat DistanceTo(double other) { - var res = MEOSExposedFunctions.tdistance_tfloat_float(this._ptr, other); + var res = Meos.TdistanceTfloatFloat(this._ptr, other); return new TemporalFloat(res); } @@ -262,10 +262,10 @@ public TemporalFloat DistanceTo(int other) => this.DistanceTo((double)other); public double NearestApproachDistance(TemporalFloat other) - => MEOSExposedFunctions.nad_tfloat_tfloat(this._ptr, other._ptr); + => Meos.NadTfloatTfloat(this._ptr, other._ptr); public double NearestApproachDistance(double other) - => MEOSExposedFunctions.nad_tfloat_float(this._ptr, other); + => Meos.NadTfloatFloat(this._ptr, other); public double NearestApproachDistance(int other) => this.NearestApproachDistance((double)other); diff --git a/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatInstant.cs b/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatInstant.cs index e1a6b10..f5e6036 100644 --- a/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatInstant.cs +++ b/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatInstant.cs @@ -1,5 +1,5 @@ using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Temporal.Number.Float { @@ -10,17 +10,17 @@ public class TemporalFloatInstant : TemporalFloat, IInstanteable internal TemporalFloatInstant(IntPtr ptr) : base(ptr) => this.Instant = new TemporalInstant(ptr); - public static new TemporalFloatInstant FromString(string input) + public static new TemporalFloatInstant FromString(string input) => (TemporalFloatInstant)TemporalFloat.FromString(input); public static TemporalFloatInstant FromTimestamp(DateTime timestamp, double value) { - var res = MEOSExposedFunctions.tfloatinst_make(value, timestamp.ToPgTimestamp()); + var res = Meos.TfloatinstMake(value, timestamp.ToPgTimestamp()); return new TemporalFloatInstant(res); } public double Value() - => MEOSExposedFunctions.tfloat_start_value(this._ptr); + => Meos.TfloatStartValue(this._ptr); } } diff --git a/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatSequence.cs b/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatSequence.cs index bcbee5f..7d3d661 100644 --- a/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatSequence.cs +++ b/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatSequence.cs @@ -1,5 +1,5 @@ using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.Collections.Time.Timestamp; namespace MEOS.NET.Types.Temporal.Number.Float @@ -13,13 +13,13 @@ internal TemporalFloatSequence(IntPtr ptr) : base(ptr) public static TemporalFloatSequence FromTimestampSet(TimestampTzSet tsTzSet, double value) { - var res = MEOSExposedFunctions.tfloatseq_from_base_tstzset(value, tsTzSet._ptr); + var res = Meos.TfloatseqFromBaseTstzset(value, tsTzSet._ptr); return new TemporalFloatSequence(res); } public static TemporalFloatSequence FromTimestampSpan(TimestampTzSpan tsTzSpan, double value, InterpolationType interpolation = InterpolationType.None) { - var res = MEOSExposedFunctions.tfloatseq_from_base_tstzspan(value, tsTzSpan._ptr, (int)interpolation); + var res = Meos.TfloatseqFromBaseTstzspan(value, tsTzSpan._ptr, (int)interpolation); return new TemporalFloatSequence(res); } } diff --git a/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatSequenceSet.cs b/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatSequenceSet.cs index 8151bdb..ea92481 100644 --- a/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatSequenceSet.cs +++ b/MEOS.NET/Types/Temporal/Number/Float/TemporalFloatSequenceSet.cs @@ -1,5 +1,5 @@ using MEOS.NET.Enums; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.Collections.Time.Timestamp; namespace MEOS.NET.Types.Temporal.Number.Float @@ -13,7 +13,7 @@ internal TemporalFloatSequenceSet(IntPtr ptr) : base(ptr) public static TemporalFloatSequenceSet FromTimestampSpanSet(TimestampTzSpanSet tsTzSpanSet, double value, InterpolationType interpolation = InterpolationType.None) { - var res = MEOSExposedFunctions.tfloatseqset_from_base_tstzspanset(value, tsTzSpanSet._ptr, (int)interpolation); + var res = Meos.TfloatseqsetFromBaseTstzspanset(value, tsTzSpanSet._ptr, (int)interpolation); return new TemporalFloatSequenceSet(res); } } diff --git a/MEOS.NET/Types/Temporal/Number/Integer/TemporalInteger.cs b/MEOS.NET/Types/Temporal/Number/Integer/TemporalInteger.cs index 63d5647..f050d51 100644 --- a/MEOS.NET/Types/Temporal/Number/Integer/TemporalInteger.cs +++ b/MEOS.NET/Types/Temporal/Number/Integer/TemporalInteger.cs @@ -1,4 +1,4 @@ -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace MEOS.NET.Types.Temporal.Number.Integer { @@ -9,25 +9,25 @@ internal TemporalInteger(IntPtr ptr) : base(ptr) public TemporalInteger Shift(int delta) { - var res = MEOSExposedFunctions.tint_shift_value(this._ptr, delta); + var res = Meos.TintShiftValue(this._ptr, delta); return new TemporalInteger(res); } public TemporalInteger Scale(int width) { - var res = MEOSExposedFunctions.tint_scale_value(this._ptr, width); + var res = Meos.TintScaleValue(this._ptr, width); return new TemporalInteger(res); } public TemporalInteger ShiftScale(int delta, int width) { - var res = MEOSExposedFunctions.tint_shift_scale_value(this._ptr, delta, width); + var res = Meos.TintShiftScaleValue(this._ptr, delta, width); return new TemporalInteger(res); } public TemporalInteger Add(int value) { - var res = MEOSExposedFunctions.add_tint_int(this._ptr, value); + var res = Meos.AddTintInt(this._ptr, value); return new TemporalInteger(res); } diff --git a/MEOS.NET/Types/Temporal/Number/TemporalNumber.cs b/MEOS.NET/Types/Temporal/Number/TemporalNumber.cs index b80e7f4..aeaf442 100644 --- a/MEOS.NET/Types/Temporal/Number/TemporalNumber.cs +++ b/MEOS.NET/Types/Temporal/Number/TemporalNumber.cs @@ -1,4 +1,4 @@ -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.Boxes; using MEOS.NET.Types.Collections; using MEOS.NET.Types.Collections.Float; @@ -14,37 +14,37 @@ internal TemporalNumber(IntPtr ptr) : base(ptr) private TemporalNumber At(Set set) { - var res = MEOSExposedFunctions.temporal_at_values(this._ptr, set._ptr); + var res = Meos.TemporalAtValues(this._ptr, set._ptr); return new TemporalNumber(res); } private TemporalNumber At(Span span) { - var res = MEOSExposedFunctions.tnumber_at_span(this._ptr, span._ptr); + var res = Meos.TnumberAtSpan(this._ptr, span._ptr); return new TemporalNumber(res); } private TemporalNumber At(SpanSet spanSet) { - var res = MEOSExposedFunctions.tnumber_at_spanset(this._ptr, spanSet._ptr); + var res = Meos.TnumberAtSpanset(this._ptr, spanSet._ptr); return new TemporalNumber(res); } private TemporalNumber Minus(Set set) { - var res = MEOSExposedFunctions.temporal_minus_values(this._ptr, set._ptr); + var res = Meos.TemporalMinusValues(this._ptr, set._ptr); return new TemporalNumber(res); } private TemporalNumber Minus(Span span) { - var res = MEOSExposedFunctions.tnumber_minus_span(this._ptr, span._ptr); + var res = Meos.TnumberMinusSpan(this._ptr, span._ptr); return new TemporalNumber(res); } private TemporalNumber Minus(SpanSet spanSet) { - var res = MEOSExposedFunctions.tnumber_minus_spanset(this._ptr, spanSet._ptr); + var res = Meos.TnumberMinusSpanset(this._ptr, spanSet._ptr); return new TemporalNumber(res); } @@ -68,7 +68,7 @@ public TemporalNumber At(IntegerSpanSet spanSet) public TemporalNumber At(TemporalBox box) { - var res = MEOSExposedFunctions.tnumber_at_tbox(this._ptr, box._ptr); + var res = Meos.TnumberAtTbox(this._ptr, box._ptr); return new TemporalNumber(res); } @@ -92,21 +92,21 @@ public TemporalNumber Minus(IntegerSpanSet spanSet) public TemporalNumber Minus(TemporalBox box) { - var res = MEOSExposedFunctions.tnumber_minus_tbox(this._ptr, box._ptr); + var res = Meos.TnumberMinusTbox(this._ptr, box._ptr); return new TemporalNumber(res); } public TemporalBox BoundingBox() { - var res = MEOSExposedFunctions.tnumber_to_tbox(this._ptr); + var res = Meos.TnumberToTbox(this._ptr); return new TemporalBox(res); } public double Integral() - => MEOSExposedFunctions.tnumber_integral(this._ptr); + => Meos.TnumberIntegral(this._ptr); public double TimeWeightedAverage() - => MEOSExposedFunctions.tnumber_twavg(this._ptr); + => Meos.TnumberTwavg(this._ptr); public bool IsLeftOf(TemporalBox other) => this.BoundingBox().IsLeftOf(other); @@ -134,51 +134,51 @@ public bool IsOverOrRightOf(TemporalNumber other) public TemporalNumber Add(TemporalNumber other) { - var res = MEOSExposedFunctions.add_tnumber_tnumber(this._ptr, other._ptr); + var res = Meos.AddTnumberTnumber(this._ptr, other._ptr); return new TemporalNumber(res); } public TemporalNumber Minus(TemporalNumber other) { - var res = MEOSExposedFunctions.sub_tnumber_tnumber(this._ptr, other._ptr); + var res = Meos.SubTnumberTnumber(this._ptr, other._ptr); return new TemporalNumber(res); } public TemporalNumber Multiply(TemporalNumber other) { - var res = MEOSExposedFunctions.mul_tnumber_tnumber(this._ptr, other._ptr); + var res = Meos.MulTnumberTnumber(this._ptr, other._ptr); return new TemporalNumber(res); } public TemporalNumber Divide(TemporalNumber other) { - var res = MEOSExposedFunctions.div_tnumber_tnumber(this._ptr, other._ptr); + var res = Meos.DivTnumberTnumber(this._ptr, other._ptr); return new TemporalNumber(res); } public TemporalNumber Absolute() { - var res = MEOSExposedFunctions.tnumber_abs(this._ptr); + var res = Meos.TnumberAbs(this._ptr); return new TemporalNumber(res); } public TemporalNumber Delta() { - var res = MEOSExposedFunctions.tnumber_delta_value(this._ptr); + var res = Meos.TnumberDeltaValue(this._ptr); return new TemporalNumber(res); } public TemporalNumber DistanceTo(TemporalNumber other) { - var res = MEOSExposedFunctions.tdistance_tnumber_tnumber(this._ptr, other._ptr); + var res = Meos.TdistanceTnumberTnumber(this._ptr, other._ptr); return new TemporalNumber(res); } public double NearestApproachDistance(TemporalNumber other) - => MEOSExposedFunctions.nad_tfloat_tfloat(this._ptr, other._ptr); + => Meos.NadTfloatTfloat(this._ptr, other._ptr); public double NearestApproachDistance(TemporalBox other) - => MEOSExposedFunctions.nad_tnumber_tbox(this._ptr, other._ptr); + => Meos.NadTnumberTbox(this._ptr, other._ptr); public static TemporalNumber operator /(TemporalNumber tNumber1, TemporalNumber tNumber2) => tNumber1.Divide(tNumber2); diff --git a/MEOS.NET/Types/Temporal/Temporal.cs b/MEOS.NET/Types/Temporal/Temporal.cs index 40ec1d9..e7ff996 100644 --- a/MEOS.NET/Types/Temporal/Temporal.cs +++ b/MEOS.NET/Types/Temporal/Temporal.cs @@ -2,7 +2,7 @@ using MEOS.NET.Errors; using MEOS.NET.Exceptions; using MEOS.NET.Helpers; -using MEOS.NET.Internal; +using MEOS.NET.Functions; using MEOS.NET.Types.General; using MEOS.NET.Types.Collections.Time.Timestamp; using MEOS.NET.Types.Temporal.Boolean; @@ -26,100 +26,100 @@ internal Temporal(IntPtr ptr) : base(ptr) public TemporalBoolean TemporalEqual(Temporal other) { - var res = MEOSExposedFunctions.teq_temporal_temporal(this._ptr, other._ptr); + var res = Meos.TeqTemporalTemporal(this._ptr, other._ptr); return new TemporalBoolean(res); } public TemporalBoolean TemporalNotEqual(Temporal other) { - var res = MEOSExposedFunctions.tne_temporal_temporal(this._ptr, other._ptr); + var res = Meos.TneTemporalTemporal(this._ptr, other._ptr); return new TemporalBoolean(res); } public TemporalBoolean TemporalGreaterThan(Temporal other) { - var res = MEOSExposedFunctions.tgt_temporal_temporal(this._ptr, other._ptr); + var res = Meos.TgtTemporalTemporal(this._ptr, other._ptr); return new TemporalBoolean(res); } public TemporalBoolean TemporalGreaterThanOrEqualTo(Temporal other) { - var res = MEOSExposedFunctions.tge_temporal_temporal(this._ptr, other._ptr); + var res = Meos.TgeTemporalTemporal(this._ptr, other._ptr); return new TemporalBoolean(res); } public TemporalBoolean TemporalLessThan(Temporal other) { - var res = MEOSExposedFunctions.tlt_temporal_temporal(this._ptr, other._ptr); + var res = Meos.TltTemporalTemporal(this._ptr, other._ptr); return new TemporalBoolean(res); } public TemporalBoolean TemporalLessThanOrEqualTo(Temporal other) { - var res = MEOSExposedFunctions.tle_temporal_temporal(this._ptr, other._ptr); + var res = Meos.TleTemporalTemporal(this._ptr, other._ptr); return new TemporalBoolean(res); } public Temporal Copy() { - var res = MEOSExposedFunctions.temporal_copy(this._ptr); + var res = Meos.TemporalCopy(this._ptr); return new Temporal(res); } public Temporal Minus(DateTime timestamp) { - var res = MEOSExposedFunctions.temporal_minus_timestamptz(this._ptr, timestamp.ToPgTimestamp()); + var res = Meos.TemporalMinusTimestamptz(this._ptr, timestamp.ToPgTimestamp()); return new Temporal(res); } public Temporal Minus(TimestampTzSet tsTzSet) { - var res = MEOSExposedFunctions.temporal_minus_tstzset(this._ptr, tsTzSet._ptr); + var res = Meos.TemporalMinusTstzset(this._ptr, tsTzSet._ptr); return new Temporal(res); } public Temporal Minus(TimestampTzSpan tsTzSpan) { - var res = MEOSExposedFunctions.temporal_minus_tstzspan(this._ptr, tsTzSpan._ptr); + var res = Meos.TemporalMinusTstzspan(this._ptr, tsTzSpan._ptr); return new Temporal(res); } public Temporal Minus(TimestampTzSpanSet tsTzSpanSet) { - var res = MEOSExposedFunctions.temporal_minus_tstzspanset(this._ptr, tsTzSpanSet._ptr); + var res = Meos.TemporalMinusTstzspanset(this._ptr, tsTzSpanSet._ptr); return new Temporal(res); } public Temporal At(DateTime timestamp) { - var res = MEOSExposedFunctions.temporal_at_timestamptz(this._ptr, timestamp.ToPgTimestamp()); + var res = Meos.TemporalAtTimestamptz(this._ptr, timestamp.ToPgTimestamp()); return new Temporal(res); } public Temporal At(TimestampTzSet tsTzSet) { - var res = MEOSExposedFunctions.temporal_at_tstzset(this._ptr, tsTzSet._ptr); + var res = Meos.TemporalAtTstzset(this._ptr, tsTzSet._ptr); return new Temporal(res); } public Temporal At(TimestampTzSpan tsTzSpan) { - var res = MEOSExposedFunctions.temporal_at_tstzspan(this._ptr, tsTzSpan._ptr); + var res = Meos.TemporalAtTstzspan(this._ptr, tsTzSpan._ptr); return new Temporal(res); } public Temporal At(TimestampTzSpanSet tsTzSpanSet) { - var res = MEOSExposedFunctions.temporal_at_tstzspanset(this._ptr, tsTzSpanSet._ptr); + var res = Meos.TemporalAtTstzspanset(this._ptr, tsTzSpanSet._ptr); return new Temporal(res); } public string ToMfJSON(bool boundingBox = true, int flags = 3, int precision = 6, string srs = "") - => MEOSExposedFunctions.temporal_as_mfjson(this._ptr, boundingBox, flags, precision, srs); + => Meos.TemporalAsMfjson(this._ptr, boundingBox, flags, precision, srs); public TimestampTzSpan BoundingBox() { - var res = MEOSExposedFunctions.temporal_to_tstzspan(this._ptr); + var res = Meos.TemporalToTstzspan(this._ptr); return new TimestampTzSpan(res); } @@ -127,7 +127,7 @@ public InterpolationType Interpolation() { // temporal_interp names one of the interpolations MEOS defines, out of // its own static table, so the name is there for every temporal value. - var interpolationStr = MEOSExposedFunctions.temporal_interp(this._ptr) + var interpolationStr = Meos.TemporalInterp(this._ptr) ?? throw new MEOSInternalErrorException( (int)MEOSErrorCodes.InternalError, MEOSErrorCodes.InternalError, @@ -137,19 +137,19 @@ public InterpolationType Interpolation() public TimestampTzSpanSet Time() { - var res = MEOSExposedFunctions.temporal_time(this._ptr); + var res = Meos.TemporalTime(this._ptr); return new TimestampTzSpanSet(res); } public string Duration(bool ignoreGaps = false) { - var res = MEOSExposedFunctions.temporal_duration(this._ptr, ignoreGaps); - return MEOSExposedFunctions.interval_out(res); + var res = Meos.TemporalDuration(this._ptr, ignoreGaps); + return Meos.IntervalOut(res); } public TimestampTzSpan TimeSpan() { - var res = MEOSExposedFunctions.temporal_to_tstzspan(this._ptr); + var res = Meos.TemporalToTstzspan(this._ptr); return new TimestampTzSpan(res); } @@ -157,7 +157,7 @@ public TimestampTzSpan ToTimestampTzSpan() => this.TimeSpan(); public int InstantsCount() - => MEOSExposedFunctions.temporal_num_instants(this._ptr); + => Meos.TemporalNumInstants(this._ptr); // TODO : Implement other, generic, temporal methods } diff --git a/MEOS.NET/Types/Temporal/TemporalInstant.cs b/MEOS.NET/Types/Temporal/TemporalInstant.cs index 605dafd..971b1dd 100644 --- a/MEOS.NET/Types/Temporal/TemporalInstant.cs +++ b/MEOS.NET/Types/Temporal/TemporalInstant.cs @@ -1,40 +1,40 @@ -using MEOS.NET.Helpers; -using MEOS.NET.Internal; -using MEOS.NET.Structures; - -namespace MEOS.NET.Types.Temporal -{ - public class TemporalInstant : Temporal - { - public TemporalInstant(IntPtr ptr) : base(ptr) - { } - - public DateTime Timestamp() - { - var timestamps = MEOSExposedFunctions.temporal_timestamps(this._ptr); - - if (timestamps.Length != 1) - { - throw new InvalidOperationException("The number of elements in the array of instants should be 1 for a single instant."); - } - - return new TimestampTz { Time = timestamps[0] }.ToDateTime(); - } - - public IEnumerable TimestampAsEnumerable() - { - return new List - { - this.Timestamp(), - }; - } - - public IEnumerable> ToEnumerable() - { - return new List> - { - this, - }; - } - } -} +using MEOS.NET.Helpers; +using MEOS.NET.Functions; +using MEOS.NET.Structures; + +namespace MEOS.NET.Types.Temporal +{ + public class TemporalInstant : Temporal + { + public TemporalInstant(IntPtr ptr) : base(ptr) + { } + + public DateTime Timestamp() + { + var timestamps = Meos.TemporalTimestamps(this._ptr); + + if (timestamps.Length != 1) + { + throw new InvalidOperationException("The number of elements in the array of instants should be 1 for a single instant."); + } + + return new TimestampTz { Time = timestamps[0] }.ToDateTime(); + } + + public IEnumerable TimestampAsEnumerable() + { + return new List + { + this.Timestamp(), + }; + } + + public IEnumerable> ToEnumerable() + { + return new List> + { + this, + }; + } + } +} diff --git a/tools/README.md b/tools/README.md index 9d9963b..967047c 100644 --- a/tools/README.md +++ b/tools/README.md @@ -1,8 +1,12 @@ # MEOS.NET binding regen via MEOS-API -`codegen.py` regenerates `MEOS.NET/Internal/MEOSExternalFunctions.cs` and -`MEOS.NET/Internal/MEOSExposedFunctions.cs` from MobilityDB/MEOS-API's -unified `meos-idl.json` catalog. +`codegen.py` regenerates `MEOS.NET/Functions/` from MobilityDB/MEOS-API's +unified `meos-idl.json` catalog: the public `MEOS.NET.Functions.Meos` class, +one file per MEOS header exactly as the catalog groups the declarations, plus +`Meos.Native.g.cs` with the P/Invoke declarations behind them. A method is the +C name in PascalCase — `tfloat_in` reads `TfloatIn`, `meos_initialize` reads +`MeosInitialize` — the spelling GoMEOS exports, so one rule serves the +ecosystem rather than a per-binding invention. `objectgen.py` regenerates `MEOS.NET/Types/Generated/*.g.cs` — the object layer — from the same catalog's `objectModel`, which is the ecosystem-wide @@ -33,8 +37,8 @@ single-line-only regex, hardcoded developer DllPath). python3 tools/objectgen.py /path/to/meos-idl.json --report ``` -The two `.cs` files under `MEOS.NET/Internal/` are overwritten in place -with bindings for every public MEOS function in the catalog, and +`MEOS.NET/Functions/` is rewritten with a binding for every MEOS function in +the catalog, and `MEOS.NET/Types/Generated/` is rewritten with one class per object-model class. `--report` lists, per class, every method the object layer leaves to the raw binding and why. diff --git a/tools/codegen.py b/tools/codegen.py index 5cf0c8d..0a7bbbe 100755 --- a/tools/codegen.py +++ b/tools/codegen.py @@ -23,6 +23,11 @@ DLL_PATH = "meos" GENERATOR_VERSION = "0.1.0" +# The public surface: one static class, in one namespace, split across one file +# per MEOS header exactly as the catalog groups the functions. +NAMESPACE = "MEOS.NET.Functions" +CLASS = "Meos" + # Canonical C type -> C# parameter/return type. # `canonical` field from meos-idl.json is libclang-normalized (e.g. int32_t -> int). SCALAR_MAP: dict[str, str] = { @@ -173,6 +178,15 @@ def csharp_return_type(c_type: str, canonical: str) -> str: return csharp_type_for(canonical) +def public_name(c_name: str) -> str: + """The C# name of a MEOS function: `tfloat_in` reads `TfloatIn`. + + Each underscore-separated part is capitalized and the underscores dropped, + which is the spelling GoMEOS exports (`MeosInitialize`, `TfloatIn`) — one + ecosystem-wide rule rather than a per-binding invention.""" + return "".join(part[:1].upper() + part[1:] for part in c_name.split("_") if part) + + def csharp_param_name(name: str) -> str: """Avoid C# reserved keywords as parameter names.""" reserved = { @@ -198,14 +212,12 @@ def gen_external_functions(funcs: list[dict]) -> str: lines.append("using System.CodeDom.Compiler;") lines.append("using System.Runtime.InteropServices;") lines.append("") - lines.append("using MEOS.NET.Enums;") - lines.append("") - lines.append("namespace MEOS.NET.Internal") + lines.append(f"namespace {NAMESPACE}") lines.append("{") - lines.append(" internal partial class MEOSExposedFunctions") + lines.append(f" public static partial class {CLASS}") lines.append(" {") - lines.append(f' [GeneratedCode("MEOS.NET.Builder.MEOSIDL", "{GENERATOR_VERSION}")]') - lines.append(" private partial class MEOSExternalFunctions") + lines.append(f' [GeneratedCode("MEOS.NET.Codegen", "{GENERATOR_VERSION}")]') + lines.append(" private static partial class Native") lines.append(" {") lines.append(f' private const string DllPath = "{DLL_PATH}";') lines.append("") @@ -226,10 +238,11 @@ def gen_external_functions(funcs: list[dict]) -> str: else: params.append(f"{ptype} {pname}") param_list = ", ".join(params) - lines.append(" [LibraryImport(DllPath, StringMarshalling = StringMarshalling.Utf8)]") + lines.append(f' [LibraryImport(DllPath, EntryPoint = "{name}", ' + "StringMarshalling = StringMarshalling.Utf8)]") if rt == "bool": lines.append(" [return: MarshalAs(UnmanagedType.U1)]") - lines.append(f" public static partial {rt} {name}({param_list});") + lines.append(f" internal static partial {rt} {public_name(name)}({param_list});") lines.append("") lines.append(" }") @@ -366,20 +379,20 @@ def _emit_outputs_wrapper(f: dict) -> list[str]: SIGNATURES[name] = (ret_type, sig_types) lines: list[str] = [] - lines.append(f" public static {ret_type} {name}({user_params})") + lines.append(f" public static {ret_type} {public_name(name)}({user_params})") lines.append(" {") lines.extend(setup) lines.append(" try") lines.append(" {") if array_ret: - lines.append(f" IntPtr _resultPtr = SafeExecution(() => MEOSExternalFunctions.{name}({ext_args}));") + lines.append(f" IntPtr _resultPtr = SafeExecution(() => Native.{public_name(name)}({ext_args}));") else: # Void or bool return with only outputs. rt = csharp_return_type(f["returnType"]["c"], f["returnType"]["canonical"]) if rt == "void": - lines.append(f" SafeExecution(() => MEOSExternalFunctions.{name}({ext_args}));") + lines.append(f" SafeExecution(() => Native.{public_name(name)}({ext_args}));") else: - lines.append(f" SafeExecution<{rt}>(() => MEOSExternalFunctions.{name}({ext_args}));") + lines.append(f" SafeExecution<{rt}>(() => Native.{public_name(name)}({ext_args}));") lines.append(f" int _n = Marshal.ReadInt32(_count_{count_param});") if array_ret: ret_elem, ret_strategy = _csharp_array_element(f["returnType"]["c"], f["returnType"]["canonical"]) @@ -457,10 +470,10 @@ def _copy(indent: str) -> list[str]: accessor = length_meta["func"] arg = csharp_param_name(length_meta["arg"]) lines = [ - f" public static {ret_type} {name}({ext_params})", + f" public static {ret_type} {public_name(name)}({ext_params})", " {", - f" int _n = (int)MEOSExposedFunctions.{accessor}({arg});", - f" IntPtr _p = SafeExecution(() => MEOSExternalFunctions.{name}({ext_args}));", + f" int _n = (int)Meos.{public_name(accessor)}({arg});", + f" IntPtr _p = SafeExecution(() => Native.{public_name(name)}({ext_args}));", ] lines += _copy(" ") lines.append(" }") @@ -478,12 +491,12 @@ def _copy(indent: str) -> list[str]: for p in f["params"]) SIGNATURES[name] = (ret_type, [t for t in _typed_params(f) if t[1] != count_name]) lines = [ - f" public static {ret_type} {name}({pub})", + f" public static {ret_type} {public_name(name)}({pub})", " {", " IntPtr _cnt = Marshal.AllocHGlobal(sizeof(int));", " try", " {", - f" IntPtr _p = SafeExecution(() => MEOSExternalFunctions.{name}({call_args}));", + f" IntPtr _p = SafeExecution(() => Native.{public_name(name)}({call_args}));", " int _n = Marshal.ReadInt32(_cnt);", ] lines += _copy(" ") @@ -501,24 +514,24 @@ def _emit_simple_passthrough(f: dict, ext_params: str, ext_args: str, default_rt if default_rt is None and is_borrowed_string(f["returnType"]["c"]): SIGNATURES[name] = ("string?", _typed_params(f)) return [ - f" public static string? {name}({ext_params})", + f" public static string? {public_name(name)}({ext_params})", f" => Marshal.PtrToStringUTF8(" - f"SafeExecution(() => MEOSExternalFunctions.{name}({ext_args})));", + f"SafeExecution(() => Native.{public_name(name)}({ext_args})));", ] SIGNATURES[name] = (rt, _typed_params(f)) if rt == "void": return [ - f" public static void {name}({ext_params})", - f" => SafeExecution(() => MEOSExternalFunctions.{name}({ext_args}));", + f" public static void {public_name(name)}({ext_params})", + f" => SafeExecution(() => Native.{public_name(name)}({ext_args}));", ] return [ - f" public static {rt} {name}({ext_params})", - f" => SafeExecution<{rt}>(() => MEOSExternalFunctions.{name}({ext_args}));", + f" public static {rt} {public_name(name)}({ext_params})", + f" => SafeExecution<{rt}>(() => Native.{public_name(name)}({ext_args}));", ] -def gen_exposed_functions(funcs: list[dict]) -> str: - """Generate the safe-executed wrappers. +def gen_exposed_functions(funcs: list[dict], header: str | None = None) -> str: + """Generate the public wrappers, for one MEOS header or for all of them. Each wrapper either delegates straight through SafeExecution or, when meos-idl.json carries a ``shape`` annotation for the function, lifts @@ -526,15 +539,15 @@ def gen_exposed_functions(funcs: list[dict]) -> str: sibling-accessor length emits a Marshal.Copy unpack; other shapes fall back to the IntPtr passthrough today.""" lines: list[str] = [] - lines.append("using System.CodeDom.Compiler;") lines.append("using System.Runtime.InteropServices;") lines.append("") - lines.append("using MEOS.NET.Enums;") - lines.append("") - lines.append("namespace MEOS.NET.Internal") + lines.append(f"namespace {NAMESPACE}") lines.append("{") - lines.append(f' [GeneratedCode("MEOS.NET.Builder.MEOSIDL", "{GENERATOR_VERSION}")]') - lines.append(" internal partial class MEOSExposedFunctions") + if header: + lines.append(f" /// The MEOS functions {header} declares.") + # The attribute names the whole partial type, so it sits on the one part that + # holds the native declarations; a second part carrying it is a duplicate. + lines.append(f" public static partial class {CLASS}") lines.append(" {") for f in funcs: @@ -556,6 +569,16 @@ def gen_exposed_functions(funcs: list[dict]) -> str: return "\n".join(lines) + "\n" +def by_header(funcs: list[dict]) -> dict[str, list[dict]]: + """The functions grouped by the header the catalog says declares them, which + is how the surface is split into files — the grouping MEOS itself publishes, + not one this generator invents.""" + grouped: dict[str, list[dict]] = {} + for f in funcs: + grouped.setdefault(f.get("file") or "meos.h", []).append(f) + return grouped + + def _typed_params(f: dict) -> list[tuple[str, str]]: """The wrapper's parameter list as ``(csharp_type, name)`` pairs, in order.""" return [(csharp_param_type(p["cType"], p["canonical"]), @@ -582,12 +605,26 @@ def main(idl_path: str, dll_path: str = DLL_PATH) -> None: configure(idl) funcs = idl["functions"] repo_root = Path(__file__).resolve().parent.parent - out_dir = repo_root / "MEOS.NET" / "Internal" + out_dir = repo_root / "MEOS.NET" / "Functions" + if out_dir.exists(): + for stale in out_dir.glob("*.g.cs"): + stale.unlink() out_dir.mkdir(parents=True, exist_ok=True) - (out_dir / "MEOSExternalFunctions.cs").write_text(gen_external_functions(funcs)) - (out_dir / "MEOSExposedFunctions.cs").write_text(gen_exposed_functions(funcs)) - print(f"Wrote {len(funcs)} function bindings to MEOS.NET/Internal/", file=sys.stderr) + collisions = {} + for f in funcs: + collisions.setdefault(public_name(f["name"]), []).append(f["name"]) + clashing = {k: v for k, v in collisions.items() if len(v) > 1} + if clashing: + raise SystemExit(f"codegen: C names sharing one C# name: {clashing}") + + (out_dir / "Meos.Native.g.cs").write_text(gen_external_functions(funcs)) + grouped = by_header(funcs) + for header, group in sorted(grouped.items()): + stem = header.removesuffix(".h") + (out_dir / f"Meos.{stem}.g.cs").write_text(gen_exposed_functions(group, header)) + print(f"Wrote {len(funcs)} functions across {len(grouped)} headers " + f"to MEOS.NET/Functions/", file=sys.stderr) if __name__ == "__main__": diff --git a/tools/objectgen.py b/tools/objectgen.py index 0500d54..1dc482a 100644 --- a/tools/objectgen.py +++ b/tools/objectgen.py @@ -9,7 +9,7 @@ public MEOS function to the class it is a method of, with its canonical camelCase ``ooName``. This generator projects that model onto C#: one class per model class, inheritance from the model's parent edges, and one method per assigned function -delegating to the ``MEOSExposedFunctions`` wrapper that ``codegen.py`` emits for the +delegating to the ``Meos`` wrapper that ``codegen.py`` emits for the same function. The wrapper signatures come from ``codegen.SIGNATURES`` rather than from the raw C @@ -345,7 +345,7 @@ def method_for(self, cls: str, entry: dict) -> Method | None: sig.append((mapped[0], pname)) args.append(mapped[1]) - call = f"MEOSExposedFunctions.{fname}({', '.join(args)})" + call = f"Meos.{codegen.public_name(fname)}({', '.join(args)})" return Method(pascal(oo), ret_type, sig, ret_expr.replace("$", call), static) def inherited_names(self, cls: str) -> set[tuple]: @@ -375,7 +375,7 @@ def emit_class(self, cls: str) -> str: "#nullable enable", "", "using MEOS.NET.Enums;", - "using MEOS.NET.Internal;", + "using MEOS.NET.Functions;", "", f"namespace {NAMESPACE}", "{", @@ -439,7 +439,7 @@ def convert_file(self) -> str: using System.Globalization; -using MEOS.NET.Internal; +using MEOS.NET.Functions; namespace {NAMESPACE} {{ @@ -449,24 +449,24 @@ def convert_file(self) -> str: {{ /// A MEOS TimestampTz as a DateTime. internal static DateTime ToDateTime(long timestamptz) - => DateTime.Parse(MEOSExposedFunctions.timestamptz_out(timestamptz), + => DateTime.Parse(Meos.TimestamptzOut(timestamptz), CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal); /// A DateTime as a MEOS TimestampTz. internal static long ToTimestampTz(DateTime moment) - => MEOSExposedFunctions.timestamptz_in( + => Meos.TimestamptzIn( moment.ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss.ffffff+00", CultureInfo.InvariantCulture), -1); /// A MEOS DateADT as a DateOnly. internal static DateOnly ToDateOnly(int date) - => DateOnly.Parse(MEOSExposedFunctions.date_out(date), + => DateOnly.Parse(Meos.DateOut(date), CultureInfo.InvariantCulture); /// A DateOnly as a MEOS DateADT. internal static int ToDateADT(DateOnly day) - => MEOSExposedFunctions.date_in( + => Meos.DateIn( day.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture)); }} }}