Examples of writeByte()


Examples of com.mobixess.jodb.core.io.IRandomAccessDataBuffer.writeByte()

//            _logger.info("Transaction: Object "+rootObject.getClass()+" "+rootObject+" header len ="+headerLen);
//        }
       
        int primaryMask = formPrimaryObjectMask(0, fieldsWithAbsoluteAddr.size()>0, fieldsWithRelativeAddr.size()>0, primitiveFields.size()>0, translated, tHandle, classDescr);;
       
        transactionFile.writeByte(primaryMask);
       
        int secondaryMask = formSecondaryObjectMask(0, tHandle);
       
        transactionFile.writeByte(secondaryMask);
       
View Full Code Here

Examples of com.mysql.jdbc.Buffer.writeByte()

    Buffer bresp = new Buffer(StringUtils.getBytes(this.password != null ? this.password : ""));

    bresp.setPosition(bresp.getBufLength());
    int oldBufLength = bresp.getBufLength();
   
    bresp.writeByte((byte)0);
   
    bresp.setBufLength(oldBufLength + 1);
    bresp.setPosition(0);

    toServer.add(bresp);
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.fs.OFile.writeByte()

      final OFile file = files[(int) pos[0]];
      long p = pos[1];

      file.writeShort(p, (short) iDataId);
      file.writeLong(p += OConstants.SIZE_SHORT, iDataPosition);
      file.writeByte(p += OConstants.SIZE_LONG, iRecordType);

    } finally {
      releaseExclusiveLock();
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.writeByte()

        try {
          ch.acquireExclusiveLock();

          try {
            ch.writeByte(OChannelBinaryProtocol.PUSH_DATA);
            ch.writeInt(Integer.MIN_VALUE);
            ch.writeByte(OChannelDistributedProtocol.PUSH_DISTRIBUTED_CONFIG);
            ch.writeBytes(clusterDbConfigurations.get(iDatabaseName).toStream());

          } catch (IOException e) {
View Full Code Here

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

        lastNetworkUsed = network;

        try {
          network.writeShort((short) iRid.clusterId);
          network.writeBytes(iContent);
          network.writeByte(iRecordType);
          network.writeByte((byte) iMode);

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

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

      try {
        network.writeString(iDatabaseName);
        network.writeString(iDatabaseUserName);
        network.writeString(iDatabaseUserPassword);
        network.writeString(iRemoteName);
        network.writeByte((byte) (iSynchronousMode ? 1 : 0));
      } finally {
        storage.endRequest(network);
      }

      storage.getResponse(network);
View Full Code Here

Examples of com.sshtools.j2ssh.util.SimpleASNWriter.writeByte()

            // Using a SimpleASNWriter
            ByteArrayOutputStream r = new ByteArrayOutputStream();
            ByteArrayOutputStream s = new ByteArrayOutputStream();
            SimpleASNWriter asn = new SimpleASNWriter();
            asn.writeByte(0x02);

            if (((signature[0] & 0x80) == 0x80) && (signature[0] != 0x00)) {
                r.write(0);
                r.write(signature, 0, 20);
            } else {
View Full Code Here

Examples of com.stuffwithstuff.magpie.util.FileWriter.writeByte()

  @Doc("Writes the given byte (value from 0 to 255 inclusive) to this File.")
  public static class WriteByte implements Intrinsic {
    public Obj invoke(Context context, Obj left, Obj right) {
      FileWriter writer = (FileWriter)left.getValue();
      try {
        writer.writeByte(right.asInt());
        return right;
      } catch (IOException e) {
        throw context.error("IOError", "Could not write.");
      }
    }
View Full Code Here

Examples of com.trilead.ssh2.packets.TypesWriter.writeByte()

        TypesWriter tw = new TypesWriter();
        {
          byte[] H = tm.getSessionIdentifier();

          tw.writeString(H, 0, H.length);
          tw.writeByte(Packets.SSH_MSG_USERAUTH_REQUEST);
          tw.writeString(user);
          tw.writeString("ssh-connection");
          tw.writeString("publickey");
          tw.writeBoolean(true);
          tw.writeString("ssh-rsa");
View Full Code Here

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

  @Override
  public Command toCommand() throws IOException {
    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);
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.