[Mono-list] Unboxing values from embedded mono

Perry, James jamesp@eastcan.ca
Wed, 13 Aug 2003 10:22:16 -0300


This is a multi-part message in MIME format.

--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
	charset="iso-8859-1"

> We added it a while back: use mono_object_unbox() to get a pointer
> to the data:
> 
> 	gint32 *int32p = mono_object_unbox (obj);
> 	gint32 value = *int32p;
> 
> lupus

Thankee,

I've got another similar question, though. :)

I'd like to build a byte array, but I'm not sure what MonoClass object I
should be giving to mono_array_new. If I'm not mistaken
mono_defaults.byte_class is System.Byte but that's the boxed type; I'd like
send a byte[] rather than a System.Byte[] if possible.

Thanks!
James


--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
	name="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="InterScan_Disclaimer.txt"

*******************************************************************************************
This e-mail and any files transmitted with it are provided for convenience only
and is to be considered confidential and are intended solely for the use
of the individual to whom it is addressed.  If you have received this e-mail
in error please notify the sender immediately.

CBCL Limited assumes no responsibility for data supplied electronically by e-mail
and any unauthorized use or changes to such data is strictly prohibited.  CBCL
Limited maintains all rights and copyrights to e-mailed electronic files.

This message has been scanned for the presence of computer viruses, however
no warranty is given that this messge upon it's receipt is virus free and no liability
is accepted by the sender in this respect.


--------------InterScan_NT_MIME_Boundary--