with fieldname or the existing field did not contain a GstFraction, this function returns false.
Structure.getFraction
bool getFraction(string fieldname, out int valueNumerator, out int valueDenominator)Sets the integers pointed to by value_numerator and value_denominator corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type.
Parameters
fieldname | the name of a field |
valueNumerator | a pointer to an int to set |
valueDenominator | a pointer to an int to set |
Returns
true if the values could be set correctly. If there was no field