Binary
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gda_binary_get_type ()" ) ]
[ Compact ]
public class Binary
Content:
Creation methods:
Methods:
- public Binary copy ()
Creates a new Binary structure from an
existing one.
- public void free ()
Deallocates all memory associated to the given
Binary.
- public void* get_data ()
- public long get_size ()
- public void reset_data ()
Frees data referenced by Binary
- public void set_data (uint8[] val)
Set binary data to a Binary, holding a copy
of the data.
- public void take_data (uint8[] val)
Set binary data to a Binary, directly
holding val (no copy made).
- public string to_string (uint maxlen)
Converts all the non printable characters of bin->data into the
"\xyz" representation where "xyz" is the octal representation of the byte, and the '\' (backslash) character is converted to "\\".