Partager via


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( );

Parameters

  • 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.

Return Value

Returns TRUE on success, FALSE on failure.

Requirements

Header: atlenc.h

See Also

Reference

AtlHexDecodeGetRequiredLength

AtlHexEncode

AtlHexEncodeGetRequiredLength

Other Resources

ATL Concepts

ATL Reference

ATL Functions Alphabetical Reference