Ignore:
Timestamp:
May 20, 2010, 12:35:16 PM (12 years ago)
Author:
Sven Rech
Message:

replaced all BigInteger stuff with the new BigInteger class from .net 4.0

But there are still problems with some plugins (Keysearcher, BigInteger Operations...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PeerToPeerJobs/JobResult.cs

    r1137 r1448  
    2121using System.Reflection;
    2222using Cryptool.PluginBase.Miscellaneous;
     23using System.Numerics;
    2324
    2425namespace Cryptool.Plugins.PeerToPeer.Jobs
     
    103104                byte[] jobIdByte = new byte[jobIdLen];
    104105                memStream.Read(jobIdByte, 0, jobIdByte.Length);
    105                 temp_jobId = new BigInteger(jobIdByte, jobIdByte.Length);
     106                temp_jobId = new BigInteger(jobIdByte);
    106107
    107108                /* Deserialize Job result data */
     
    219220            {
    220221                /* Serialize jobId */
    221                 byte[] jobIdByte = this.JobId.getBytes();
     222                byte[] jobIdByte = this.JobId.ToByteArray();
    222223                byte[] jobIdLen = BitConverter.GetBytes(jobIdByte.Length);
    223224                memStream.Write(jobIdLen, 0, jobIdLen.Length);
Note: See TracChangeset for help on using the changeset viewer.