public static Int32 FromConfstrName (ConfstrName value) { Int32 rval; if (FromConfstrName (value, out rval) == -1) ThrowArgumentException (value); return rval; }
public static Int32 FromConfstrName(ConfstrName value) { Int32 rval; if (FromConfstrName(value, out rval) == -1) { ThrowArgumentException(value); } return(rval); }
public static string GetConfigurationString(ConfstrName name) { ulong num = Syscall.confstr(name, null, (ulong)0); if (num == (long)-1) { UnixMarshal.ThrowExceptionForLastError(); } if (num == 0) { return(string.Empty); } StringBuilder stringBuilder = new StringBuilder((int)num + 1); num = Syscall.confstr(name, stringBuilder, num); if (num == (long)-1) { UnixMarshal.ThrowExceptionForLastError(); } return(stringBuilder.ToString()); }
public static bool TryFromConfstrName (ConfstrName value, out Int32 rval) { return FromConfstrName (value, out rval) == 0; }
private static extern int FromConfstrName (ConfstrName value, out Int32 rval);
public static bool TryToConfstrName (Int32 value, out ConfstrName rval) { return ToConfstrName (value, out rval) == 0; }
private static extern int ToConfstrName (Int32 value, out ConfstrName rval);
public static bool TryToConfstrName(Int32 value, out ConfstrName rval) { return(ToConfstrName(value, out rval) == 0); }
public static ulong confstr(ConfstrName name, [Out] StringBuilder buf, ulong len) { throw new System.NotImplementedException(); }
public static bool TryFromConfstrName(ConfstrName value, out Int32 rval) { return(FromConfstrName(value, out rval) == 0); }
private static extern int FromConfstrName(ConfstrName value, out Int32 rval);
private static int ToConfstrName (Int32 value, out ConfstrName rval) { throw new System.NotImplementedException(); }
private static int FromConfstrName (ConfstrName value, out Int32 rval) { throw new System.NotImplementedException(); }
public static ulong confstr (ConfstrName name, [Out] StringBuilder buf, ulong len) { throw new System.NotImplementedException(); }
private static int FromConfstrName(ConfstrName value, out Int32 rval) { throw new System.NotImplementedException(); }
private static extern int ToConfstrName(Int32 value, out ConfstrName rval);
private static int ToConfstrName(Int32 value, out ConfstrName rval) { throw new System.NotImplementedException(); }
public static extern ulong confstr (ConfstrName name, [Out] StringBuilder buf, ulong len);