Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IAsn1_2::decodeNULL_2 ( P6UINT8 pBuffer,
P6UINT32  bufSize,
P6UINT32 pIndex 
)
pure virtual

For cases when the value of a type is empty.

This function verifies both the BER tag and length value (length will be zero). Thus pBuffer[ index ] MUST point to the BER tag of the type in question (notice this is different from the other decode functions). The only return value is the P6ERR of eOk if NULL was detected. On success the index value is incremented to the next type in the pBuffer.

Parameters
pBuffer[ in ] Byte array containg the ASN.1 encoded data to decode
bufSize[ in ] the amount of data (in bytes) pointed to by pBuffer
pIndex[ in ] current offset into pBuffer, should be pointing to the length field of an integer tagged value [ out ] this index moves down the pBuffer data as the data is decoded
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidArgOne of the parameters is NULL.
P6R::eFormatErrorNot a properly formated ASN.1 (and BER) NULL value.