Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IAsn1_2::encodeInteger32_2 ( P6UINT8 pBuffer,
P6UINT32  bufSize,
P6UINT32 pIndex,
P6INT32  intValue,
P6UINT8  overrideTag 
)
pure virtual

Generates the standard BER encoding of an integer type.

Limitation: the integer value to encode is restricted to be a 32 bit signed value.

Parameters
pBuffer[ in out ] array of bytes to build an ASN.1 encoded message
bufSize[ in ] size in octets (i.e., bytes) of pBuffer
pIndex[ in ] current offset into pBuffer, that is, the next free byte to write into [ out ] As the integer is encoded in pBuffer this index value increases in value
intValue[ in ] 32 bit signed value to encode
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
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidArgOne of the parameters is NULL.
P6R::eTooBigThe remaining space in pBuffer is insufficient to encode the integer value.