Diffusion C API  6.7.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
diffusion-double.h File Reference

Functions

bool read_diffusion_double_value (const DIFFUSION_VALUE_T *const value, double *double_value, DIFFUSION_API_ERROR *error)
 Read a double from the diffusion value. More...
 
bool write_diffusion_double_value (double value, const BUF_T *buf)
 Write a double value into a BUF_T for an update. More...
 

Function Documentation

bool read_diffusion_double_value ( const DIFFUSION_VALUE_T *const  value,
double *  double_value,
DIFFUSION_API_ERROR error 
)

Read a double from the diffusion value.

Parameters
valuethe diffusion value.
double_valuepointer to set the double value to.
errorpopulated if an error occurs. Can be NULL.
Returns
true if the value was successfully set in the provided double_value pointer. False otherwise.
bool write_diffusion_double_value ( double  value,
const BUF_T buf 
)

Write a double value into a BUF_T for an update.

Parameters
valuevalue to be written into the BUF_T
bufBUF_T to write the double value into
Returns
true if the value was successfully written into the BUF_T. False will be returned if buf is NULL.