DOFTypeContextcreate Method (Boolean, DOFPacket)OpenDOF Object Access Library
Create a type from a buffer that is pointing to a reference to the type in the context.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOFType create(
	bool fully_define,
	DOFPacket packet
)

Parameters

fully_define
Type: SystemBoolean
true
if only fully defined types should be returned.
packet
Type: org.opendof.core.oalDOFPacket
The packet that is pointing at a reference.

Return Value

Type: DOFType
The resulting type. Null will not be returned.
Exceptions

ExceptionCondition
DOFMarshalExceptionThrown if the type could not be read.
DOFMarshalException
Remarks

Create a type from a buffer that is pointing to a reference to the type in the context.

This routine is recursive, and so it must protect against references that cause infinite recursion. This is done by removing the buffer from the hash when it is being read. If a loop exists it will find a null entry, which triggers a failure.

See Also

Reference