示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeaderSignature"/> class.
 /// </summary>
 /// <param name="hexStringSignature">The hex string signature.</param>
 /// <param name="signatureName">Name of the signature.</param>
 /// <param name="fileExtensions">The file extensions.</param>
 /// <param name="prohibitionMode">The prohibition mode.</param>
 /// <param name="signatureMode">The signature mode.</param>
 public HeaderSignature(
     string hexStringSignature,
     string signatureName,
     string[] fileExtensions,
     ProhibitionMode prohibitionMode,
     SignatureMode signatureMode)
 {
     _checker = new SimplePatternSignatureChecker(0, 0,
                                                  hexStringSignature,
                                                  signatureMode);
     _signatureName   = signatureName;
     _fileExtensions  = fileExtensions;
     _prohibitionMode = prohibitionMode;
     _byteoffset      = 0;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeaderSignature"/> class.
 /// </summary>
 /// <param name="hexStringSignature">The hex string signature.</param>
 /// <param name="signatureName">Name of the signature.</param>
 /// <param name="fileExtensions">The file extensions.</param>
 /// <param name="prohibitionMode">The prohibition mode.</param>
 /// <param name="signatureMode">The signature mode.</param>
 public HeaderSignature(
     int byteoffset,
     int firstnumberofbytestoread,
     string hexStringSignature,
     string signatureName,
     string[] fileExtensions,
     ProhibitionMode prohibitionMode,
     SignatureMode signatureMode)
 {
     _checker = new SimplePatternSignatureChecker(
         byteoffset,
         firstnumberofbytestoread,
         hexStringSignature,
         signatureMode);
     _signatureName   = signatureName;
     _fileExtensions  = fileExtensions;
     _prohibitionMode = prohibitionMode;
     _byteoffset      = byteoffset;
 }