This class implements a MIME parser and verifier. More...
#include <llmime.h>
Public Member Functions | |
bool | parseIndex (const U8 *buffer, S32 buffer_length, LLMimeIndex &index) |
Parse a memory bufffer to find the mime index information. | |
bool | parseIndex (std::istream &istr, S32 limit, LLMimeIndex &index) |
Parse a stream to find the mime index information. | |
bool | parseIndex (const std::vector< U8 > &buffer, LLMimeIndex &index) |
Parse a vector to find the mime index information. | |
bool | parseIndex (std::istream &istr, LLMimeIndex &index) |
Parse a stream to find the mime index information. |
This class implements a MIME parser and verifier.
THOROUGH_DESCRIPTION
bool LLMimeParser::parseIndex | ( | const U8 * | buffer, | |
S32 | buffer_length, | |||
LLMimeIndex & | index | |||
) |
Parse a memory bufffer to find the mime index information.
buffer | The start of the buffer to parse. | |
buffer_length | The length of the buffer. | |
index[out] | The parsed output. |
bool LLMimeParser::parseIndex | ( | std::istream & | istr, | |
S32 | limit, | |||
LLMimeIndex & | index | |||
) |
Parse a stream to find the mime index information.
This method will scan the istr until a single complete mime entity is read, an EOF, or limit bytes have been scanned. The istr will be modified by this parsing, so pass in a temporary stream or rewind/reset the stream after this call.
istr | An istream which contains a mime entity. | |
limit | The maximum number of bytes to scan. | |
index[out] | The parsed output. |
bool LLMimeParser::parseIndex | ( | const std::vector< U8 > & | buffer, | |
LLMimeIndex & | index | |||
) |
Parse a vector to find the mime index information.
buffer | A vector with data to parse. | |
index[out] | The parsed output. |
bool LLMimeParser::parseIndex | ( | std::istream & | istr, | |
LLMimeIndex & | index | |||
) |
Parse a stream to find the mime index information.
This method will scan the istr until a single complete mime entity is read or EOF. The istr will be modified by this parsing, so pass in a temporary stream or rewind/reset the stream after this call.
istr | An istream which contains a mime entity. | |
index[out] | The parsed output. |