Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Requirements

Header: atlenc.h

Show: