11#include <codeanalysis\warnings.h>
13#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
69 wxCharBuffer dst(dstLen);
85 return wxHexEncode(buf.GetData(), buf.GetDataLen());
164 return wxHexDecode(dst, dstLen, src.ToAscii(), wxNO_LEN, mode, posErr);
203 return wxHexDecode(src.ToAscii(), wxNO_LEN, mode, posErr);
size_t WXEXTEND_API wxHexDecode(void *dst, size_t dstLen, const char *src, size_t srcLen=wxNO_LEN, wxHexDecodeMode mode=wxHexDecodeMode::Strict, size_t *posErr=NULL)
Raw decoding function which decodes the contents of the string of specified length (or zero terminate...
Definition hex.cpp:36
#define WXEXTEND_API
Public function calling convention.
Definition common.h:56
constexpr size_t wxHexDecodedSize(size_t len) noexcept
Return the buffer size necessary for decoding a hex string of the given length.
Definition hex.h:113
size_t WXEXTEND_API wxHexEncode(char *dst, size_t dstLen, const void *src, size_t srcLen)
Raw hex encoding function which encodes the contents of a buffer of the specified length into the buf...
Definition hex.cpp:10
wxHexDecodeMode
Elements of this enum specify the possible behaviours of wxHexDecode() when an invalid character is e...
Definition hex.h:98
constexpr size_t wxHexEncodedSize(size_t len) noexcept
Return the size needed for the buffer containing the encoded representation of a buffer of given leng...
Definition hex.h:34
@ SkipWS
Skip whitespace characters.
@ Strict
Normal behaviour: stop at any invalid characters.
@ Relaxed
The most lenient behaviour: simply ignore all invalid characters.