Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IAsn1::decodeBoolean ( P6UINT8 pBuffer,
P6UINT32  bufSize,
P6UINT32 index,
P6BOOL value 
)
pure virtual

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
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
value[ out ] { P6TRUE, P6FALSE }
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidArgpBuffer is set to NULL.
errors from decodeLength()This function calls decodeLength.
P6R::eFormatErrorIf the length of the encoding is not 1, or if the encoding for 'TRUE' is incorrect.