Re: [Vala] using InetAddress
- From: Cyrille Colin <colin univ-metz fr>
- To: Luca Bruno <lethalman88 gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] using InetAddress
- Date: Thu, 11 Mar 2010 11:36:39 +0100
Le jeudi 11 mars 2010 à 11:13 +0100, Luca Bruno a écrit :
It must be uchar*, it's a bug in the bindings.
It seems to be a pointer in the main address bytes array :
This is the GLib code :
/**
* g_inet_address_to_bytes:
* @address: a #GInetAddress
*
* Gets the raw binary address data from @address.
*
* Returns: a pointer to an internal array of the bytes in @address,
* which should not be modified, stored, or freed. The size of this
* array can be gotten with g_inet_address_get_native_size().
*
* Since: 2.22
*/
const guint8 *
g_inet_address_to_bytes (GInetAddress *address)
{
g_return_val_if_fail (G_IS_INET_ADDRESS (address), NULL);
return (guint8 *)&address->priv->addr;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]