private static StringToPtr ( string str ) : |
||
str | string | |
return |
public static IntPtr AddressToPtr(IPAddress address) { IntPtr straddr = Utility.StringToPtr(address.ToString()); IntPtr addrPtr = Stdlib.malloc(32); avahi_address_parse(straddr, Protocol.Unspecified, addrPtr); Utility.Free(straddr); return(addrPtr); }