Share via


AtlHexDecode

 

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

Syntax

      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

Active Template Library (ATL) Concepts
ATL COM Desktop Components
ATL Functions Alphabetical Reference
AtlHexDecodeGetRequiredLength
AtlHexEncode
AtlHexEncodeGetRequiredLength