The standard integer type is a signed value.
This limits the positive value that can be transmitted in a 32 bit value. This function allows the caller to send a 32 bit unsigned integer value in an application specific way (i.e., an application tag must be provided).
- Parameters
-
pBuffer | [ in out ] array of bytes to build an ASN.1 encoded message |
bufSize | [ in ] size in octets (i.e., bytes) of pBuffer |
index | [ in ] current offset into pBuffer, that is, the next free byte to write into [ out ] As the unsigned number is encoded in pBuffer this index value increases in value |
numValue | [ in ] 32 bit unsigned value to encode |
applicationTag | [ in ] Calling application must set a standard BER encoded tag (i.e., an application tag value not a universal tag) |
- 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::eTooBigThe remaining space in pBuffer is insufficient to encode the integer value. | |