engiOpenModelByArray

This function opens the model via an array.
Attribute repository will be ignored, they are their because of backward compatibility.
A handle to the model will be returned, or 0 in case something went wrong.

Syntax

public const string ifcenginedll = @"ifcengine.dll";

[DllImport(IFCEngineDLL, EntryPoint = "engiOpenModelByArray")]
public static extern Int64 engiOpenModelByArray(int_t repository, byte[] content, int_t size, string schemaName);

[DllImport(IFCEngineDLL, EntryPoint = "engiOpenModelByArray")]
public static extern Int64 engiOpenModelByArray(int_t repository, byte[] content, int_t size, byte[] schemaName);    

Property repository

Size: 64 bit / 8 byte (value)
Ignore this attribute, the value will be ignored in the current implementation, present for backwards compatibility.

Property content

Size: 64 bit / 8 byte (reference)
The content of this IO call, the size of the content is defined by attribute size.

Property size

Size: 64 bit / 8 byte (value)
The size of the content as defined in number of bytes.

Property schemaName

Size: 64 bit / 8 byte (reference)
The schema name of the file as available in the file system in ASCII (char *). The given char array will not be adjusted, on each OS the size of a char element is 8 bit / 1 byte.