Examples of writeInt()


Examples of org.jboss.soa.esb.message.body.content.BytesBody.writeInt()

    {
    }

    mapMessage.writeMode();

    mapMessage.writeInt(12345);
    mapMessage.writeUTFString("hello world");
    mapMessage.writeShort((short) 10);
    mapMessage.writeBoolean(true);

    mapMessage.flush();
View Full Code Here

Examples of org.jboss.test.messaging.jms.message.SimpleJMSStreamMessage.writeInt()

        m.writeBoolean(true);
        m.writeBytes("jboss".getBytes());
        m.writeChar('c');
        m.writeDouble(1.0D);
        m.writeFloat(2.0F);
        m.writeInt(3);
        m.writeLong(4L);
        m.writeObject("object");
        m.writeShort((short)5);
        m.writeString("stringvalue");
View Full Code Here

Examples of org.jgroups.util.ByteArrayDataOutputStream.writeInt()

        out=new ByteArrayDataOutputStream(1);
        out.writeShort(22);
        out.writeShort(23);

        out=new ByteArrayDataOutputStream(1);
        out.writeInt(23);
        out.writeInt(24);
    }

    public void testSkipBytes() {
        byte[] buf={'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
View Full Code Here

Examples of org.jnode.assembler.x86.X86Assembler.writeINT()

                }
                break;
            }
            case BREAKPOINT: {
                if (VmUtils.verifyAssertions()) VmUtils._assert(isstatic);
                os.writeINT(3);
                break;
            }
            case CURRENTPROCESSOR: {
                if (VmUtils.verifyAssertions()) VmUtils._assert(isstatic);
                final RefItem item = (RefItem) L1AHelper.requestWordRegister(ec, JvmType.REFERENCE, false);
View Full Code Here

Examples of org.lealone.store.Data.writeInt()

        long start = file.getFilePointer();
        ByteArrayOutputStream buffer = new ByteArrayOutputStream();
        int bufferLen = 0;
        for (Value[] row : rows) {
            buff.reset();
            buff.writeInt(0);
            for (int j = 0; j < columnCount; j++) {
                Value v = row[j];
                buff.checkCapacity(buff.getValueLen(v));
                buff.writeValue(v);
            }
View Full Code Here

Examples of org.lealone.value.Transfer.writeInt()

        for (int i = 0, count = 0; i < transferList.size(); i++) {
            try {
                Transfer transfer = transferList.get(i);
                if (batchCommands != null) {
                    session.traceOperation("COMMAND_EXECUTE_BATCH_UPDATE_STATEMENT", id);
                    transfer.writeInt(SessionRemote.COMMAND_EXECUTE_BATCH_UPDATE_STATEMENT);
                    int size = batchCommands.size();
                    result = new int[size];
                    transfer.writeInt(size);
                    for (int j = 0; j < size; j++)
                        transfer.writeString(batchCommands.get(j));
View Full Code Here

Examples of org.lilyproject.bytes.api.DataOutput.writeInt()

        double d = random.nextDouble();
        dataOutput.writeDouble(d);
        float f = random.nextFloat();
        dataOutput.writeFloat(f);
        int i = random.nextInt();
        dataOutput.writeInt(i);
        long l = random.nextLong();
        dataOutput.writeLong(l);
        short s = (short) 4;
        dataOutput.writeShort(s);
        String string = randomUnicodeString();
View Full Code Here

Examples of org.lilyproject.bytes.impl.DataOutputImpl.writeInt()

        double d = random.nextDouble();
        dataOutput.writeDouble(d);
        float f = random.nextFloat();
        dataOutput.writeFloat(f);
        int i = random.nextInt();
        dataOutput.writeInt(i);
        long l = random.nextLong();
        dataOutput.writeLong(l);
        short s = (short) 4;
        dataOutput.writeShort(s);
        String string = randomUnicodeString();
View Full Code Here

Examples of org.menacheri.jetclient.communication.NettyMessageBuffer.writeInt()

      operation = ZombieCommands.EAT_BRAINS.getCommand();
      break;
    }
   
    MessageBuffer<ChannelBuffer> messageBuffer = new NettyMessageBuffer();
    messageBuffer.writeInt(type);
    messageBuffer.writeInt(operation);
    Event event = Events.networkEvent(messageBuffer,DeliveryGuarantyOptions.FAST);
    session.onEvent(event);
  }
}
View Full Code Here

Examples of org.menacheri.jetserver.communication.NettyMessageBuffer.writeInt()

        networkEvent = Events.networkEvent(world.getAlive());
      }
      else
      {
        NettyMessageBuffer buffer = new NettyMessageBuffer();
        buffer.writeInt(world.getAlive());
        networkEvent = Events.networkEvent(buffer,DeliveryGuarantyOptions.FAST);
      }
      room.sendBroadcast(networkEvent);
    }
   
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.