thanks do you know how to transform int to byte and byte to int. -----Message d'origine----- De : Auguste Genovesio <[EMAIL PROTECTED]> Ŕ : [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date : jeudi 11 septembre 2003 12:24 Objet : Re: [JAVA3D] Working whit byte problem
>Hi, > >The answer to your problem is probably the native static method >System.arraycopy() > > > > >hterrolle wrote: > >> Hi, >> >> I know it is not the best place to ask this. But i do not know any >> other were people answer. >> I got a problem working with byte type in JAVA. i am use to C. >> >> So i like to crete a struc >> byte toto >> byte[] size = new byte[10]; >> byte[] data = null; >> and i would like to copy this structure into another byte[]. but i >> find out that we cannot concatenate byte. >> and i did not find any method that allow me to copy into bytte[]. I do >> not want to use String to byte because of the problem of decode and >> coding. i findout that there is some trouble with it (back slash into >> blank). >> >> Does some one could tell me how to do this: >> >> copy the size into the byte[] then adding the data to the >> same byte[]. >> how to extract the 10 first byte from the byte[] >> >> i really do not know how to solve this problem in JAVA. >> >> One small example would be so nice >> >> Thanks >> Herve >> =========================================================================== >> To unsubscribe, send email to [EMAIL PROTECTED] and include in the >> body of the message "signoff JAVA3D-INTEREST". For general help, send >> email to [EMAIL PROTECTED] and include in the body of the message >> "help". > > > >-- >A. Genovesio >Quantitative Image Analysis Group >Institut Pasteur >25, rue du Docteur Roux >75724 Paris Cedex 15 > >=========================================================================== >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff JAVA3D-INTEREST". For general help, send email to >[EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".