Ejemplo n.º 1
0
 static extern short g_io_channel_set_flags(IntPtr channel, IOFlags flags, IntPtr error);
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 /// <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));
 }
Ejemplo n.º 4
0
 static extern short g_io_channel_set_flags(IntPtr channel, IOFlags flags, IntPtr error);