Esempio n. 1
0
 /// <summary>
 /// Checking the file for the correct format.
 /// </summary>
 /// <param name="dataformatid"></param>
 /// <param name="dataformatversion"></param>
 /// <returns>true if the file format version is correct.</returns>
 //CLOVER:OFF
 private bool Authenticate(byte[] dataformatid,
                           byte[] dataformatversion)
 {
     return(ArrayEqualityComparer <byte> .OneDimensional.Equals(
                ICUBinary.GetVersionByteArrayFromCompactInt32(DATA_FORMAT_ID_),
                dataformatid) &&
            IsDataVersionAcceptable(dataformatversion));
 }
Esempio n. 2
0
 public byte[] GetUnicodeVersion()
 {
     return(ICUBinary.GetVersionByteArrayFromCompactInt32(unicodeVersion));
 }