Does field have data

saf_data_has_been_written_to_field is a function defined in field.c.

Synopsis:

int saf_data_has_been_written_to_field(SAF_ParMode pmode, SAF_Field *field, hbool_t *Presult)

Formal Arguments:

  • pmode: The parallel mode.
  • field: The field handle.
  • Presult: [OUT] A pointer to caller supplied memory which is to receive the answer to the question. A value of true is saved at this location if the field has had data written to it, false if not.

Description: This function is used to check if a given field has a valid blob id (which it would if it has had data written to it and doesn’t if it has not).

Preconditions:

  • pmode must be valid. (low-cost)
  • field must be a valid field handle for all participating processes. (low-cost)

Return Value: The constant SAF__SUCCESS is returned when this function is successful. Otherwise this function either returns an error number or throws an exception, depending on the value of the library’s error handling property.

See Also:

  • Fields: Introduction for current chapter