Поделиться через


UUEncode

Call this function to uuencode some data.

inline BOOL UUEncode(
   const BYTE* pbSrcData,
   int nSrcLen,
   LPSTR szDest,
   int* pnDestLen,
   LPCTSTR lpszFile = _T("file"),
   DWORD dwFlags = 0 
) throw( );

Параметры

  • pbSrcData
    The buffer containing the data to be encoded.

  • nSrcLen
    The length in bytes of the data to be encoded.

  • szDest
    Caller-allocated buffer to receive the encoded data.

  • pnDestLen
    Pointer to a variable that contains the length in characters of szDest. If the function succeeds, the variable receives the number of characters written to the buffer. If the function fails, the variable receives the required length in characters of the buffer.

  • lpszFile
    The file to be added to the header when ATLSMTP_UUENCODE_HEADER is specified in dwFlags.

  • dwFlags
    Flags controlling the behavior of this function. See ATLSMTP_UUENCODE Flags.

Возвращаемое значение

Returns TRUE on success, FALSE on failure.

Заметки

This uuencoding implementation follows the POSIX P1003.2b/D11 specification.

Требования

Header: atlenc.h

См. также

Основные понятия

ATL Concepts

ATL Reference

ATL Functions Alphabetical Reference

UUDecode

UUDecodeGetRequiredLength

UUEncodeGetRequiredLength