HexToBinary for RString -> RString

This commit is contained in:
Glenn Maynard
2009-09-21 02:55:46 +00:00
parent 76f0af145b
commit c2f211e696
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -178,6 +178,12 @@ bool HexToBinary( const RString &s, unsigned char *stringOut )
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 )
{
vector<RString> arrayBits;
+1
View File
@@ -337,6 +337,7 @@ bool IsHexVal( const RString &s );
RString BinaryToHex( const void *pData_, int iNumBytes );
RString BinaryToHex( const RString &sString );
bool HexToBinary( const RString &s, unsigned char *stringOut );
bool HexToBinary( const RString &s, RString &sOut );
float HHMMSSToSeconds( const RString &sHMS );
RString SecondsToHHMMSS( float fSecs );
RString SecondsToMSSMsMs( float fSecs );