Helper for P/Invoke error handling. More...
Static Public Member Functions | |
static TOut | Call< TOut > (INativeHandle obj, NativeOutFunc< TOut > fn) |
Call a native function fn without one returned value. More... | |
static void | Call (INativeHandle obj, Func< IntPtr, int > fn) |
Call a native function fn without any returned value. More... | |
static IPAddress | ToIPAddress (this int ip) |
Creates an IPAddress from the given int ip . More... | |
static int | ToInt32 (this IPAddress address) |
Converts the given address into an int . More... | |
Helper for P/Invoke error handling.
|
static |
Call a native function fn without any returned value.
obj | Object to call fn on. |
fn | Function to call. |
|
static |
Call a native function fn without one returned value.
obj | Object to call fn on. |
fn | Function to call. |
|
static |
Converts the given address into an int
.
address | IP version 4 address to convert. |
int
representation of address .
|
static |
Creates an IPAddress from the given int
ip .
ip | IPv4 address as an int . |