diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-01-21 20:07:50 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-01-21 20:07:50 +0300 |
| commit | 1b42f5251fb126496584e2fc61fad12bca7f7152 (patch) | |
| tree | 60949a74d7f8ca717ea8767de7651e2e38b6937d /py/mpz.h | |
| parent | 5298472fee1a83878e4670c1f8c885aefc087765 (diff) | |
py/mpz: Implement mpz_set_from_bytes() as a foundation for int.from_bytes().
Diffstat (limited to 'py/mpz.h')
| -rw-r--r-- | py/mpz.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -109,6 +109,7 @@ void mpz_set_from_ll(mpz_t *z, long long i, bool is_signed); void mpz_set_from_float(mpz_t *z, mp_float_t src); #endif mp_uint_t mpz_set_from_str(mpz_t *z, const char *str, mp_uint_t len, bool neg, mp_uint_t base); +void mpz_set_from_bytes(mpz_t *z, bool big_endian, mp_uint_t len, const byte *buf); bool mpz_is_zero(const mpz_t *z); int mpz_cmp(const mpz_t *lhs, const mpz_t *rhs); |
