Examples of write_ulong()


Examples of org.apache.geronimo.corba.io.EncapsulationOutputStream.write_ulong()

                                case TCKind._tk_char:
                                    eout.write_char((char) 0);
                                    break;

                                case TCKind._tk_enum:
                                    eout.write_ulong(0);
                                    break;

                                default:
                                    throw new org.omg.CORBA.BAD_TYPECODE();
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationOutputStream.write_ulong()

                case TCKind._tk_enum:
                    map.put(tc, pos);
                    eout = out.__open_encapsulation();
                    eout.write_string(tc.id());
                    eout.write_string(tc.name());
                    eout.write_ulong(tc.member_count());
                    for (int i = 0; i < tc.member_count(); i++) {
                        eout.write_string(tc.member_name(i));
                    }
                    out.__close_encapsulation(eout);
                    break;
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationOutputStream.write_ulong()

                    eout.write_string(tc.id());
                    eout.write_string(tc.name());
                    eout.write_short(tc.type_modifier());
                    write(eout, base, map);
                    eout.write_ulong(tc.member_count());
                    for (int i = 0; i < tc.member_count(); i++) {
                        eout.write_string(tc.member_name(i));
                        write(eout, tc.member_type(i), map);
                        eout.write_short(tc.member_visibility(i));
                    }
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationOutputStream.write_ulong()

                case TCKind._tk_except:
                    map.put(tc, pos);
                    eout = out.__open_encapsulation();
                    eout.write_string(tc.id());
                    eout.write_string(tc.name());
                    eout.write_ulong(tc.member_count());
                    for (int i = 0; i < tc.member_count(); i++) {
                        eout.write_string(tc.member_name(i));
                        // recurse
                        write(eout, tc.member_type(i), map);
                    }
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationOutputStream.write_ulong()

                    TypeCodeImpl disc = (TypeCodeImpl) tc.discriminator_type();
                    write(eout, disc, map);

                    int index = tc.default_index();
                    eout.write_long(index);
                    eout.write_ulong(tc.member_count());

                    for (int i = 0; i < tc.member_count(); i++) {

                        if (i == index) {
                            switch (disc.kind().value()) {
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.OutputStream.write_ulong()

    }
   
    public void testReadULong() {
        Buffer buf = new Buffer();
        OutputStream oStream = new OutputStream(buf);
        oStream.write_ulong(100000);
       
        InputStream iStream = oStream.create_input_stream();
        CorbaObjectReader reader = new CorbaObjectReader(iStream);
       
        BigInteger ulongValue = reader.readULong();
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.OutputStream.write_ulong()

    }
   
    public void testReadULong() {
        Buffer buf = new Buffer();
        OutputStream oStream = new OutputStream(buf);
        oStream.write_ulong(100000);
       
        InputStream iStream = oStream.create_input_stream();
        CorbaObjectReader reader = new CorbaObjectReader(iStream);
       
        BigInteger ulongValue = reader.readULong();
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.write_ulong()

                        //"unwrite" the last ulong
                        ctx_out.reduceSize( 4 );

                        //write new length
                        ctx_out.write_ulong( difference );

                        //add "new" data (by just increasing the size
                        //of the stream and not actually writing
                        //anything).
                        ctx_out.increaseSize( difference );
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.write_ulong()

    private CDROutputStream createContextStream()
    {
        CDROutputStream out = new CDROutputStream( (org.omg.CORBA.ORB) null );

        //write the length of the service context array.
        out.write_ulong( contexts.size() );

        for( int i = 0; i < contexts.size(); i++ )
        {
            ServiceContextHelper.write( out,
                                        (ServiceContext) contexts.elementAt( i ));
View Full Code Here

Examples of org.jacorb.orb.CDROutputStream.write_ulong()

    private CDROutputStream createContextStream()
    {
        CDROutputStream out = new CDROutputStream( (org.omg.CORBA.ORB) null );

        //write the length of the service context array.
        out.write_ulong( contexts.size() );

        for( int i = 0; i < contexts.size(); i++ )
        {
            ServiceContextHelper.write( out,
                                        (ServiceContext) contexts.elementAt( i ));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.