classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: Implementing Little Endian and Big Endian encoding


From: Michael Koch
Subject: Re: [cp-patches] FYI: Implementing Little Endian and Big Endian encodings.
Date: Tue, 31 May 2005 09:09:44 +0200
User-agent: mutt-ng 1.5.9-r292i (Debian)

On Tue, May 31, 2005 at 08:38:38AM +0200, Meskauskas Audrius wrote:
> Following the OMG specification, CORBA must support
> both Big and Little Endian encodings (I did not find any notes about
> this in Java API - proably silence is the sign of agreement). The
> CORBA messages contain the flags, indicating, which encoding
> is currently used.
> 
> Great thanks to Warren Levy, Aaron M. Renn and Tom Tromey,
> authors of our DataInput/Output streams. Reusing the
> code from there saved me a lot of work.
> 
> I have got to pack the patch as it is larger than the limit of the list.
> 
> 2005-05-31  Audrius Meskauskas  <address@hidden>
> 
> * gnu/CORBA/CDR/BigEndianInputStream.java,
>  gnu/CORBA/CDR/BigEndianOutputStream.java,
>  gnu/CORBA/CDR/LittleEndianInputStream.java,
>  gnu/CORBA/CDR/LittleEndianOutputStream.java,
>  gnu/CORBA/CDR/abstractDataInputStream.java,
>  gnu/CORBA/CDR/abstractDataOutputStream.java: New streams.
> * gnu/CORBA/IOR.java: Implemented parsing of the Little Endian
> encoded IOR references. * gnu/CORBA/Functional_ORB.java, 
> gnu/CORBA/binaryReply.java,
> gnu/CORBA/gnuRequest.java,
> gnu/CORBA/CDR/cdrInput.java,
> gnu/CORBA/CDR/cdrOutput.java,
> gnu/CORBA/CDR/encapsulatedOutput.java,
> gnu/CORBA/GIOP/MessageHeader.java: Implemented support for
> both Big and Little Endian.

java.nio gives handling of little-, big- and mixed-endianess for free.
Perhaps you wanna look into using this. This will probably increase performance
of the CORBA code too.


Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]