Example #1
0
 /// <summary>
 /// Set flag state into Flags field
 /// </summary>
 private void SetFlag(GZipFlag mask, bool value)
 {
     if (value)
     {
         _flags |= (byte)mask;
     }
     else
     {
         _flags &= (byte)(0xFF ^ (byte)mask);
     }
 }
Example #2
0
 /// <summary>
 /// Get specific flag state from Flags field
 /// </summary>
 private bool GetFlag(GZipFlag mask)
 {
     return((_flags & (byte)mask) > 0);
 }