Create a
DOFValue
instance from a
DOFPacket
.
When called the current buffer location will point at the first byte of data associated with the
type. On completion, the buffer location must point at the first byte after the data, meaning the
first unread byte.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public abstract DOFValue getInstance( DOFPacket packet )
Parameters
- packet
- Type: org.opendof.core.oalDOFPacket
The buffer which contains the serialized form of the object. Must not be null.
Return Value
Type: DOFValueA value that corresponds to this type. This may be
null
Exceptions
Exception | Condition |
---|---|
DOFMarshalException | If there are errors in the data or the buffer. This is an exception to the rule that non-RuntimeExceptions not be thrown from a constructor. |
DOFMarshalException |
See Also