diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-10-06 20:19:40 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-10-06 20:19:40 +0200 |
commit | 98c5cb7a99222b3dc2d78468bd953a4a4a4142d7 (patch) | |
tree | 79a0ea6005d3034902ef982a2d4f23b5f37f3182 /bigint.h | |
parent | 8e7f8300f82f9d93f94813cd717bf2943e5ad07a (diff) |
(de)serialise -> (de)serialiseMantissa
Diffstat (limited to 'bigint.h')
-rw-r--r-- | bigint.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ #pragma once #include <iostream> +#include <string> #include <vector> #include <utility> #include <cstdint> @@ -86,8 +87,8 @@ public: bool even() const; bool odd() const; - std::vector<char> serialise() const; - void deserialise(const std::vector<char>&); + std::string serialiseMantissa() const; //stores everything but the sign + void deserialiseMantissa(const std::string&); //restores non-negative number std::vector<bool> bits() const; friend std::istream& operator>>(std::istream&,Bigint&); |