[ CCode ( array_length_pos = 0.1 , array_length_type = "guint32" ) ]
public unowned char[] get_data ()
Gets the parasite's data.
It may not necessarily be text, nor is it guaranteed to be null-terminated. It is your responsibility
to know how to deal with this data. Even when you expect a nul-terminated string, it is advised not to assume the returned data to be, as
parasites can be edited by third party scripts. You may end up reading out-of-bounds data. So you should only ignore
return.length when you all you care about is checking if the parasite has contents.
| this |
a Parasite |
| num_bytes |
size of the returned data. |
|
parasite's data. |