I guess you mean 

return MCDataCreateWithBytes(MCStringGetNativeCharPtr(*t_string), MCStringGetLength(*t_string), r_data);

right?