library/src/blockclass/subclasses/BP_StringUtils.cc
// builds on the current string using a supplied buffer
builds on the current string using a supplied buffer
builds on the current string using a supplied buffer
bool BP_StringUtils::BuildMySQLHexFromBuff(char *buff, size_t buff_n)
{
	if(!buff)
		buff = "empty";
	if(!buff_n)
		buff_n = bpstrlen("empty");
	char *buff_mysql_s = (char *) BP_BufferToMySQLHexString(buff, buff_n);
	if(!buff_mysql_s)
		return false;
	this->BuildString((char *) buff_mysql_s);
	bpfree(buff_mysql_s);
	return true;
}
bool BP_StringUtils :: BuildMySQLHexFromBuff ( char * buff , size_t buff_n ) { if ( ! buff ) buff = " " ; if ( ! buff_n ) buff_n = bpstrlen ( " " ) ; char * buff_mysql_s = ( char * ) BP_BufferToMySQLHexString ( buff , buff_n ) ; if ( ! buff_mysql_s ) return false ; this -> BuildString ( ( char * ) buff_mysql_s ) ; bpfree ( buff_mysql_s ) ; return true ; }
builds on the current string using a supplied buffer
builds on the current string using a supplied buffer
// build the mysql hex string // check to see that we have created the string // build the string inwards // free the chunk // return indicating success