From: Tanaka Akira Date: 2012-02-23T12:07:24+09:00 Subject: [ruby-core:42827] Re: [ruby-trunk - Feature #6065] Allow Bignum marshalling/unmarshalling from C API 2012/2/23 Martin Bosslet : >> > 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