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


BEncodeGetRequiredLength

Call this function to get the size in characters of a buffer that could contain a string encoded from data of the specified size.

inline int BEncodeGetRequiredLength(
   int nSrcLen,
   int nCharsetLen 
) throw( );

Параметры

  • nSrcLen
    The number of bytes of data to be encoded.

  • nCharsetLen
    The length in characters of the character set to use for the conversion.

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

The number of characters required for a buffer that could hold encoded data of nSrcLen bytes.

Заметки

The "B" encoding scheme is described in RFC 2047 (http://www.ietf.org/rfc/rfc2047.txt).

Требования

Header: atlenc.h

См. также

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

ATL Concepts

ATL Reference

ATL Functions Alphabetical Reference

BEncode