This method is used for parsing an ASN.1 encoded block of memory.
Its purpose is to make it easy to skip any field that is not currently of interest. It will skip the entire field, that is its TAG, LENGTH, and VALUE. The index value will point to the next field to be parsed.
- 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 |
tag | [ in ] the expected tag value |
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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidArg | One of the parameters is NULL. |
P6R::eFormatError | Not a properly formated ASN.1 (and BER) NULL value. |
P6R::eTooBig | No next field to skip. |