[Mono-list] Unboxing values from embedded mono

Sam Clegg sam@superduper.net
Mon, 4 Aug 2003 18:45:43 +0100


--jCrbxBqMcLqd4mOl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 04, 2003 at 12:45:50PM +0200, Paolo Molaro wrote:
> We added it a while back: use mono_object_unbox() to get a pointer
> to the data:
>=20
> 	gint32 *int32p =3D mono_object_unbox (obj);
> 	gint32 value =3D *int32p;

Should this maybe be a macro?  Its a one line function right now
and I guess it gets called a lot.
--=20
sam clegg
:: sam@superduper.net :: http://superduper.net/ :: PGP : D91EE369=20
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $

--jCrbxBqMcLqd4mOl
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/LpvHLOvxONke42kRAvwBAJ9gt/YE2q9sa7Hdgy2qIunXQ/qytQCdH7QG
iEVu6z044F4X/2KExmum7Bc=
=feFZ
-----END PGP SIGNATURE-----

--jCrbxBqMcLqd4mOl--