HexToBinary for RString -> RString
This commit is contained in:
@@ -178,6 +178,12 @@ bool HexToBinary( const RString &s, unsigned char *stringOut )
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool HexToBinary( const RString &s, RString &sOut )
|
||||||
|
{
|
||||||
|
sOut.resize(s.size() / 2);
|
||||||
|
return HexToBinary(s, (unsigned char *) sOut.data());
|
||||||
|
}
|
||||||
|
|
||||||
float HHMMSSToSeconds( const RString &sHHMMSS )
|
float HHMMSSToSeconds( const RString &sHHMMSS )
|
||||||
{
|
{
|
||||||
vector<RString> arrayBits;
|
vector<RString> arrayBits;
|
||||||
|
|||||||
@@ -337,6 +337,7 @@ bool IsHexVal( const RString &s );
|
|||||||
RString BinaryToHex( const void *pData_, int iNumBytes );
|
RString BinaryToHex( const void *pData_, int iNumBytes );
|
||||||
RString BinaryToHex( const RString &sString );
|
RString BinaryToHex( const RString &sString );
|
||||||
bool HexToBinary( const RString &s, unsigned char *stringOut );
|
bool HexToBinary( const RString &s, unsigned char *stringOut );
|
||||||
|
bool HexToBinary( const RString &s, RString &sOut );
|
||||||
float HHMMSSToSeconds( const RString &sHMS );
|
float HHMMSSToSeconds( const RString &sHMS );
|
||||||
RString SecondsToHHMMSS( float fSecs );
|
RString SecondsToHHMMSS( float fSecs );
|
||||||
RString SecondsToMSSMsMs( float fSecs );
|
RString SecondsToMSSMsMs( float fSecs );
|
||||||
|
|||||||
Reference in New Issue
Block a user