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

Generates the standard BER encoding of an Octet String.

The length of any octet string is limited by the limits defined by the encodeLength function above.

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 octets are encoded in pBuffer this index value increases in value
pString[ in ] our internal representation of a binary array (not a null terminated string) This can be of length zero, and pBytes == NULL. In this case an empty octet string is generated (i.e., length of the octet string is encoded as zero).
overrideTag[ in ] define an application tag to be used instead of the standard octet string tag. If set to zero, then the universal tag for Octet string 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::eTooBigInsufficent free space in pBuffer to add octete string.
errors from encodeLength()This function calls encodeLength.