Summary

Class:ICSharpCode.SharpZipLib.GZip.GZipConstants
Assembly:ICSharpCode.SharpZipLib
File(s):C:\Users\Neil\Documents\Visual Studio 2015\Projects\icsharpcode\SZL_master\ICSharpCode.SharpZipLib\GZip\GZipConstants.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:58
Line coverage:0%

Metrics

MethodCyclomatic ComplexitySequence CoverageBranch Coverage
.ctor()100

File(s)

C:\Users\Neil\Documents\Visual Studio 2015\Projects\icsharpcode\SZL_master\ICSharpCode.SharpZipLib\GZip\GZipConstants.cs

#LineLine coverage
 1namespace ICSharpCode.SharpZipLib.GZip
 2{
 3  /// <summary>
 4  /// This class contains constants used for gzip.
 5  /// </summary>
 6  sealed public class GZipConstants
 7  {
 8    /// <summary>
 9    /// Magic number found at start of GZIP header
 10    /// </summary>
 11    public const int GZIP_MAGIC = 0x1F8B;
 12
 13    /*  The flag byte is divided into individual bits as follows:
 14
 15      bit 0   FTEXT
 16      bit 1   FHCRC
 17      bit 2   FEXTRA
 18      bit 3   FNAME
 19      bit 4   FCOMMENT
 20      bit 5   reserved
 21      bit 6   reserved
 22      bit 7   reserved
 23     */
 24
 25    /// <summary>
 26    /// Flag bit mask for text
 27    /// </summary>
 28    public const int FTEXT = 0x1;
 29
 30    /// <summary>
 31    /// Flag bitmask for Crc
 32    /// </summary>
 33    public const int FHCRC = 0x2;
 34
 35    /// <summary>
 36    /// Flag bit mask for extra
 37    /// </summary>
 38    public const int FEXTRA = 0x4;
 39
 40    /// <summary>
 41    /// flag bitmask for name
 42    /// </summary>
 43    public const int FNAME = 0x8;
 44
 45    /// <summary>
 46    /// flag bit mask indicating comment is present
 47    /// </summary>
 48    public const int FCOMMENT = 0x10;
 49
 50    /// <summary>
 51    /// Initialise default instance.
 52    /// </summary>
 53    /// <remarks>Constructor is private to prevent instances being created.</remarks>
 054    GZipConstants()
 55    {
 056    }
 57  }
 58}