Skip to main content

CoreApi

Struct CoreApi 

Source
pub struct CoreApi { /* private fields */ }
Expand description

Raw C ABI for GeoKernel.Core. Loaded modules remain resident until process exit.

Implementations§

Source§

impl CoreApi

Source

pub const SYMBOLS: &'static [&'static str]

Source

pub unsafe fn load(path: &Path) -> Result<Self, LoadError>

Load a trusted, ABI-compatible GeoKernel runtime module.

§Safety

Library initializers must be safe and every symbol must match this SDK ABI.

Source

pub unsafe fn GeoKernelAgentProvenance_AppendJson( &self, a0: *mut c_void, a1: *const WChar, a2: *mut WChar, a3: i32, ) -> i32

Native declaration: int GeoKernelAgentProvenance_AppendJson(void* store,const wchar_t* json,wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAgentProvenance_Create(&self) -> *mut c_void

Native declaration: void* GeoKernelAgentProvenance_Create().

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAgentProvenance_Destroy(&self, a0: *mut c_void)

Native declaration: void GeoKernelAgentProvenance_Destroy(void* store).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAgentProvenance_ExportJson( &self, a0: *mut c_void, a1: *mut WChar, a2: i32, ) -> i32

Native declaration: int GeoKernelAgentProvenance_ExportJson(void* store,wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelAgentProvenance_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelAgentProvenance_LastError(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelFeatureBatch_Destroy(&self, a0: *mut c_void)

Native declaration: void GeoKernelFeatureBatch_Destroy(void* batch).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelFeatureBatch_FromJson( &self, a0: *const WChar, ) -> *mut c_void

Native declaration: void* GeoKernelFeatureBatch_FromJson(const wchar_t* json).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelFeatureBatch_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelFeatureBatch_LastError(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelFeatureBatch_RowCount(&self, a0: *mut c_void) -> i64

Native declaration: long long GeoKernelFeatureBatch_RowCount(void* batch).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelFeatureBatch_ToJson( &self, a0: *mut c_void, a1: *mut WChar, a2: i32, ) -> i32

Native declaration: int GeoKernelFeatureBatch_ToJson(void* batch,wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelGisOperation_CatalogJson( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelGisOperation_CatalogJson(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelGisOperation_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelGisOperation_LastError(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelGisOperation_NormalizeJson( &self, a0: *const WChar, a1: *mut WChar, a2: i32, ) -> i32

Native declaration: int GeoKernelGisOperation_NormalizeJson(const wchar_t* json,wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelGisOperation_ValidateJson( &self, a0: *const WChar, a1: *mut WChar, a2: i32, ) -> i32

Native declaration: int GeoKernelGisOperation_ValidateJson(const wchar_t* json,wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelGisOperation_ValidationLastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelGisOperation_ValidationLastError(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelNaturalLanguagePlan_EvaluateProposalJson( &self, a0: *const WChar, a1: *mut WChar, a2: i32, ) -> i32

Native declaration: int GeoKernelNaturalLanguagePlan_EvaluateProposalJson(const wchar_t* json,wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelNaturalLanguagePlan_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelNaturalLanguagePlan_LastError(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelNaturalLanguagePlan_SystemContract( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelNaturalLanguagePlan_SystemContract(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelOperation_ContextSize(&self) -> u32

Native declaration: uint32_t GeoKernelOperation_ContextSize(void).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelOperation_ContextVersion(&self) -> u32

Native declaration: uint32_t GeoKernelOperation_ContextVersion(void).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelOperation_ValidateContextV1( &self, a0: *const GeoKernelOperationContextV1, ) -> i32

Native declaration: int GeoKernelOperation_ValidateContextV1(const GeoKernelOperationContextV1* context).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelSpatialEmbeddingIndex_AddJson( &self, a0: *mut c_void, a1: *const WChar, ) -> i32

Native declaration: int GeoKernelSpatialEmbeddingIndex_AddJson(void* index,const wchar_t* recordJson).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelSpatialEmbeddingIndex_Create( &self, a0: i32, a1: i32, ) -> *mut c_void

Native declaration: void* GeoKernelSpatialEmbeddingIndex_Create(int dimensions,int signatureBits).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelSpatialEmbeddingIndex_Destroy(&self, a0: *mut c_void)

Native declaration: void GeoKernelSpatialEmbeddingIndex_Destroy(void* index).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelSpatialEmbeddingIndex_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelSpatialEmbeddingIndex_LastError(wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelSpatialEmbeddingIndex_QueryJson( &self, a0: *mut c_void, a1: *const WChar, a2: *mut WChar, a3: i32, ) -> i32

Native declaration: int GeoKernelSpatialEmbeddingIndex_QueryJson(void* index,const wchar_t* queryJson,wchar_t* buffer,int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalIndex_CapabilitiesJson( &self, a0: *mut c_void, a1: *mut WChar, a2: i32, ) -> i32

Native declaration: int GeoKernelTemporalIndex_CapabilitiesJson(void* index, wchar_t* buffer, int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalIndex_Create( &self, a0: *mut c_void, a1: *const WChar, ) -> *mut c_void

Native declaration: void* GeoKernelTemporalIndex_Create(void* featureBatch, const wchar_t* optionsJson).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalIndex_Destroy(&self, a0: *mut c_void)

Native declaration: void GeoKernelTemporalIndex_Destroy(void* index).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalIndex_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelTemporalIndex_LastError(wchar_t* buffer, int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalIndex_QueryJson( &self, a0: *mut c_void, a1: *const WChar, a2: *mut WChar, a3: i32, ) -> i32

Native declaration: int GeoKernelTemporalIndex_QueryJson(void* index, const wchar_t* rangeJson, wchar_t* buffer, int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalPlayback_CommandJson( &self, a0: *mut c_void, a1: *const WChar, a2: *mut WChar, a3: i32, ) -> i32

Native declaration: int GeoKernelTemporalPlayback_CommandJson(void* controller, const wchar_t* commandJson, wchar_t* buffer, int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalPlayback_Create( &self, a0: *const WChar, ) -> *mut c_void

Native declaration: void* GeoKernelTemporalPlayback_Create(const wchar_t* optionsJson).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalPlayback_Destroy(&self, a0: *mut c_void)

Native declaration: void GeoKernelTemporalPlayback_Destroy(void* controller).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Source

pub unsafe fn GeoKernelTemporalPlayback_LastError( &self, a0: *mut WChar, a1: i32, ) -> i32

Native declaration: int GeoKernelTemporalPlayback_LastError(wchar_t* buffer, int bufferLength).

§Safety

Obey the native pointer, ownership, buffer, thread, and callback contracts.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.