public static void CopyFlock(IntPtr source, out Flock dest) { if (!NativeConvert.TryCopy(source, out dest)) { throw new ArgumentOutOfRangeException( "Unable to copy `struct flock' into Mono.Unix.Native.Flock."); } }
public static void CopyFlock(ref Flock source, IntPtr dest) { if (!NativeConvert.TryCopy(ref source, dest)) { throw new ArgumentOutOfRangeException( "Unable to copy Mono.Unix.Native.Flock into `struct flock'."); } }
public static void CopyStatvfs(ref Statvfs source, IntPtr dest) { if (!NativeConvert.TryCopy(ref source, dest)) { throw new ArgumentOutOfRangeException( "Unable to copy Mono.Unix.Native.Statvfs into `struct statvfs'."); } }
public static void CopyStatvfs(IntPtr source, out Statvfs dest) { if (!NativeConvert.TryCopy(source, out dest)) { throw new ArgumentOutOfRangeException( "Unable to copy `struct statvfs' into Mono.Unix.Native.Statvfs."); } }
public static void CopyUtimbuf(ref Utimbuf source, IntPtr dest) { if (!NativeConvert.TryCopy(ref source, dest)) { throw new ArgumentOutOfRangeException( "Unable to copy Mono.Unix.Native.Utimbuf into `struct utimbuf'."); } }
public static void CopyUtimbuf(IntPtr source, out Utimbuf dest) { if (!NativeConvert.TryCopy(source, out dest)) { throw new ArgumentOutOfRangeException( "Unable to copy `struct utimbuf' into Mono.Unix.Native.Utimbuf."); } }
static void StatCallback(ref eio_req req) { Stat result; int errno = req.errorno; if (!NativeConvert.TryCopy(req.ptr2, out result)) { Console.Error.WriteLine("Error converting stat structure."); errno = 0xFF; } var handle = GCHandle.FromIntPtr(req.data); ((Action <int, Stat, int>)handle.Target)(req.result.ToInt32(), result, errno); handle.Free(); }