piranha
0.10
|
Specialisation of piranha::msgpack_pack() for piranha::mp_integer. More...
#include <piranha/mp_integer.hpp>
Public Member Functions | |
void | operator() (msgpack::packer< Stream > &p, const mp_integer< SSize > &n, msgpack_format f) const |
Call operator. More... | |
Specialisation of piranha::msgpack_pack() for piranha::mp_integer.
Stream
satisfies piranha::is_msgpack_stream,std::string
and all the integral types used in the representation of a piranha::mp_integer support piranha::has_msgpack_pack,std::uint32_t
. Definition at line 822 of file mp_integer.hpp.
|
inline |
Call operator.
If the serialization format f
is msgpack_format::portable, then a decimal string representation of the integer is packed. Otherwise, an array of 3 elements is packed: the first element is a boolean representing whether the integer is stored in static storage or not, the second element is a boolean representing the sign of the integer (true
for positive or zero, false
for negative) and the last element is an array of limbs.
p | target msgpack::packer . |
n | the input piranha::mp_integer. |
f | the desired piranha::msgpack_format. |
std::overflow_error | if the number of limbs is larger than an implementation-defined value. |
unspecified | any exception thrown by:
|
Definition at line 842 of file mp_integer.hpp.