void CBase64::SetEncodeBuffer(const PBYTE pBuffer, DWORD nBufLen) { DWORD i = 0; AllocEncode(nBufLen); while(i < nBufLen) { if (!_IsBadMimeChar(pBuffer[i])) { m_pEBuffer[m_nEDataLen] = pBuffer[i]; m_nEDataLen++; } i++; } }
void CBase64::SetEncodeBuffer(const unsigned char* pBuffer, unsigned long nBufLen) { unsigned long i = 0; AllocEncode(nBufLen); while(i < nBufLen) { if(!_IsBadMimeChar(pBuffer[i])) { m_pEBuffer[m_nEDataLen] = pBuffer[i]; m_nEDataLen++; } i++; } }