BER and DER transferencodings can result in different values for the representation of 'TRUE'.
This function hides this difference and just returns the proper P6BOOL typed value depending on how the p6asn1 component was initialized.
- 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 |
pValue | [ out ] { P6TRUE, P6FALSE } |
- 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. |
errors from decodeLength() | This function calls decodeLength. |
P6R::eFormatError | If the length of the encoding is not 1, or if the encoding for 'TRUE' is incorrect. |