DOFType Constructor (DOFPacket)OpenDOF Object Access Library
Construct a type from the data read from the wire.

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

C#
protected DOFType(
	DOFPacket packet
)

Parameters

packet
Type: org.opendof.core.oalDOFPacket
The source of the type. Must not be null.
Exceptions

ExceptionCondition
DOFMarshalExceptionAny exception caused during read.
DOFMarshalException
Remarks

Construct a type from the data read from the wire.

This method is always called from the extending class. All types follow a consistent format. In many cases this will read all of the associated data, but the subtype must ensure this.

To verify the lengths involved a mark is placed in the buffer. The subclass must read its data This is called from the DOFTypeFactory. This routine must read and validate the data length.

See Also

Reference