OpenDOF Project
DOFValue DOFType_CreateInstance ( const DOFType  self,
uint32 *  length,
const uint8 *  buffer 
)

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
typeThe 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).
bufferThe 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
NULLis 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.
core-c-dof-oal Version 8.0.0 Build 0
2017-04-21