library/src/utility/BP-StringUtilities.cc
// destroys the data including structure (call this every time you need
// to destroy the result from the above decode function)
destroys the data including structure (call this every time you need
to destroy the result from the above decode function)
destroys the data including structure ( call this every time you need to destroy the result from the above decode function )
BP_ERROR_T BP_Base64DestroyDecodedData(P_BP_BASE64_DECODED_DATA data)
{
	if(data)
	{
		if(data->buff)
			bpfree(data->buff);
		bpfree(data);
		return ERR_SUCCESS;
	}
	return ERR_FAILURE;
}
BP_ERROR_T BP_Base64DestroyDecodedData ( P_BP_BASE64_DECODED_DATA data ) { if ( data ) { if ( data -> buff ) bpfree ( data -> buff ) ; bpfree ( data ) ; return ERR_SUCCESS ; } return ERR_FAILURE ; }
destroys the data including structure (call this every time you need
to destroy the result from the above decode function)
destroys the data including structure ( call this every time you need to destroy the result from the above decode function )
// destroy buffer if necessary // now free structure itself // return indicating success // return indicating failure in the case we have no data