Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKMIPStructure::getRawBytes ( P6BSTR  value,
P6UINT32 pWritten 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eInvalidArgvalue.pString has a null value.
P6R::eTooSmallThe value.pString buffer is too small.