/// <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); } }
/// <summary> /// Get specific flag state from Flags field /// </summary> private bool GetFlag(GZipFlag mask) { return((_flags & (byte)mask) > 0); }