Examples of writeInt()


Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.writeInt()

    if (remoteCreationAllowed) {
      OStorageRemote storage = (OStorageRemote) ODatabaseRecordThreadLocal.INSTANCE.get().getStorage().getUnderlying();

      try {
        OChannelBinaryAsynchClient client = storage.beginRequest(OChannelBinaryProtocol.REQUEST_CREATE_SBTREE_BONSAI);
        client.writeInt(clusterId);
        storage.endRequest(client);

        storage.beginResponse(client);
        OBonsaiCollectionPointer pointer = networkSerializer.readCollectionPointer(client);
        storage.endResponse(client);
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryClient.writeInt()

        try {
          network = beginRequest(OChannelBinaryProtocol.REQUEST_RECORD_UPDATE);

          network.writeRID(iRid);
          network.writeBytes(iContent);
          network.writeInt(iVersion);
          network.writeByte(iRecordType);

        } finally {
          endRequest(network);
        }
View Full Code Here

Examples of com.peterhi.obsolete.Stream.writeInt()

    try {
      Stream stream = new Stream();
      stream.writeBit(1);
     
      for (NumWithInfo nwi : genNumWithInfos(Integer.SIZE)) {
        stream.writeInt(nwi.getNumber().intValue(), nwi.getBits());
      }
     
      stream.writeBit(1);
     
      stream.readBit();
View Full Code Here

Examples of com.sshtools.j2ssh.io.ByteArrayWriter.writeInt()

     */
    public byte[] getChannelOpenData() {
        try {
            ByteArrayWriter baw = new ByteArrayWriter();
            baw.writeString(hostToConnectOrBind);
            baw.writeInt(portToConnectOrBind);
            baw.writeString(originatingHost);
            baw.writeInt(originatingPort);

            return baw.toByteArray();
        } catch (IOException ioe) {
View Full Code Here

Examples of de.hpi.eworld.visualizer.simulation.traci.common.TraciOutputStream.writeInt()

    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    TraciOutputStream dataOutputStream = new TraciOutputStream(outputStream);

    dataOutputStream.writeByte(flag);
    dataOutputStream.writeByte(domain);
    dataOutputStream.writeInt(domainID);
    dataOutputStream.writeByte(variable);
    dataOutputStream.writeByte(valueDataType);
    dataOutputStream.writeTraciObject(valueDataType, value);
    dataOutputStream.close();
   
View Full Code Here

Examples of edu.stanford.nlp.io.OutDataStreamFile.writeInt()

  /** Currently unused */
  @SuppressWarnings({"UnusedDeclaration","unused"})
  private void save(String filename) {
    try {
      OutDataStreamFile rF = new OutDataStreamFile(filename);
      rF.writeInt(xSize);
      rF.writeInt(ySize);
      rF.writeInt(vArray.length);
      for (int i = 0; i < xSize; i++) {
        rF.writeInt(px[i]);
      }
View Full Code Here

Examples of eu.stratosphere.runtime.io.serialization.DataOutputSerializer.writeInt()

    try {
      // create the serialized event list
      DataOutputSerializer serializer = events.size() == 0
        ? new DataOutputSerializer(4)
        : new DataOutputSerializer(events.size() * 32);
      serializer.writeInt(events.size());

      for (AbstractEvent evt : events) {
        serializer.writeUTF(evt.getClass().getName());
        evt.write(serializer);
      }
View Full Code Here

Examples of fr.dyade.aaa.jndi2.msg.IOControl.writeInt()

              case HARequestManager.NOT_IDEMPOTENT:
                GetRequestIdNot gri =
                  new GetRequestIdNot();
                gri.invoke(tcpServer.getServerId());
                int newRid = gri.getId();
                ioCtrl.writeInt(newRid);
                Channel.sendTo(
                               tcpServer.getServerId(),
                               new TcpRequestNot(new HARequestContext(
                                                                      ioCtrl, newRid)));
                break;
View Full Code Here

Examples of htsjdk.tribble.util.LittleEndianOutputStream.writeInt()

            // Track line
            peakWriter.writeString("track name=" + factor + " sample=" + factor + " viewLimits=0:100 useScore=1 color=" + c);

            // Time values
            int nTimePoints = times.size();
            peakWriter.writeInt(nTimePoints);
            for (int i = 0; i < times.size(); i++) {
                peakWriter.writeInt(times.get(i));
            }

            // Path to associated signal ("tdf") files
View Full Code Here

Examples of info.ata4.io.DataOutputWriter.writeInt()

        File dbFile = new File(FILENAME);
        try (BufferedOutputStream bos = new BufferedOutputStream(FileUtils.openOutputStream(dbFile))) {
            DataOutputWriter out = DataOutputWriter.newWriter(bos);
           
            // write header
            out.writeInt(VERSION);

            // write field node table
            Set<TypeField> fieldNodes = new HashSet<>(ftm.values());
            Map<TypeField, Integer> fieldNodeMap = new HashMap<>();
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.