SECCTEBase Class

class SECCTEBase

SECCTEBase is an abstract class that serves as the base for the SECBase64Encoder and SECQPEncoder MIME content-transfer-encoding classes. SECCTEBase defines the API for the encoding/decoding operations and also implements some of the buffer management routines common to the encoder classes.

See Also SECBase64Encoder and SECQPEncoder

Member functions include: Encode, EndEncode, Decode, EndDecode, GetOutBufferSize, InitializeEncoder, SetMaxLinelen, GetMaxLinelen, SetCRLFOutput, GetCRLFOutput, SetFinalNewline, GetFinalNewline, SetStreamingMode, and GetStreamingMode

Defined in: XMLCTEb64qp.h

Class Members

virtual void InitializeEncoder()

Sets/Resets the encoder state.

virtual int Encode(BYTE* pInBuffer, int nInLength, BYTE* pOutBuffer=NULL, int nOutLength=-1)

Encodes the data provided in the in-buffer.

virtual int EndEncode(BYTE* pOutBuffer, int nOutLength)

Writes the encoded data to the out-buffer.

virtual int Decode(BYTE* pInBuffer, int nInLength, BYTE* pOutBuffer=NULL, int nOutLength=-1)

Decodes the encoded data provided in the in-buffer.

virtual int EndDecode(BYTE* pOutBuffer, int nOutLength)

Writes the decoded data to the out-buffer.

void SetMaxLinelen(int nMax)

Sets the maximum line length.

int GetMaxLinelen()

Returns the maximum line length

void SetCRLFOutput(bool bSet)

Sets the CRLF output attribute.

bool GetCRLFOutput()

Returns the CRLF output attribute.

void SetFinalNewline(bool bSet)

Sets the final new line attribute.

bool GetFinalNewline()

Returns the final new line attribute.

void SetStreamingMode(bool bStreaming)

Sets the streaming mode.

bool GetStreamingMode()

Returns the current streaming mode.

int GetOutBufferSize()

Returns the size of the output buffer.