[2901] in java-interest

home help back first fref pref prev next nref lref last post

Re: Storage

daemon@ATHENA.MIT.EDU (Thomas Ball)
Thu Oct 19 19:13:20 1995

Date: Thu, 19 Oct 1995 14:06:08 -0700
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: mash@interport.net
Cc: java-interest@java.Eng.Sun.COM

Don't take anyone's word for it, check it out yourself:  compile the 
class, and run javah on that class to get a C header file.

Tom Ball
Java Products Group

>  I have a question concerning how Java deals with byte-aligned data.
>  If allocate an array of 1000 of the following object...
>  
>  	public class MidiMessage {
>  		public byte status;
>  		public byte data1;
>  		public byte data2;
>  	}
>  
>  ...will I be allocating 3000, 4000, or (God forbid) 12000 bytes of machine
>  memory?  Am I better off packing the bytes myself into an int?  Any guidance
>  would be appreciated.  Thanks!
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post