diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-12 00:59:14 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-12 00:59:14 +0200 |
commit | 0bea5c6d944beaa8fc880f646be207b03d1486fd (patch) | |
tree | 6c831cfe98d6172f05f17543eb8f45fa7828b43a /includes | |
parent | f4568a9015f99c40e69c3ced829833155316cf04 (diff) |
Normalizing the neg syntax, and adding the import / export calls.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/BigInt.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/BigInt.h b/includes/BigInt.h index 55a5c75..a94396c 100644 --- a/includes/BigInt.h +++ b/includes/BigInt.h @@ -56,7 +56,8 @@ class BigInt { comp_t comp(const BigInt &) const throw (GeneralException); comp_t comp(unsigned int) const throw (GeneralException); - BigInt & neg() throw (GeneralException); + BigInt neg() const throw (GeneralException); + BigInt & do_neg() throw (GeneralException); BigInt sqrt() const throw (GeneralException); BigInt & do_sqrt() throw (GeneralException); @@ -93,6 +94,10 @@ class BigInt { bool isPrime() const throw (GeneralException); + size_t exportSize() const; + void exportBin(void *) const throw (GeneralException); + void importBin(const void *, size_t) throw (GeneralException); + String toString(int radix = 10) const; char * makeString(int radix = 10) const; |