static extern short g_io_channel_set_flags(IntPtr channel, IOFlags flags, IntPtr error);
/// <summary> /// Determines if the input type is flagged (as the there are multiple flags) /// </summary> /// <param name="eFlag">Flag to check for</param> /// <returns>true if the flag bit is 1, false otherwise</returns> public bool IsFlaggedAs(IOFlags eFlag) { return(IsFlaggedAs(eFlag, Flags)); }
/// <summary> /// Determines if the input type is flagged (as the there are multiple flags) /// </summary> /// <param name="eFlag">Flag to check for</param> /// <param name="byFlags">byte to check for the flag within</param> /// <returns>true if the flag bit is 1, false otherwise</returns> private static bool IsFlaggedAs(IOFlags eFlag, byte byFlags) { return((byte)eFlag == (byFlags & (byte)eFlag)); }
static extern short g_io_channel_set_flags(IntPtr channel, IOFlags flags, IntPtr error);