2007-01-10 17:11:43 +01:00
|
|
|
// Copyright Daniel Wallin 2006. Use, modification and distribution is
|
|
|
|
// subject to the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
#include <libtorrent/peer_id.hpp>
|
|
|
|
#include <boost/python.hpp>
|
|
|
|
|
|
|
|
void bind_big_number()
|
|
|
|
{
|
|
|
|
using namespace boost::python;
|
|
|
|
using namespace libtorrent;
|
|
|
|
|
|
|
|
class_<big_number>("big_number")
|
|
|
|
.def(self == self)
|
|
|
|
.def(self != self)
|
|
|
|
.def(self < self)
|
|
|
|
.def(self_ns::str(self))
|
2010-02-01 00:16:56 +01:00
|
|
|
.def(init<char const*>())
|
2013-02-07 03:27:39 +01:00
|
|
|
.def("clear", &big_number::clear)
|
|
|
|
.def("is_all_zeros", &big_number::is_all_zeros)
|
|
|
|
.def("to_string", &big_number::to_string)
|
|
|
|
// .def("__getitem__", &big_number::opreator[])
|
2007-01-10 17:11:43 +01:00
|
|
|
;
|
|
|
|
}
|
|
|
|
|