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


AtlHexDecode

Decodes a string of data that has been encoded as hexadecimal text such as by a previous call to AtlHexEncode.

inline BOOL AtlHexDecode(
   LPCSTR pSrcData,
   int nSrcLen,
   LPBYTE pbDest,
   int* pnDestLen 
) throw( );

Параметры

  • pSrcData
    The string containing the data to be decoded.

  • nSrcLen
    The length in characters of pSrcData.

  • pbDest
    Caller-allocated buffer to receive the decoded data.

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

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

Returns TRUE on success, FALSE on failure.

Требования

Header: atlenc.h

См. также

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

ATL Concepts

ATL Reference

ATL Functions Alphabetical Reference

AtlHexDecodeGetRequiredLength

AtlHexEncode

AtlHexEncodeGetRequiredLength