From 0bea5c6d944beaa8fc880f646be207b03d1486fd Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 12 Aug 2013 00:59:14 +0200 Subject: Normalizing the neg syntax, and adding the import / export calls. --- includes/BigInt.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes/BigInt.h') 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; -- cgit v1.2.3