Return the raw KMIP encoded type currently pointed to by the enumerator cursor.
Note, that the size of the buffer required to extract the raw encoding of the current KMIP element is returned in the next() call pCursor parameter.
Note that the caller must initialize the value.pString and value.length values to a valid buffer of the required size. This size is always returned as a result of a next() call.
- Parameters
-
value | [ out ] Pointer to a buffer to copy the the bytes that comprise the KMIP type pointed to by the enumerator cursor. |
pWritten | [ out ] Optional can be NULL. If not NULL, then the number of bytes written into value.pString is returned. The value.length field is not modified by this function. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eInvalidArg | value.pString has a null value. |
P6R::eTooSmall | The value.pString buffer is too small. |