Skip to main content
Version: 2.x

Class OdinCore<T, U>

Native library initializer

Declaration
public static class OdinCore<T, U> where T : OdinHandle where U : NativeMethods<T>

Properties​

IsInitialized​

Indicates whether or not the native ODIN runtime has been loaded and initialized

Declaration
public static bool IsInitialized { get; }

NativeBinary​

Location of the native ODIN runtime binary

Declaration
public static string NativeBinary { get; }

Platform​

Platform the library is running on

Declaration
public static SupportedPlatform Platform { get; }

Methods​

Initialize()​

Initializes the native ODIN runtime

Declaration
public static void Initialize()

Initialize(OdinLibraryParameters)​

Creates a new library instance

Declaration
public static void Initialize(OdinLibraryParameters parameters)
Parameters​
TypeNameDescription
OdinNative.Core.OdinLibraryParametersparametersInformation used to create the instance
Exceptions​

System.InvalidOperationException
a library is already created System.ArgumentNullException
parameters is null

Release()​

Releases the unmanaged resources used by the wrapper

Declaration
public static void Release()