@set
Description:
Copies src into each of the first count characters of the object pointed to by dest.
Example: Fill block of memory:
public static int main (string[] args) {
char[] data = new char[10];
Memory.set (data, '=', sizeof(char) * data.length);
// Output: ``==========``
foreach (char i in data) {
stdout.putc (i);
}
print ("\n");
return 0;
}
valac --pkg glib-2.0 GLib.Memory.set.vala
Parameters:
dest |
pointer to the object to fill |
src |
fill byte |
n |
number of bytes to fill |
Returns:
dest |
Namespace: GLib.Memory
Package: glib-2.0