/// <summary> /// Uncompress a block of data found in an EncyclopeDIA library. /// </summary> private byte[] UncompressEncyclopeDiaData(byte[] compressedBytes, int uncompressedSize) { // Pass -1 in for uncompressed length since EnclyclopeDIA always compresses // the bytes even if the uncompressed size is equal to the compresssed size. byte[] uncompressedBytes = UtilDB.Uncompress(compressedBytes, -1, false); if (uncompressedBytes.Length != uncompressedSize) { throw new IOException(Resources.UtilDB_Uncompress_Failure_uncompressing_data); } return(uncompressedBytes); }