Encodes an array of bytes into a hexadecimal-encoded string.
Public Declare Function CNV_HexStrFromBytes Lib "diCryptoSys.dll"
(ByVal strOutput As String, ByVal nMaxChars As Long, ByRef lpData As Byte, ByVal nBytes As Long) As Long
nRet = CNV_HexStrFromBytes(strOutput, nMaxChars, abData(0), nDataLen)
long __stdcall CNV_HexStrFromBytes(char *szOutput, long nMaxChars, const unsigned char *lpInput, long nBytes);
If successful, the return value is the number of characters in the encoded string; otherwise it returns a negative error code.
Public Function cnvHexStrFromBytes
(lpData() As Byte) As String
Cnv.ToHex Method (Byte[])
conv.HexFromBytes
Public Function HexFromBytes(ByVal abData As Variant) As String
See conv.HexFromBytes
.
static std::string crsysapi::Cnv::ToHex (const bvec_t &bv)
static std::string crsysapi::Cnv::ToHex (const std::string &s)
static Cnv.tohex(data)
For the "raw" function, specify a zero nOutChars or a null string for szOutput to find the required length of the output string. C/C++ users must add one to this value when allocating memory.
CNV_BytesFromHexStr
CNV_HexFilter