2012/2/23 Martin Bosslet <Martin.Bosslet / googlemail.com>:

>>  > Currently, there's no public C API to create a Bignum.
>>  > There is rb_big_pack and rb_big_unpack that will do the
>>  > job, but they are not portable.
>>
>>  How are they not portable?

> 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.

I think your proposal also rely on machine endianness because
it use "long" type.

I guess bytes in long type (4 bytes or 8 bytes in usual) is
native endian.  Am I wrong?
-- 
Tanaka Akira