sdaiIsInstanceOfBN

This call checks if an instance is an exact instance of a given entity. Technically sdaiIsInstanceOfBN will transform into the following call

    sdaiIsInstanceOf(
            instance,
            sdaiGetEntity(
                    engiGetEntityModel(
                            sdaiGetInstanceType(
                                    instance
                                )
                        ),
                    entityName
                )
        );

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "sdaiIsInstanceOfBN")]
public static extern Int32 x86_sdaiIsInstanceOfBN(Int32 instance, string entityName);

[DllImport(enginedll, EntryPoint = "sdaiIsInstanceOfBN")]
public static extern Int32 x64_sdaiIsInstanceOfBN(Int64 instance, string entityName);

public static Int32 sdaiIsInstanceOfBN(Int64 instance, string entityName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiIsInstanceOfBN((Int32)instance, entityName);
				return _result;
			}
			else
			{
				return x64_sdaiIsInstanceOfBN(instance, entityName);
			}
		}

[DllImport(enginedll, EntryPoint = "sdaiIsInstanceOfBN")]
public static extern Int32 x86_sdaiIsInstanceOfBN(Int32 instance, byte[] entityName);

[DllImport(enginedll, EntryPoint = "sdaiIsInstanceOfBN")]
public static extern Int32 x64_sdaiIsInstanceOfBN(Int64 instance, byte[] entityName);

public static Int32 sdaiIsInstanceOfBN(Int64 instance, byte[] entityName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiIsInstanceOfBN((Int32)instance, entityName);
				return _result;
			}
			else
			{
				return x64_sdaiIsInstanceOfBN(instance, entityName);
			}
		}    

Property instance

Size: 32 bit / 4 byte (value)
...

Property entityName

Size: 32 bit / 4 byte (reference)
...