SECCTEBase::Encode

intSECCTEBase::Encode(BYTE*pInBuffer, intnInLength, BYTE*pOutBuffer = NULL, intnOutLength = -1)

Calling the Encode function will encode the data provided in the pInBuffer parameter. Depending on the streaming mode, input data can be fed in one encode call or sequential calls. When the pOutBuffer parameter is NULL the encoded data is written to an internal buffer and can be obtained by a call to EndEncode.

Defined in: XMLCTEb64qp.h

Return Value

Returns the length in bytes of the encoded data.

Parameters

pInBuffer

Starting address of the input buffer.

nInLength

Length of the input buffer.

pOutBuffer = NULL

Address of the output buffer. If NULL, an internal buffer will be used.

nOutLength = -1

Length of the output buffer.

Comments

Pure virtual in SECCTEBase. Implementated in the SECBase64Encoder and SECQPEncoder classes.