Hi all,
I need to get bytes representing the fvalue_t data. So, I need to be
able to know if the field value of fvalue_t is representing a pointer
or the real data
Examples :
if the type is FT_ETHER, the field value is representing a pointer
to a data (more exactly a GByteArray)
if the type is FT_UINT8, the field value is directly representing a uint8
Is this should work every times? (It works for those two examples)
if (cfile.finfo_selected->value.ftype->get_value) {
ptr = cfile.finfo_selected->value.ftype->get_value(&cfile.finfo_selected->value);
}
else {
ptr = &cfile.finfo_selected->value.value;
}
Is there a better way to do it?
Thanks :-)