OpenDOF Project
DOFValue DOFValueString_Create_Buffer ( uint16  encoding,
uint32  strLength,
uint32  bufferSize,
const uint8 val 
)

Create a new DOFValue to hold a single value of type Fixed-Encoding String.

Resource Management:
This function allocates resources that must later be freed by calling DOFValue_Destroy.
Parameters
encodingThe MIBenum value, a unique value identifying a specific coded character set used by val. This should be > 2.
strLengthThe number of characters in val (used only for type compatibility). This should be >= bufferSize. This may be 0 to disable string length checking for this value.
bufferSizeThe number of data bytes in the buffer val.
valThe Fixed-Encoding String value to be held by the new DOFValue. This must not be NULL if bufferSize > 0.
Returns
The new DOFValue, representing a single value of type Fixed-Encoding String.
Exceptions
NULLis returned if the resulting DOFValue could not be created, or an invalid parameter was detected.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22