2012/2/23 Martin Bosslet <Martin.Bosslet / googlemail.com>:
> Akira Tanaka wrote:
>> 2012/2/23 Martin Bosslet <Martin.Bosslet / googlemail.com>:
>>
>> =A0> Currently, there's no public C API to create a Bignum.
>> =A0> There is rb_big_pack and rb_big_unpack that will do the
>> =A0> job, but they are not portable.
>>
>> =A0How are they not portable?
>> =A0--
>> =A0Tanaka Akira
>
> Sorry, "not portable" was probably the wrong wording. I meant
> I can't use them e.g. from Rubinius because they're not part
> of the public API and they rely on machine endianness.

String#to_s is current workaround.
ruby -ropenssl -e'p OpenSSL::BN.new((1<<64).to_s(16), 16)'

--=20
NARUSE, Yui =A0<naruse / airemix.jp>