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 |
index | [ 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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidArg | pBuffer is set to NULL. |
P6R::eFormatError | Not a properly formated ASN.1 (and BER) NULL value. |