This function determines which one of the above, supported, integer encoding functions to invoke for the caller.
- 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 |
integer | [ in ] Can be either a 32 or 64 bit signed or unsigned number [ out ] As the integer is encoded in pBuffer this index value increases in value |
overrideTag | [ in ] define an application tag to be used instead of the standard integer tag. If set to zero, then the universal tag of integer is used. |
- 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. | |