|
|
Unmarshal a DOFValue from a buffer, based on the given type.
- Resource Management:
- This function allocates resources that must later be freed by calling DOFValue_Destroy.
- Parameters
-
| type | The DOFType of the DOFValue to be unmarshalled. This must not be NULL. |
| length | [IN/OUT] The total length of the buffer (in); the length of the data unmarshalled (OUT). |
| buffer | The buffer in which the DOFValue is marshalled. This should not be NULL. |
- Returns
- The new DOFValue created. A Nullable type may cause a NULL to be unmarshalled (correctly), in which case the length will be non-zero (since data was read).
- Exceptions
-
| NULL | is returned and length is zero, if insufficient resources are available to create the value, buffer is NULL, or there were insufficient data bytes in the buffer to correctly unmarshal the specified DOFType. |
|